复数形式的翻译规则

Qt Linguist 以及lrelease 支持QLocale 所支持的所有语言的复数形式。

下表列出了部分语言的具体规则。标有“否则”的单元格表示,当其他规则均不适用于特定语言时,工具将采用该形式。

语言规则 1规则 2规则 3
英语n == 1否则不适用
法语n < 2否则不适用
捷克语n % 100 == 1n % 100 >= 2 && n % 100 <= 4其他
爱尔兰语n == 1n == 2否则
拉脱维亚语n % 10 == 1&& n % 100 != 11n != 0否则
立陶宛语n % 10 == 1&& n % 100 != 11n % 100 != 12 && n % 10 == 2其他
马其顿语n % 10 == 1n % 10 == 2否则
波兰语n == 1n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20)其他
罗马尼亚语n == 1n == 0|| (n % 100 >= 1 && n % 100 <= 20)否则
俄语n % 10 == 1&& n % 100 != 11n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20)否则
斯洛伐克语n == 1n >= 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.