Please select To the mobile version | Continue to access the desktop computer version
| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4570|Reply: 2
Collapse the left

Be able to edit language list of ML version

[Copy link]

 France

Post time: 2013-08-25 23:54
| Show all posts |Read mode
Hi Vot,

I cloned the latest X2.5 ML version, there are 13 langs in the package. However indeed, I just need en/fr/tc/sc, so i deleted folders of other languages in /source/language. But after installation, the whole list is still there, just lost country flag of the deleted language.

Is there a way to edit the list?
There should be a php file to edit it, rihgt?

Thanks for your help in advance.

Related collections:

  • · Tricks|Threads: 23, Subscribe: 3
Post time: 2013-08-26 00:07
| Show all posts
Open your /config/config_global.php and find (103 line):
  1. // -------------------------  CONFIG LANGUAGES  ------------------------- //
  2. $_config['languages']['ar']['icon'] = 'ar.gif';
  3. $_config['languages']['ar']['name'] = 'العربية';
  4. $_config['languages']['ar']['title'] = 'Arabic';
  5. $_config['languages']['ar']['dir'] = 'rtl';
  6. $_config['languages']['ar']['code'] = 'ar-AE';
  7. $_config['languages']['de']['icon'] = 'de.gif';
  8. $_config['languages']['de']['name'] = 'Deutsch';
  9. $_config['languages']['de']['title'] = 'German';
  10. $_config['languages']['de']['dir'] = 'ltr';
  11. $_config['languages']['de']['code'] = 'de-DE';

  12. .
  13. .
  14. .

  15. $_config['languages']['tr']['icon'] = 'tr.gif';
  16. $_config['languages']['tr']['name'] = 'Türkçe';
  17. $_config['languages']['tr']['title'] = 'Turkish';
  18. $_config['languages']['tr']['dir'] = 'ltr';
  19. $_config['languages']['tr']['code'] = 'tr-TR';
  20. $_config['languages']['vn']['icon'] = 'vn.gif';
  21. $_config['languages']['vn']['name'] = 'Tiếng Việt';
  22. $_config['languages']['vn']['title'] = 'Vietnamese';
  23. $_config['languages']['vn']['dir'] = 'ltr';
  24. $_config['languages']['vn']['code'] = 'vi-VN';
Copy the Code
You can delete unnecessary lines, but the best way is comment them!

Example:

  1. $_config['languages']['ar']['icon'] = 'ar.gif';
  2. $_config['languages']['ar']['name'] = 'العربية';
  3. $_config['languages']['ar']['title'] = 'Arabic';
  4. $_config['languages']['ar']['dir'] = 'rtl';
  5. $_config['languages']['ar']['code'] = 'ar-AE';
Copy the Code
There are informations about Arabic language. If you want to disable it, you can simple preceded by " // ", so:

  1. //$_config['languages']['ar']['icon'] = 'ar.gif';
  2. //$_config['languages']['ar']['name'] = 'العربية';
  3. //$_config['languages']['ar']['title'] = 'Arabic';
  4. //$_config['languages']['ar']['dir'] = 'rtl';
  5. //$_config['languages']['ar']['code'] = 'ar-AE';
Copy the Code
etc.

Rate

Number of participants 2Rating +2 Collapse Reason
mj1919 + 1 Usefull
jhoxi + 1 The best!

View Rating Log

 France

 Author| Post time: 2013-08-26 01:55
| Show all posts
kaaleth 2013-8-26 01:07
Open your /config/config_global.php and find (103 line):You can delete unnecessary lines, but the be ...

Thanks a lot !!!

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-03-29 15:20 GMT+3 , Processed in 0.047375 sec., 12 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list