Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pybabel fails compiling the localization [RPM PACKAGING] #2253

Closed
abrarwali opened this issue Apr 20, 2022 · 3 comments
Closed

pybabel fails compiling the localization [RPM PACKAGING] #2253

abrarwali opened this issue Apr 20, 2022 · 3 comments
Milestone

Comments

@abrarwali
Copy link

abrarwali commented Apr 20, 2022

pybabel compile compiles the localization, and it fails.

TRACEBACK:

  • pybabel compile -d thonny/locale/ -D thonny
    compiling catalog thonny/locale/ar_AR/LC_MESSAGES/thonny.po to
    thonny/locale/ar_AR/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/cs_CZ/LC_MESSAGES/thonny.po to
    thonny/locale/cs_CZ/LC_MESSAGES/thonny.mo
    error: thonny/locale/de_DE/LC_MESSAGES/thonny.po:902: placeholders are
    incompatible
    error: thonny/locale/de_DE/LC_MESSAGES/thonny.po:1388: placeholders are
    incompatible
    compiling catalog thonny/locale/de_DE/LC_MESSAGES/thonny.po to
    thonny/locale/de_DE/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/el_GR/LC_MESSAGES/thonny.po to
    thonny/locale/el_GR/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/en_US/LC_MESSAGES/thonny.po to
    thonny/locale/en_US/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/es_ES/LC_MESSAGES/thonny.po to
    thonny/locale/es_ES/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/et_EE/LC_MESSAGES/thonny.po to
    thonny/locale/et_EE/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/fa_IR/LC_MESSAGES/thonny.po to
    thonny/locale/fa_IR/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/fi_FI/LC_MESSAGES/thonny.po to
    thonny/locale/fi_FI/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/fr_FR/LC_MESSAGES/thonny.po to
    thonny/locale/fr_FR/LC_MESSAGES/thonny.mo
    error: thonny/locale/hu_HU/LC_MESSAGES/thonny.po:1388: incompatible
    format for placeholder 1: 's' and 'i' are not compatible
    compiling catalog thonny/locale/hu_HU/LC_MESSAGES/thonny.po to
    thonny/locale/hu_HU/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/hy_AM/LC_MESSAGES/thonny.po to
    thonny/locale/hy_AM/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/it_IT/LC_MESSAGES/thonny.po to
    thonny/locale/it_IT/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/ja_JP/LC_MESSAGES/thonny.po to
    thonny/locale/ja_JP/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/ko_KR/LC_MESSAGES/thonny.po to
    thonny/locale/ko_KR/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/lt_LT/LC_MESSAGES/thonny.po to
    thonny/locale/lt_LT/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/nb_NO/LC_MESSAGES/thonny.po to
    thonny/locale/nb_NO/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/nl_NL/LC_MESSAGES/thonny.po to
    thonny/locale/nl_NL/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/nn_NO/LC_MESSAGES/thonny.po to
    thonny/locale/nn_NO/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/pl_PL/LC_MESSAGES/thonny.po to
    thonny/locale/pl_PL/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/pt_BR/LC_MESSAGES/thonny.po to
    thonny/locale/pt_BR/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/pt_PT/LC_MESSAGES/thonny.po to
    thonny/locale/pt_PT/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/ro_RO/LC_MESSAGES/thonny.po to
    thonny/locale/ro_RO/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/ru_RU/LC_MESSAGES/thonny.po to
    thonny/locale/ru_RU/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/sk_SK/LC_MESSAGES/thonny.po to
    thonny/locale/sk_SK/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/sq_AL/LC_MESSAGES/thonny.po to
    thonny/locale/sq_AL/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/sv_SE/LC_MESSAGES/thonny.po to
    thonny/locale/sv_SE/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/ta_IN/LC_MESSAGES/thonny.po to
    thonny/locale/ta_IN/LC_MESSAGES/thonny.mo
    error: thonny/locale/th_TH/LC_MESSAGES/thonny.po:1854: placeholders are
    incompatible
    compiling catalog thonny/locale/th_TH/LC_MESSAGES/thonny.po to
    thonny/locale/th_TH/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/tr_TR/LC_MESSAGES/thonny.po to
    thonny/locale/tr_TR/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/uk_UA/LC_MESSAGES/thonny.po to
    thonny/locale/uk_UA/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/zh_CN/LC_MESSAGES/thonny.po to
    thonny/locale/zh_CN/LC_MESSAGES/thonny.mo
    compiling catalog thonny/locale/zh_TW/LC_MESSAGES/thonny.po to
    thonny/locale/zh_TW/LC_MESSAGES/thonny.mo
    4 errors encountered.
    error: Bad exit status from /var/tmp/rpm-tmp.yuMwcf (%build)
    Bad exit status from /var/tmp/rpm-tmp.yuMwcf (%build)
@befeleme
Copy link
Contributor

Hi, I edited the respective lines in POEditor (it was mostly about overlooked placeholders), so just importing the fresh strings for DE, HU and TH should fix the compilation problem.

@aivarannamaa
Copy link
Member

@befeleme, thanks for this observation and the fix!

@abrarwali, are you interested in the head of the master branch or specific version / tag?

@abrarwali
Copy link
Author

@aivarannamaa Version 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants