freePbx漢化
/var/www/html/admin/header.php中的set_language()中修改默認語言
在/var/www/html/admin/views/freepbx_admin.php文件中增加
<option value="zh_CN" <?php echo ($_COOKIE['lang']=="zh_CN" ? "selected" : "") ?> >簡體中文</option>
創立/admin/i18n/zh_CN/LC_MESSAGES的目錄,並把翻譯化後的amp.po amp.mo複製到這裏,注意設置對應權限。
A2BCustomer_UI漢化
修改/var/www/html/A2BCustomer_UI/lib/locale/zh_TW/LC_MESSAGES/messages.po後,
msgfmt messages.po -o messages.mo生成mo文件
/var/www/html/A2BCustomer_UI/lib/defines.php
SetLocalLanguage(); 設置初始語言類型
修改/var/www/html/A2BCustomer_UI/templates/default/main.tpl,增加以下行
<a href="{$PAGE_SELF}?language=chinese"><img src="templates/{$SKIN_NAME}/images/flags/cn.gif" border="0" title="Chinese" alt="Chinese"></a>
A2Billing_UI漢化
var/www/html/A2Billing_UI/lib/locale/下增加zh_TW/LC_MESSAGES/目錄
把var/www/html/A2Billing_UI/lib/locale/en_US/LC_MESSAGES/messages.po 拷貝到zh_TW/LC_MESSAGES/目錄
編輯zh_TW/LC_MESSAGES/messages.po後,msgfmt messages.po -o messages.mo生成mo文件
/var/www/html/A2Billing_UI/lib/defines.php
SetLocalLanguage(); 設置初始語言類型
修改/var/www/html/A2Billing_UI/Public/templates/default/main.tpl,增加以下內容
<a href="PP_intro.php?language=chinese" target="_parent"><img src="templates/{$SKIN_NAME}/images/flags/br.gif" border="0" title="Chinese" alt="Chinese"></a>
注意:國際代碼採用unicode代碼,所以所有的po文件需要設置爲charset=UTF-8,並且格式需要轉換爲U8-UNIX格式(可用使用UtralEdit轉換),如果你轉換可以把漢字轉換爲HTML UNICODE模式(如:紁),這樣需要轉換使你的漢化工作量大大增加。