mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2025-08-15 06:17:22 +00:00
re-release with EN as the default language #141
upward compatibility not working #142
This commit is contained in:
parent
a5b68dbf90
commit
d77b15f099
@ -18,7 +18,7 @@ ctld.i18n = {}
|
||||
|
||||
--======== FRENCH - FRANCAIS =====================================================================================
|
||||
ctld.i18n["fr"] = {}
|
||||
ctld.i18n["fr"].translation_version = "1.1" -- make sure that this translation is compatible with the current version of the english language texts (ctld.i18n["en"].translation_version)
|
||||
ctld.i18n["fr"].translation_version = "1.2" -- make sure that this translation is compatible with the current version of the english language texts (ctld.i18n["en"].translation_version)
|
||||
local lang="fr";env.info(string.format("I - CTLD.i18n_translate: Loading %s language version %s", lang, tostring(ctld.i18n[lang].translation_version)))
|
||||
|
||||
--- groups names
|
||||
@ -271,7 +271,7 @@ ctld.i18n["fr"]["STOP autoRefresh targets in LOS"] = "Stopper suivi automatique
|
||||
|
||||
--====== SPANISH : ESPAÑOL====================================================================================
|
||||
ctld.i18n["es"] = {}
|
||||
ctld.i18n["es"].translation_version = "1.1" -- make sure that this translation is compatible with the current version of the english language texts (ctld.i18n["en"].translation_version)
|
||||
ctld.i18n["es"].translation_version = "1.2" -- make sure that this translation is compatible with the current version of the english language texts (ctld.i18n["en"].translation_version)
|
||||
local lang="es";env.info(string.format("I - CTLD.i18n_translate: Loading %s language version %s", lang, tostring(ctld.i18n[lang].translation_version)))
|
||||
|
||||
--- groups names
|
||||
|
||||
6
CTLD.lua
6
CTLD.lua
@ -29,9 +29,9 @@
|
||||
Send beers (or kind messages) to Ciribob [on Discord](https://discordapp.com/users/204712384747536384), he's the reason we have CTLD ^^
|
||||
]]
|
||||
|
||||
assert(ctld ~= nil, "\n\n** HEY MISSION-DESIGNER! **\n\nCTLD-i18n has not been loaded!\n\nMake sure CTLD-i18n is loaded\n*before* running this script!\n\nIt contains all the translations!\n")
|
||||
if not ctld then -- should be defined first by CTLD-i18n.lua, but just in case it's an old mission, let's keep it here
|
||||
ctld = {} -- DONT REMOVE!
|
||||
trigger.action.outText("\n\n** HEY MISSION-DESIGNER! **\n\nCTLD-i18n has not been loaded!\n\nMake sure CTLD-i18n is loaded\n*before* running this script!\n\nIt contains all the translations!\n", 10)
|
||||
ctld = {} -- DONT REMOVE!
|
||||
end
|
||||
|
||||
--- Identifier. All output in DCS.log will start with this.
|
||||
@ -69,7 +69,7 @@ end
|
||||
-- If a string is not found in the current language then it will default to this language
|
||||
-- Note that no translation is provided for this language (obviously) but that we'll maintain this table to help the translators.
|
||||
ctld.i18n["en"] = {}
|
||||
ctld.i18n["en"].translation_version = "1.1" -- make sure that all the translations are compatible with this version of the english language texts
|
||||
ctld.i18n["en"].translation_version = "1.2" -- make sure that all the translations are compatible with this version of the english language texts
|
||||
local lang="en";env.info(string.format("I - CTLD.i18n_translate: Loading %s language version %s", lang, tostring(ctld.i18n[lang].translation_version)))
|
||||
|
||||
--- groups names
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user