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"));
?>