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

Prepare Lojban .ts file for Qt5's lupdate #1651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vedgy
Copy link
Member

@vedgy vedgy commented Jun 5, 2023

This commit eliminates the following warning in the output of command lupdate goldendict.pro:

File /path/to/goldendict/locale/jb_JB.ts won't be updated: it contains translation but the target language is not recognized

The issue was introduced in Qt 5.13 and cherry-picked into Qt 5.12.4: https://codereview.qt-project.org/c/qt/qttools/+/255003

The .ts file is not updated, because the Lojban language is absent from Qt's numerusTable in qttools/src/linguist/shared/numerus.cpp.

Work the issue around by setting the language attribute of the TS element to a suitable supported language code "ja" (Japanese). Words in Lojban do not actually have a separate plural form, like in Japanese. So this way plural translations should be handled correctly.

Closes #1642

This commit eliminates the following warning in the output of command
`lupdate goldendict.pro`:
  File /path/to/goldendict/locale/jb_JB.ts won't be updated: it contains
  translation but the target language is not recognized

The issue was introduced in Qt 5.13 and cherry-picked into Qt 5.12.4:
https://codereview.qt-project.org/c/qt/qttools/+/255003

The .ts file is not updated, because the Lojban language is absent from
Qt's numerusTable in qttools/src/linguist/shared/numerus.cpp.

Work the issue around by setting the language attribute of the TS
element to a suitable supported language code "ja" (Japanese). Words in
Lojban do not actually have a separate plural form, like in Japanese. So
this way plural translations should be handled correctly.

Closes goldendict#1642
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Qt source code doesn't contain numerus info for the Lojban language
1 participant