只保留英文及繁體中文的選項要在哪裡設定?
-
路徑1:/var/www/html/lists/admin/locale
只保留en及zh_TW的目錄,其他的目錄都刪除,
並修改目錄中的language_info檔案內容。
#pwd
/var/www/html/lists/admin/locale/en
#vim language_info
name=ENGLISH
charset=UTF-8
#pwd
/var/www/html/lists/admin/locale/zh_TW
#vim language_info
name=繁體中文
charset=UTF-8
- 路徑2:/var/www/html/lists/admin/language.php
只保留en及zh_TW的設定。
## this array is now automatically build from the file system using the
## language_info file in each subdirectory of /locale/
## and further on, from the XML data of the translation site
$LANGUAGES = array(
"en" => array("english ","UTF-8","UTF-8, windows-1252 "),
"zh_TW" => array("Traditional Chinese","utf-8","utf-8"),
);
修改前
修改後
注意事項
下拉式選單中的項目名稱,修改的優先權是 language_info 大於 language.php,也就是說把 language.php 中的 Traditional Chinese 改成繁體中文是沒有效果的,除非該語系的 language.php 不存在。
沒有留言:
張貼留言