mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-09 10:16:49 +00:00
Add Italian locale support to CTLD
Added Italian Localization
This commit is contained in:
@@ -204,7 +204,8 @@ do
|
||||
-- my_ctld.C130DynamicCargoAutoBuildMergeSeconds = 0 -- Merge window in seconds for C-130 auto-build handoff; set to 0 to disable batching (default).
|
||||
-- my_ctld.locale = "en" -- Language locale to use.
|
||||
-- -- Supported: "en" English (default), "de" German, "fr" French, "es" Spanish,
|
||||
-- -- "pt-br" Brazilian Portuguese, "ru" Russian, "tr" Turkish, "zh-cn" Simplified Chinese (Mainland China), "zh-tw" Traditional Chinese (Taiwan).
|
||||
-- -- "it" Italian, "pt-br" Brazilian Portuguese, "ru" Russian, "tr" Turkish,
|
||||
-- -- "zh-cn" Simplified Chinese (Mainland China), "zh-tw" Traditional Chinese (Taiwan).
|
||||
--
|
||||
-- ## 2.1 CH-47 Chinook support
|
||||
--
|
||||
@@ -1499,7 +1500,7 @@ function CTLD:_InitLocalization()
|
||||
end
|
||||
|
||||
--- [User] Set a resolver used to select a CTLD locale for group-specific menus and messages.
|
||||
-- Supported locales: "en", "de", "fr", "es", "pt-br", "ru", "tr", "zh-cn", "zh-tw".
|
||||
-- Supported locales: "en", "de", "fr", "es", "it", "pt-br", "ru", "tr", "zh-cn", "zh-tw".
|
||||
-- If unset, CTLD keeps using `self.locale` as before.
|
||||
-- @param #CTLD self
|
||||
-- @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)
|
||||
return "ов"
|
||||
end
|
||||
if locale == "tr" then return "" end
|
||||
if locale == "it" then
|
||||
if Kind == "crate" then return count > 1 and "e" or "a" end
|
||||
if Kind == "set" then return "" end
|
||||
end
|
||||
if locale == "de" and Kind == "crate" then return count > 1 and "n" or "" end
|
||||
return count > 1 and "s" or ""
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user