|
204 | 204 | -- my_ctld.C130DynamicCargoAutoBuildMergeSeconds = 0 -- Merge window in seconds for C-130 auto-build handoff; set to 0 to disable batching (default). |
205 | 205 | -- my_ctld.locale = "en" -- Language locale to use. |
206 | 206 | -- -- Supported: "en" English (default), "de" German, "fr" French, "es" Spanish, |
207 | | --- -- "pt-br" Brazilian Portuguese, "ru" Russian, "tr" Turkish, "zh-cn" Simplified Chinese (Mainland China), "zh-tw" Traditional Chinese (Taiwan). |
| 207 | +-- -- "it" Italian, "pt-br" Brazilian Portuguese, "ru" Russian, "tr" Turkish, |
| 208 | +-- -- "zh-cn" Simplified Chinese (Mainland China), "zh-tw" Traditional Chinese (Taiwan). |
208 | 209 | -- |
209 | 210 | -- ## 2.1 CH-47 Chinook support |
210 | 211 | -- |
@@ -1499,7 +1500,7 @@ function CTLD:_InitLocalization() |
1499 | 1500 | end |
1500 | 1501 |
|
1501 | 1502 | --- [User] Set a resolver used to select a CTLD locale for group-specific menus and messages. |
1502 | | --- Supported locales: "en", "de", "fr", "es", "pt-br", "ru", "tr", "zh-cn", "zh-tw". |
| 1503 | +-- Supported locales: "en", "de", "fr", "es", "it", "pt-br", "ru", "tr", "zh-cn", "zh-tw". |
1503 | 1504 | -- If unset, CTLD keeps using `self.locale` as before. |
1504 | 1505 | -- @param #CTLD self |
1505 | 1506 | -- @param #function Resolver Function called as `Resolver(self, Group)` and expected to return a locale string. |
@@ -1542,6 +1543,10 @@ function CTLD:_GetMenuPluralSuffix(Count, Kind, Group) |
1542 | 1543 | return "ов" |
1543 | 1544 | end |
1544 | 1545 | if locale == "tr" then return "" end |
| 1546 | + if locale == "it" then |
| 1547 | + if Kind == "crate" then return count > 1 and "e" or "a" end |
| 1548 | + if Kind == "set" then return "" end |
| 1549 | + end |
1545 | 1550 | if locale == "de" and Kind == "crate" then return count > 1 and "n" or "" end |
1546 | 1551 | return count > 1 and "s" or "" |
1547 | 1552 | end |
|
0 commit comments