复数形式的翻译规则
Qt Linguist 以及lrelease 支持QLocale 所支持的所有语言的复数形式。
下表列出了部分语言的具体规则。标有“否则”的单元格表示,当其他规则均不适用于特定语言时,工具将采用该形式。
| 语言 | 规则 1 | 规则 2 | 规则 3 |
|---|---|---|---|
| 英语 | n == 1 | 否则 | 不适用 |
| 法语 | n < 2 | 否则 | 不适用 |
| 捷克语 | n % 100 == 1 | n % 100 >= 2 && n % 100 <= 4 | 其他 |
| 爱尔兰语 | n == 1 | n == 2 | 否则 |
| 拉脱维亚语 | n % 10 == 1&& n % 100 != 11 | n != 0 | 否则 |
| 立陶宛语 | n % 10 == 1&& n % 100 != 11 | n % 100 != 12 && n % 10 == 2 | 其他 |
| 马其顿语 | n % 10 == 1 | n % 10 == 2 | 否则 |
| 波兰语 | n == 1 | n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20) | 其他 |
| 罗马尼亚语 | n == 1 | n == 0|| (n % 100 >= 1 && n % 100 <= 20) | 否则 |
| 俄语 | n % 10 == 1&& n % 100 != 11 | n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20) | 否则 |
| 斯洛伐克语 | n == 1 | n >= 2 && n <= 4 | 否则 |
| 日语 | 否则 | 不适用 | 不适用 |
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.