在 WordPress 翻译 .po 文件中找不到任何错误

发布于 2024-12-23 14:49:48 字数 236 浏览 4 评论 0原文

我们正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

潦草背影 2024-12-30 14:49:48

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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文