| |
| | |

CodersClub

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

How to remove a language from Discuz Multilingual

[Copy link]

 Italy

Post time: 2016-10-12 09:34
| Show all posts |Read mode
Hello,

I would like to how can I remove a language from Discuz. If I just remove the language files from source/language, the language is still in the list, just I can not select it.

From the admin center, if I go to Global-Languages, I can see the list of all the languages, but I can not click on the buttons to "edit" or "remove" a language (see file attached).



And if I delete a language or click on the "Enable" column, after I save nothing change.

What can I do to remove a language from this list ?

Thanks !



This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x
Post time: 2016-10-12 21:15
| Show all posts
Open this file config/config_global_default.php and edit:

  1. $_config['languages'] = array(
  2. //        'ar' => array('icon'=>'ar.gif', 'name'=>'العربية', 'title'=>'Arabic', 'dir'=>'rtl', 'code'=>'ar-AE'),
  3. //        'de' => array('icon'=>'de.gif', 'name'=>'Deutsch', 'title'=>'German', 'dir'=>'ltr', 'code'=>'de-DE'),
  4. //        'en' => array('icon'=>'en.gif', 'name'=>'English', 'title'=>'English', 'dir'=>'ltr', 'code'=>'en-GB'),
  5. //        'es' => array('icon'=>'es.gif', 'name'=>'Español', 'title'=>'Spanish', 'dir'=>'ltr', 'code'=>'es-ES'),
  6. //        'fa' => array('icon'=>'fa.gif', 'name'=>'Farsi', 'title'=>'Persian', 'dir'=>'rtl', 'code'=>'fa-IR'),
  7. //        'fr' => array('icon'=>'fr.gif', 'name'=>'Français', 'title'=>'French', 'dir'=>'ltr', 'code'=>'fr-FR'),
  8. //        'kr' => array('icon'=>'kr.gif', 'name'=>'한국어', 'title'=>'Korean', 'dir'=>'ltr', 'code'=>'ko-KO'),
  9. //        'la' => array('icon'=>'la.gif', 'name'=>'ພາສາລາວ', 'title'=>'Lao', 'dir'=>'ltr', 'code'=>'lo-LA'),
  10. //        'pl' => array('icon'=>'pl.gif', 'name'=>'Polski', 'title'=>'Polish', 'dir'=>'ltr', 'code'=>'pl-PL'),
  11. //        'ru' => array('icon'=>'ru.gif', 'name'=>'Русский', 'title'=>'Russian', 'dir'=>'ltr', 'code'=>'ru-RU'),
  12.         'sc' => array('icon'=>'zh.gif', 'name'=>'简体中文', 'title'=>'Simplified Chinese', 'dir'=>'ltr', 'code'=>'zh-CN'),
  13.         'tc' => array('icon'=>'tw.gif', 'name'=>'繁體中文', 'title'=>'Traditional Chinese', 'dir'=>'ltr', 'code'=>'zh-TW'),
  14. //        'th' => array('icon'=>'th.gif', 'name'=>'ภาษาไทย', 'title'=>'Thai', 'dir'=>'ltr', 'code'=>'th-TH'),
  15. //        'tr' => array('icon'=>'tr.gif', 'name'=>'Türkçe', 'title'=>'Turkish', 'dir'=>'ltr', 'code'=>'tr-TR'),
  16. //        'vn' => array('icon'=>'vn.gif', 'name'=>'Tiếng Việt', 'title'=>'Vietnamese', 'dir'=>'ltr', 'code'=>'vi-VN'),
  17. //        'ui' => array('icon'=>'ui.gif', 'name'=>'Uyghur', 'title'=>'Uighur', 'dir'=>'rtl', 'code'=>'ui-UY'),
  18. );
Copy the Code
Put "   //   " before the line you want to hide.


 Russia

Post time: 2016-10-16 19:20
| Show all posts
In other words just comment the not required languages in the config/config_global_default.php
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-11-22 03:54 GMT+3 , Processed in 0.048024 sec., 8 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