在 WordPress 翻译 .po 文件中找不到任何错误
我们正在 Launchpad 中将 Wordpess 翻译成我们的语言。昨天,一位翻译人员犯了未知错误,现在生成的 .mo 文件以以下格式显示所有大于 1000 的数字:1r264(而不是 1,264)。例如 1,264 个帖子 => 1r264 yazı,4,874 条评论 - 4r874 serh... 仪表板的所有部分都是如此。我找不到错误在哪里?有什么想法吗? PS 没有像“,”=>“r”这样的翻译逗号(,)的字符串,否则很容易解决。
We are translating Wordpess to our language in Launchpad. Yesterday one of translators made unknown mistake and now generated .mo file shows all numbers greater than 1000 in such format: 1r264(instead of 1,264). For example 1,264 posts => 1r264 yazı, 4,874 comments - 4r874 serh... It is so in all parts of Dashboard. I can not find where the mistake is? Any idea?
P.S. There is not any string for translation comma(,) such as ","=>"r", else it were very easy to solve.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WordPress 使用
number_format_i18n
函数格式化数字(可在 wp-includes/functions.php)。依次使用$wp_locale->number_format['thousands_sep']
,它在 WP_Locale 类。它使用 .po 文件中的
number_format_thousands_sep
字符串。你这样设置吗?
WordPress formats numbers with the
number_format_i18n
function (found in wp-includes/functions.php). That in turn uses$wp_locale->number_format['thousands_sep']
, which is initialized in the WP_Locale class.That uses the
number_format_thousands_sep
string from the .po file.Are you setting that?