我正在拼命尝试在php中创建一个目录(.In)用于我的新应用程序。 1)我创建了一个名为“trans.php”的文件,在其中放置所有要翻译的值。
例如,这是我的文件内容:
<?php
echo _e('SORTIR LA NUIT');
?>
2) 我打开Poedit,在"Paths"中输入以下内容(见图片),然后将我的文件“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.
你能帮助我吗?
真诚地,
_()
是gettext()
的别名。http://php.net/manual/function.gettext.php - powtac