复数形式的翻译规则
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 | 其他 |
日语 | 其他 | 不适用 | 不适用 |
© 2025 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.