gettext
(PHP3 >= 3.0.7 , PHP4)
gettext --- 查詢現行網域中的訊息
語法 : string gettext (string message)
說明 :
如果在轉化表格中有找到時,此函式傳回一個轉化字串,如果沒有找到則傳回提交的訊息。
Example :
<?php
// Set language to German
putenv ("LANG=de");
// Specify location of translation tables
bindtextdomain ("myPHPApp", "./locale");
// Choose domain
textdomain ("myPHPApp");
// Print a test message
print (gettext ("Welcome to My PHP Application"));
?>