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

Collection of several translation issues #1465

Closed
15 tasks done
buhtz opened this issue Jun 30, 2023 · 1 comment · Fixed by #1490
Closed
15 tasks done

Collection of several translation issues #1465

buhtz opened this issue Jun 30, 2023 · 1 comment · Fixed by #1490
Assignees
Labels
Bug Cosmetics appearance, icons, themes Low relevant, but not urgent Meta Qt Qt bugs, code or features
Milestone

Comments

@buhtz
Copy link
Member

buhtz commented Jun 30, 2023

To prevent to much commits in context of translations I'll collect such issues here and fix them all at once.

@buhtz buhtz self-assigned this Jun 30, 2023
@buhtz buhtz added Qt Qt bugs, code or features Bug Cosmetics appearance, icons, themes Low relevant, but not urgent labels Jun 30, 2023
@buhtz buhtz added this to the upcoming release (1.3.4) milestone Jun 30, 2023
@buhtz buhtz added the Meta label Jul 1, 2023
@b100w11
Copy link

b100w11 commented Jul 28, 2023

There are some issues with the slovenian translation (and i guess also with others).
Slovenian has different plural forms based on the last number of the plural (this is probably an oversimplification and the linguists will have something to complain, but it explains the issue).
So if we take an example with "knjiga" (book) we have this forms.
1 knjiga
2 knjigi
3-4 knjige
5 knjig
The same pattern repeats with "101 knjiga", "102 knjigi", ... , "1001 knjiga", "1002 knjigi" and so on.

The gettext solution is this
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n%100==4 ? 3 : 0)\n"

So it should work for every instance where there is a singular and plural form.
Something similar should also solve the "day(s)" problem in English and other languages.
I don't know where to incorporate this.

buhtz added a commit that referenced this issue Aug 7, 2023
Fixing minor issues with source strings and add Plural Forms support.

Fix #1465
Fix #1488
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Cosmetics appearance, icons, themes Low relevant, but not urgent Meta Qt Qt bugs, code or features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants