波兰语区域设置问题

大家好,

我刚刚安装了 Discourse(2.5.0.beta7),并尝试使用波兰语。

在每页的顶部,我遇到了以下错误:

无效格式:未捕获的语法错误:期望 “plural” 或 “select”,但发现了 “l”。位置:undefined:1376:10

使用英语语言设置时不会出现此问题,因此我认为这与波兰语翻译有关。

有什么建议可以解决这个问题吗?

3 个赞

这周有什么我们能快速修复的吗?@gerhard

3 个赞

波兰语区域存在大量 MessageFormat 错误,但也影响了其他区域。

错误列表
bundle exec rake i18n:check

================================================================================
config/locales/client.bs_BA.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "," 或 "}",但发现了 "s"。

================================================================================
config/locales/client.ca.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "<"。

================================================================================
config/locales/client.da.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式
js.logs_error_rate_notice.reached_minute_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式
js.logs_error_rate_notice.exceeded_hour_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式
js.logs_error_rate_notice.exceeded_minute_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式

================================================================================
config/locales/client.it.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式
js.logs_error_rate_notice.reached_minute_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式
js.logs_error_rate_notice.exceeded_hour_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式
js.logs_error_rate_notice.exceeded_minute_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式

================================================================================
config/locales/client.ko.yml
================================================================================
js.too_few_topics_and_posts_notice_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "{",但发现了 "<"。
js.logs_error_rate_notice.reached_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 ",", "}" 或 [^ \t\n\r,.+={}],但发现输入结束。
js.logs_error_rate_notice.reached_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 ",", "}" 或 [^ \t\n\r,.+={}],但发现输入结束。
js.logs_error_rate_notice.exceeded_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "offset", "}" 或 [a-zA-Z$_],但发现了 "<"。
js.logs_error_rate_notice.exceeded_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 [a-zA-Z$_],但发现了 "0"。

================================================================================
config/locales/client.pl_PL.yml
================================================================================
js.too_few_topics_and_posts_notice_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "plural" 或 "select",但发现了 "l"。
js.too_few_topics_notice_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "plural" 或 "select",但发现了 "l"。
js.too_few_posts_notice_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "plural" 或 "select",但发现了 "l"。
js.logs_error_rate_notice.reached_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "plural" 或 "select",但发现了 "l"。
js.logs_error_rate_notice.reached_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "plural" 或 "select",但发现了 "l"。
js.logs_error_rate_notice.exceeded_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "plural" 或 "select",但发现了 "l"。
js.logs_error_rate_notice.exceeded_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "plural" 或 "select",但发现了 "l"。
js.posts_likes_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 ",",但发现了 "l"。

================================================================================
config/locales/client.pt.yml
================================================================================
js.flagging.delete_confirm_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式

================================================================================
config/locales/client.ru.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "%u0438"。
js.logs_error_rate_notice.reached_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "%u0438"。
js.logs_error_rate_notice.exceeded_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "%u0438"。
js.logs_error_rate_notice.exceeded_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "%u0438"。

================================================================================
config/locales/client.sw.yml
================================================================================
js.flagging.delete_confirm_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "," 或 "}",但发现了 "m"。
admin_js.admin.user.delete_all_posts_confirm_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式

================================================================================
config/locales/client.tr_TR.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式
js.logs_error_rate_notice.reached_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "{"。
js.logs_error_rate_notice.exceeded_hour_MF -- 无效的消息格式:错误:在 pluralFormatPattern 0 中未找到 'other' 形式
js.logs_error_rate_notice.exceeded_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "{"。

================================================================================
config/locales/client.uk.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "%u0430"。
js.logs_error_rate_notice.reached_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "%u0430"。
js.logs_error_rate_notice.exceeded_hour_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "%u0430"。
js.logs_error_rate_notice.exceeded_minute_MF -- 无效的消息格式:未捕获的 SyntaxError:期望 "=", "}" 或 [a-zA-Z$_],但发现了 "%u0430"。

我已在 Transifex 上修复了所有这些问题,要么删除了无效的翻译,要么在发现简单且易于检测的错误时进行了修正。我期待 Crowdin 推出针对 MessageFormat 字符串的 QA 检查功能。

所有翻译已在 Github 上更新,因此升级到最新版本后,该问题应已解决。

7 个赞