|
| 1 | +.. _doc_plural_rules: |
| 2 | + |
| 3 | +Plural rules |
| 4 | +~~~~~~~~~~~~ |
| 5 | + |
| 6 | +.. Note: This list should be synced with core/string/locales.h in the engine. |
| 7 | +
|
| 8 | +This is the full list of built-in plural rules available in Godot in human-readable form. |
| 9 | +See the `source code <https://github.com/godotengine/godot/blob/4.6.3-stable/core/string/locales.h#L1819-L1855>`__ |
| 10 | +for their original gettext format form. |
| 11 | + |
| 12 | +These plural rules are automatically used when no plural rule is specified in |
| 13 | +:ref:`CSV localization <doc_localization_using_spreadsheets>`. Plural forms are |
| 14 | +spelled out in the order they should be specified in the CSV file (from top to |
| 15 | +bottom). |
| 16 | + |
| 17 | +.. tip:: |
| 18 | + |
| 19 | + Use your browser's search function (:kbd:`Ctrl + F` or :kbd:`Cmd + F`) to |
| 20 | + quickly find a specific language according to its |
| 21 | + :ref:`locale code <doc_locales>`. |
| 22 | + |
| 23 | +Plural rules |
| 24 | +------------ |
| 25 | + |
| 26 | +- Languages with no plural forms (``bm bo dz hnj id ig ii in ja jbo jv jw kde kea km ko lkt lo ms my nqo osa root sah ses sg su th to tpi vi wo yo yue zh``): |
| 27 | + |
| 28 | + - First form for all numbers. |
| 29 | + |
| 30 | +- Languages with the same rules as English (``af an asa ast az bal bem bez bg brx ca ce cgg chr ckb da de dv ee el en eo es et eu fi fo fur fy gl gsw ha haw he hu ia io it jgo ji jmc ka kaj kcg kk kkj kl ks ksb ku ky lb lg lij mas mgo ml mn mr nah nb nd ne nl nn nnh no nr ny nyn om or os pap ps pt rm rof rwk saq sc sd sdh seh sn so sq ss ssy st sv sw syr ta te teo tig tk tn tr ts ug ur uz ve vo vun wae xh xog yi``): |
| 31 | + |
| 32 | + - First form for 1. |
| 33 | + - Second form for 0, and for 2 and above. |
| 34 | + |
| 35 | +- Languages with the same rules as French (``ak bho csw ff fr guw hy kab ln mg nso pa pt_BR si ti wa``): |
| 36 | + |
| 37 | + - First form for 0 and 1. |
| 38 | + - Second form for 2 and above. |
| 39 | + |
| 40 | +- Icelandic, Macedonian (``is mk``): |
| 41 | + |
| 42 | + - First form when the last digit is 1 but the number is not 11. |
| 43 | + - Second form for all other numbers. |
| 44 | + |
| 45 | +- Central Atlas Tamazight (``tzm``): |
| 46 | + |
| 47 | + - First form for 0, 1, and all numbers from 11 to 99. |
| 48 | + - Second form for 2-10, and for 100 and above. |
| 49 | + |
| 50 | +- Amharic, Assamese, Bengali, Dogri, Persian, Gujarati, Hindi, Kannada, Nigerian Pidgin, Zulu (``am as bn doi fa gu hi kn pcm zu``): |
| 51 | + |
| 52 | + - First form for 2 and above. |
| 53 | + - Second form for 0 and 1. |
| 54 | + |
| 55 | +- Cebuano, Filipino, Tagalog (``ceb fil tl``): |
| 56 | + |
| 57 | + - First form for 1, 2, and 3, and for any number that does not end in 4, 6, or 9. |
| 58 | + - Second form for numbers ending in 4, 6, or 9. |
| 59 | + |
| 60 | +- Prussian (``prg``): |
| 61 | + |
| 62 | + - First form for numbers ending in 0 and for numbers 11-19. |
| 63 | + - Second form for numbers ending in 1, except 11. |
| 64 | + - Third form for all remaining numbers. |
| 65 | + |
| 66 | +- Latvian (``lv``): |
| 67 | + |
| 68 | + - First form for numbers ending in 1, except 11. |
| 69 | + - Second form for all non-zero numbers (including 11). |
| 70 | + - Third form for 0. |
| 71 | + |
| 72 | +- Lithuanian (``lt``): |
| 73 | + |
| 74 | + - First form for numbers ending in 1, except 11. |
| 75 | + - Second form for numbers ending in 2-9, excluding the teens (12-19). |
| 76 | + - Third form for 0, for the teens (10-19), and for numbers ending in 0. |
| 77 | + |
| 78 | +- Belarusian, Croatian, Russian, Serbian, Ukrainian (``be hr ru sr uk``): |
| 79 | + |
| 80 | + - First form for numbers ending in 1, except 11. |
| 81 | + - Second form for numbers ending in 2-4, except the teens (12-14). |
| 82 | + - Third form for everything else. |
| 83 | + |
| 84 | +- Bosnian, Serbo-Croatian (``bs sh``): |
| 85 | + |
| 86 | + - First form for numbers ending in 1, except 11. |
| 87 | + - Second form for numbers ending in 2-4, except 12-14. |
| 88 | + - Third form for everything else. |
| 89 | + |
| 90 | +- Langi (``lag``): |
| 91 | + |
| 92 | + - First form for 0. |
| 93 | + - Second form for 1. |
| 94 | + - Third form for 2 and above. |
| 95 | + |
| 96 | +- Anii, Colognian (``blo ksh``): |
| 97 | + |
| 98 | + - First form for 0. |
| 99 | + - Second form for 1. |
| 100 | + - Third form for 2 and above. |
| 101 | + |
| 102 | +- Tachelhit (``shi``): |
| 103 | + |
| 104 | + - First form for 0 and 1. |
| 105 | + - Second form for 2-10. |
| 106 | + - Third form for 11 and above. |
| 107 | + |
| 108 | +- Polish (``pl``): |
| 109 | + |
| 110 | + - First form for 1. |
| 111 | + - Second form for numbers ending in 2-4, except the teens (12-14). |
| 112 | + - Third form for everything else. |
| 113 | + |
| 114 | +- Moldavian (``mo``): |
| 115 | + |
| 116 | + - First form for 1. |
| 117 | + - Second form for 0 and for numbers whose last two digits are 01-19 (except when the number itself is exactly 1). |
| 118 | + - Third form for numbers whose last two digits are 00 or 20-99. |
| 119 | + |
| 120 | +- Inuktitut, Hebrew, Nama, Northern Sami, Sami, Southern Sami, Lule Sami, Inari Sami, Santali, Skolt Sami (``iu iw naq sat se sma smi smj smn sms``): |
| 121 | + |
| 122 | + - First form for 1. |
| 123 | + - Second form for 2. |
| 124 | + - Third form for everything else. |
| 125 | + |
| 126 | +- Czech, Slovak (``cs sk``): |
| 127 | + |
| 128 | + - First form for 1. |
| 129 | + - Second form for 2-4. |
| 130 | + - Third form for 0 and 5 and above. |
| 131 | + |
| 132 | +- Romanian (``ro``): |
| 133 | + |
| 134 | + - First form for 1. |
| 135 | + - Second form for 0 and for numbers whose last two digits are 01-19. |
| 136 | + - Third form for numbers whose last two digits are 00 or 20-99. |
| 137 | + |
| 138 | +- Irish (``ga``): |
| 139 | + |
| 140 | + - First form for 1. |
| 141 | + - Second form for 2. |
| 142 | + - Third form for everything else. |
| 143 | + |
| 144 | +- Slovenian (``sl``): |
| 145 | + |
| 146 | + - First form for numbers ending in 01. |
| 147 | + - Second form for numbers ending in 02. |
| 148 | + - Third form for numbers ending in 03 or 04. |
| 149 | + - Fourth form for everything else. |
| 150 | + |
| 151 | +- Lower Sorbian, Upper Sorbian (``dsb hsb``): |
| 152 | + |
| 153 | + - First form for numbers ending in 01. |
| 154 | + - Second form for numbers ending in 02. |
| 155 | + - Third form for numbers ending in 03 or 04. |
| 156 | + - Fourth form for everything else. |
| 157 | + |
| 158 | +- Manx (``gv``): |
| 159 | + |
| 160 | + - First form for numbers ending in 1. |
| 161 | + - Second form for numbers ending in 2. |
| 162 | + - Third form for numbers ending in 00, 20, 40, 60, or 80. |
| 163 | + - Fourth form for everything else. |
| 164 | + |
| 165 | +- Scottish Gaelic (``gd``): |
| 166 | + |
| 167 | + - First form for 1 and 11. |
| 168 | + - Second form for 2 and 12. |
| 169 | + - Third form for 3-10 and 13-19. |
| 170 | + - Fourth form for everything else (0 and 20+). |
| 171 | + |
| 172 | +- Breton (``br``): |
| 173 | + |
| 174 | + - First form for numbers ending in 1, except 11, 71, and 91. |
| 175 | + - Second form for numbers ending in 2, except 12, 72, and 92. |
| 176 | + - Third form for numbers ending in 3, 4, or 9, except those in the ranges 13-19, 73-79, and 93-99. |
| 177 | + - Fourth form for non-zero multiples of 1,000,000. |
| 178 | + - Fifth form for everything else. |
| 179 | + |
| 180 | +- Maltese (``mt``): |
| 181 | + |
| 182 | + - First form for 1. |
| 183 | + - Second form for 2. |
| 184 | + - Third form for 0 and for numbers ending in 03-10. |
| 185 | + - Fourth form for numbers ending in 11-19. |
| 186 | + - Fifth form for everything else. |
| 187 | + |
| 188 | +- Cornish (``kw``): |
| 189 | + |
| 190 | + - First form for 0. |
| 191 | + - Second form for 1. |
| 192 | + - Third form for numbers ending in 02, 22, 42, 62, or 82, and for certain round numbers. |
| 193 | + - Fourth form for numbers ending in 03, 23, 43, 63, or 83. |
| 194 | + - Fifth form for numbers ending in 01, 21, 41, 61, or 81 (except 1 itself). |
| 195 | + - Sixth form for everything else. |
| 196 | + |
| 197 | +- Arabic, Najdi Arabic (``ar ars``): |
| 198 | + |
| 199 | + - First form for 0. |
| 200 | + - Second form for 1. |
| 201 | + - Third form for 2. |
| 202 | + - Fourth form for numbers ending in 03-10. |
| 203 | + - Fifth form for numbers ending in 11-99. |
| 204 | + - Sixth form for numbers ending in 00, 01, or 02 (i.e., 100, 101, 102, 200, etc.). |
| 205 | + |
| 206 | +- Welsh (``cy``): |
| 207 | + |
| 208 | + - First form for 0. |
| 209 | + - Second form for 1. |
| 210 | + - Third form for 2. |
| 211 | + - Fourth form for 3. |
| 212 | + - Fifth form for 6. |
| 213 | + - Sixth form for everything else. |
0 commit comments