From d77b15f0995aa160bea7db1952038750e0b932cf Mon Sep 17 00:00:00 2001 From: David Pierron Date: Fri, 31 Jan 2025 15:06:01 +0100 Subject: [PATCH] re-release with EN as the default language #141 upward compatibility not working #142 --- CTLD-i18n.lua | 4 ++-- CTLD.lua | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CTLD-i18n.lua b/CTLD-i18n.lua index 8a1c8b2..a5f1399 100644 --- a/CTLD-i18n.lua +++ b/CTLD-i18n.lua @@ -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 diff --git a/CTLD.lua b/CTLD.lua index e5c7173..2d7f52d 100644 --- a/CTLD.lua +++ b/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