폴란드 로케일 문제

여러분,

방금 Discourse(2.5.0.beta7)를 설치했고, 폴란드어로 사용해보려고 하고 있습니다.

모든 페이지 상단에 다음 오류가 표시됩니다:

Invalid Format: Uncaught SyntaxError: Expected “plural” or “select” but “l” found. at 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 -- Invalid message format: Uncaught SyntaxError: Expected "," or "}" but "s" found.

================================================================================
config/locales/client.ca.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "<" found.

================================================================================
config/locales/client.da.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0
js.logs_error_rate_notice.reached_minute_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0
js.logs_error_rate_notice.exceeded_hour_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0
js.logs_error_rate_notice.exceeded_minute_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0

================================================================================
config/locales/client.it.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0
js.logs_error_rate_notice.reached_minute_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0
js.logs_error_rate_notice.exceeded_hour_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0
js.logs_error_rate_notice.exceeded_minute_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0

================================================================================
config/locales/client.ko.yml
================================================================================
js.too_few_topics_and_posts_notice_MF -- Invalid message format: Uncaught SyntaxError: Expected "{" but "<" found.
js.logs_error_rate_notice.reached_hour_MF -- Invalid message format: Uncaught SyntaxError: Expected ",", "}" or [^ \t\n\r,.+={}] but end of input found.
js.logs_error_rate_notice.reached_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected ",", "}" or [^ \t\n\r,.+={}] but end of input found.
js.logs_error_rate_notice.exceeded_hour_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "offset", "}" or [a-zA-Z$_] but "<" found.
js.logs_error_rate_notice.exceeded_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected [a-zA-Z$_] but "0" found.

================================================================================
config/locales/client.pl_PL.yml
================================================================================
js.too_few_topics_and_posts_notice_MF -- Invalid message format: Uncaught SyntaxError: Expected "plural" or "select" but "l" found.
js.too_few_topics_notice_MF -- Invalid message format: Uncaught SyntaxError: Expected "plural" or "select" but "l" found.
js.too_few_posts_notice_MF -- Invalid message format: Uncaught SyntaxError: Expected "plural" or "select" but "l" found.
js.logs_error_rate_notice.reached_hour_MF -- Invalid message format: Uncaught SyntaxError: Expected "plural" or "select" but "l" found.
js.logs_error_rate_notice.reached_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected "plural" or "select" but "l" found.
js.logs_error_rate_notice.exceeded_hour_MF -- Invalid message format: Uncaught SyntaxError: Expected "plural" or "select" but "l" found.
js.logs_error_rate_notice.exceeded_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected "plural" or "select" but "l" found.
js.posts_likes_MF -- Invalid message format: Uncaught SyntaxError: Expected "," but "l" found.

================================================================================
config/locales/client.pt.yml
================================================================================
js.flagging.delete_confirm_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0

================================================================================
config/locales/client.ru.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u0438" found.
js.logs_error_rate_notice.reached_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u0438" found.
js.logs_error_rate_notice.exceeded_hour_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u0438" found.
js.logs_error_rate_notice.exceeded_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u0438" found.

================================================================================
config/locales/client.sw.yml
================================================================================
js.flagging.delete_confirm_MF -- Invalid message format: Uncaught SyntaxError: Expected "," or "}" but "m" found.
admin_js.admin.user.delete_all_posts_confirm_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0

================================================================================
config/locales/client.tr_TR.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0
js.logs_error_rate_notice.reached_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "{" found.
js.logs_error_rate_notice.exceeded_hour_MF -- Invalid message format: Error: No 'other' form found in pluralFormatPattern 0
js.logs_error_rate_notice.exceeded_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "{" found.

================================================================================
config/locales/client.uk.yml
================================================================================
js.logs_error_rate_notice.reached_hour_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u0430" found.
js.logs_error_rate_notice.reached_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u0430" found.
js.logs_error_rate_notice.exceeded_hour_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u0430" found.
js.logs_error_rate_notice.exceeded_minute_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u0430" found.

저는 Transifex에서 잘못된 번역을 삭제하거나, 단순하고 쉽게 발견할 수 있는 오류인 경우 수정하여 이 모든 문제를 해결했습니다. MessageFormat 문자열에 대한 QA 검사를 제공하는 Crowdin을 기대하고 있습니다.

모든 번역이 Github에서 업데이트되었으므로, 최신 버전으로 업데이트한 후에는 문제가 해결되어야 합니다.

7개의 좋아요