複数形の翻訳ルール

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.