现在我正在努力一段时间,使用
PHP的gettext()函数进行翻译文件,并用Poedit创建文件. Poedit还没有一个帮助文件,我尝试了很多在网上找到的东西,但没有任何工作.
我在Mac OSX上有一个XAMPP配置.
我在Mac OSX上有一个XAMPP配置.
在OSX上我的XAMPP目录是@H_301_3@
/Applications/XAMPP/xamppfiles/htdocs/
在这个目录里面,我创建了gettext.PHP@H_301_3@
<?PHP echo _("Hello World"); ?>
/locale/ /locale/it_IT/LC_MESSAGES/
语言:意大利语
国家:意大利
字符集:UTF-8
源代码字符集:UTF-8
基本路径:/ Applications / XAMPP / xamppfiles / htdocs /@H_301_3@
比我将default.po保存到/ locale / it_IT / LC_MESSAGES /@H_301_3@
“更新目录失败,点击’More>>’详细信息@H_301_3@
13:04:10: Poedit did not find any files in scanned directories. 13:04:11: Entries in the catalog are probably incorrect. 13:04:11: Updating the catalog Failed. Click on 'More>>' for details.