[Previous: Writing Source Code for Translation]
The table below shows the specific rules that are produced by Qt Linguist and lrelease for a selection of languages. Cells marked otherwise indicate the form used when none of the other rules are appropriate for a specific language.
Language | Rule 1 | Rule 2 | Rule 3 |
---|---|---|---|
English | n == 1 | otherwise | N/A |
French | n < 2 | otherwise | N/A |
Czech | n % 100 == 1 | n % 100 >= 2 && n % 100 <= 4 | otherwise |
Irish | n == 1 | n == 2 | otherwise |
Latvian | n % 10 == 1&& n % 100 != 11 | n != 0 | otherwise |
Lithuanian | n % 10 == 1&& n % 100 != 11 | n % 100 != 12 && n % 10 == 2 | otherwise |
Macedonian | n % 10 == 1 | n % 10 == 2 | otherwise |
Polish | n == 1 | n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20) | otherwise |
Romanian | n == 1 | n == 0|| (n % 100 >= 1 && n % 100 <= 20) | otherwise |
Russian | n % 10 == 1&& n % 100 != 11 | n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 > 20) | otherwise |
Slovak | n == 1 | n >= 2 && n <= 4 | otherwise |
Japanese | otherwise | N/A | N/A |
The rules themselves are not documented and are internal to Qt Linguist and lrelease.
[Previous: Writing Source Code for Translation]
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.