復數形式翻譯規則

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 指示工具使用錶單,當其它規則不適閤特定語言時。

語言 規則 1 規則 2 規則 3
English n == 1 otherwise N/A
法語 n < 2 otherwise N/A
捷剋語 n % 100 == 1 n % 100 >= 2 && n % 100 <= 4 otherwise
愛爾蘭語 n == 1 n == 2 otherwise
拉脫維亞語 n % 10 == 1&& n % 100 != 11 n != 0 otherwise
立陶宛語 n % 10 == 1&& n % 100 != 11 n % 100 != 12 && n % 10 == 2 otherwise
馬其頓語 n % 10 == 1 n % 10 == 2 otherwise
波蘭語 n == 1 n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20) otherwise
羅馬尼亞語 n == 1 n == 0|| (n % 100 >= 1 && n % 100 <= 20) otherwise
俄語 n % 10 == 1&& n % 100 != 11 n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20) otherwise
斯洛伐剋語 n == 1 n >= 2 && n <= 4 otherwise
日語 otherwise N/A N/A