From 11f4672fa53fda4439f8504ca4d75aff741b9c3e Mon Sep 17 00:00:00 2001 From: ramtzok1 Date: Sun, 12 Jan 2025 12:23:33 +0200 Subject: [PATCH] None will be shown as the first option --- .../data/mods/public/gui/locale_advanced/locale_advanced.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/data/mods/public/gui/locale_advanced/locale_advanced.js b/binaries/data/mods/public/gui/locale_advanced/locale_advanced.js index a19daf3877..45a8b20115 100644 --- a/binaries/data/mods/public/gui/locale_advanced/locale_advanced.js +++ b/binaries/data/mods/public/gui/locale_advanced/locale_advanced.js @@ -19,7 +19,6 @@ function init(initData) // get countryList data (we get all countries and not only the ones we have dictionaries for) var countryListData = []; - countryListData.push(translateWithContext("localeCountry", "None")); var countryListTmp = Engine.GetAllLocales(); var currentLocaleCountry = Engine.GetLocaleCountry(initData.locale); for (let i = 0; i < countryListTmp.length; ++i) @@ -29,6 +28,7 @@ function init(initData) countryListData.push(country); } countryListData.sort(); + countryListData.unshift(translateWithContext("localeCountry", "None")); // fill the languageList languageList.list = languageListData;