- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在拼命地为我的 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 找不到文件的问题。
如果在扫描的目录中未找到任何文件
得到解决,POEdit 可能仍会找到 0 条消息。这是因为默认情况下 POEdit 不支持 _e
作为关键字。要解决此问题,只需将“_e
”添加到关键字列表(在 Catalog > Settings > Keywords
中)。
关于php - 使用 Poedit 创建 POT 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9095032/
我在 POEdit 中收到重复消息定义错误,并且无法从该目录进行更新。 POEdit 不显示详细信息,并且错误中的行号不匹配。 如何找出问题所在? Sat Mar 11 16:51:31 2017:
您好,我正在使用 poedit 编辑器,但无法编辑原始字符串列。我想在原始字符串列上编辑几个单词。提前致谢 最佳答案 (哦,好吧,为了可能找到这篇文章的人的利益,我也会在这里回答这个问题。但是,你不会
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,因为
我在使用 PoEdit 时遇到问题我使用了一个名为 PO-Auto-Translator 的软件来翻译 po 文件,一旦完成,我想继续使用 poedit 编辑文件,当我尝试保存时,我得到了很多错误
我对 poEdit 还很陌生,并且我已经成功翻译了 javascript 模板和文件中 95% 的键。 我使用这个语法__("key") ,主要是 . 但是(总有一个但是),由于某种原因,这个键 em
我在项目中使用 Poedit 进行本地化。每当我用 poedit 更改条目时,它都会重新排序所有元素。我认为它根据行号和文件对元素重新排序,但由于我在这个项目中与许多编码人员一起工作,poedit 不
我已按照 http://www.bunchacode.com/programming/internationalization-and-localization-in-cakephp/ 中的说明进行操
在我们的 JS 文件中,我们使用以下格式进行 Gettext 翻译: var str1 = '!t[The text that should be translated]'; var str2 = '
我尝试从源更新目录。完成更新后 poedit 崩溃。在命令行工具中,我收到以下消息: b/x86_64-linux-gnu/libdbusmenu-glib.so.4.0.13Aborted (cor
我创建了一个我想翻译的 WordPress 主题。 在我的主题中,我使用了来自 woocommerce 的一些翻译(即 )。 这些 woocommerce 字符串,我不想再翻译了,自然,因为它们已经
我在我的应用程序中加入了一个类似于 gettext 的本地化系统,但我的翻译功能如下所示: t($category, $string, [$plural_string, $number, $vpri
我正在使用 poedit 来翻译我的 gettext 字符串。我使用 ID 进行翻译,例如以下 ID: "msg_forgot_pw" would be translated to: "I have
我在 POEdit 的源关键字中设置了这个: _ __ _e _ex _n esc_attr_e _x _nc 它有效,但是当我使用 _n() 时我只得到第一个字符串功能(二十一主题): 任何如何让
如何配置 poedit 从 xml 文件中提取字符串? 我在 .xml 中有 Zend Framework 导航项,如下所示: Text to translate .
我只是想知道我是否可以找到 php 后端,它可以用作 poedit 的替代品来输入翻译。 有时我们需要将 View 文件直接更新到实时服务器,将所有源下载到本地机器并生成 .po 文件并使用 poed
我正在使用 poedit 来管理 php 项目中的 gettext 翻译。有很多人为这个项目做出贡献,每次添加一些新的语言字符串时,我都需要运行 poedit 并与每种可用语言的源同步,以便翻译人员可
我正在创建一个网站,希望以多种语言为不同国家/地区显示,但这是我第一次这样做,不确定最佳做法是什么。 因此,对于代码中的所有静态文本,我只需将其包装在翻译函数中,POedit 就能够提取字符串。 然后
我正在寻找一种让 PoEdit 理解 PHP 注释的方法。这是我希望 PoEdit 提取并放入目录中的代码示例: class MyController extends Controller {
如何配置poedit从xml文件中提取字符串? 我在 .xml 中有这样的 Zend Framework 导航项: Text to translate ...
我在工作中使用 poEdit,但我在 po 文件的编码方面遇到了问题。 我有 poEdit(版本 1.8.8)和 MacBook Pro(版本 10.11.4)。我正在尝试将英语翻译成瑞典语,那里有旧
我是一名优秀的程序员,十分优秀!