Translation Rules for Plural Forms¶
A summary of the translation rules for plural forms produced by Qt’s translation tools.
Qt Linguist and lrelease support plural forms for all languages that are supported by QLocale.
The table below shows the specific rules for a small selection of languages. Cells marked otherwise indicate the form the tools use when none of the other rules are appropriate for a specific language.
Language
Rule 1
Rule 2
Rule 3
English
n == 1otherwise
N/A
French
n < 2otherwise
N/A
Czech
n % 100 == 1
n % 100 >= 2 && n % 100 <= 4otherwise
Irish
n == 1
n == 2otherwise
Latvian
n % 10 == 1&& n % 100 != 11
n != 0otherwise
Lithuanian
n % 10 == 1&& n % 100 != 11
n % 100 != 12 && n % 10 == 2otherwise
Macedonian
n % 10 == 1
n % 10 == 2otherwise
Polish
n == 1
n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20)otherwise
Romanian
n == 1
n == 0|| (n % 100 >= 1 && n % 100 <= 20)otherwise
Russian
n % 10 == 1&& n % 100 != 11
n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20)otherwise
Slovak
n == 1
n >= 2 && n <= 4otherwise
Japanese
otherwise
N/A
N/A