我正在拼命地尝试为我的 php 新应用程序创建一个目录(.in)。
1)我创建了一个文件“trans.php”,其中放置了所有要翻译的值
例如,这是我的文件:
<?php
echo _e('SORTIR LA NUIT');
?>
2)我打开Poedit,在“路径”中这是我输入的内容(见图)
然后我保存文件“php”的相同位置。
3)当我点击“更新”时,出现以下错误:
12:25:43: No files found in: /Users/aweaoftheworld/Desktop/test
12:25:43: Poedit did not find any files in scanned directories.
12:25:43: Entries in the catalog are probably incorrect.
12:25:43: Updating the catalog failed. Click on 'More>>' for details.
你能帮助我吗?
真挚地,
确保 POEdit 中定义的路径 (Catalog > Settings > Paths
) 指向包含 PHP 文件的文件夹。这应该可以解决 POEdit 找不到文件的问题。
If the did not find any files in scanned directories
解决后,POEdit 可能仍会找到 0 条消息。这是因为默认情况下 POEdit 不支持_e
作为关键字。要解决此问题,只需添加“_e
” 到关键字列表(在Catalog > Settings > Keywords
).
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)