Regole di traduzione per le forme plurali

Qt Linguist e lrelease supportano le forme plurali per tutte le lingue supportate da QLocale.

La tabella sottostante illustra le regole specifiche per una piccola selezione di lingue. Le celle contrassegnate in altro modo indicano la forma utilizzata dagli strumenti quando nessuna delle altre regole è appropriata per una lingua specifica.

LinguaRegola 1Regola 2Regola 3
Inglesen == 1altrimentiN/A
Francesen < 2altrimentiN/A
Cecon % 100 == 1n % 100 >= 2 && n % 100 <= 4altrimenti
Irlandesen == 1n == 2altrimenti
lettonen % 10 == 1&& n % 100 != 11n != 0altrimenti
Lituanon % 10 == 1&& n % 100 != 11n % 100 != 12 && n % 10 == 2altrimenti
macedonen % 10 == 1n % 10 == 2altrimenti
polaccon == 1n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20)altrimenti
rumenon == 1n == 0|| (n % 100 >= 1 && n % 100 <= 20)altrimenti
russon % 10 == 1&& n % 100 != 11n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20)altrimenti
slovaccon == 1n >= 2 && n <= 4altrimenti
giapponesealtrimentiN/AN/A

© 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.