将Poedit与XAMPP一起使用
我现在很难用PHP的gettext()函数进入翻译文件并用Poedit创建文件。 Poedit也没有附带帮助文件,我尝试了许多在线发现但没有任何作用的东西..
我在Mac OSX上使用XAMPP配置。
在OSX上,我的XAMPP目录是
/Applications/XAMPP/xamppfiles/htdocs/
在这个目录里面我创建了gettext.php
<?php echo _("Hello World"); ?>
和以下文件夹:
/locale/
/locale/it_IT/LC_MESSAGES/
当我做的时候使用Poedit>文件>新目录
语言:意大利语
国家:意大利
Charset:UTF-8
源代码字符集:UTF-8
基本路径:/ Applications / XAMPP / xamppfiles / htdocs /
比我将default.po保存到/ locale / it_IT / LC_MESSAGES /
“更新目录失败。点击'更多>>'了解详情
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.
没有找到相关结果
已邀请:
2 个回复
帆攀缺锯欧
肉簧咸缮