Ticket #2533: lng_verification.2.diff
File lng_verification.2.diff, 3.1 KB (added by , 10 years ago) |
---|
-
binaries/data/mods/public/gui/locale/locale_advanced.js
70 70 71 71 var resultingLocaleTmp = languageList.list_data[languageList.selected]; 72 72 73 if (scriptInput.caption != "")74 resultingLocaleTmp = resultingLocaleTmp + "_" + scriptInput.caption;75 76 73 if (countryList.selected != -1 && countryList.list_data[countryList.selected] != translateWithContext("localeCountry", "None")) 77 74 resultingLocaleTmp = resultingLocaleTmp + "_" + countryList.list_data[countryList.selected]; 78 75 -
binaries/data/mods/public/gui/locale/locale_advanced.xml
31 31 </object> 32 32 33 33 <object type="text" size="5 110 50% 135" style="ModernLabelText" text_align="left"> 34 <translatableAttribute id="caption">Script :</translatableAttribute>34 <translatableAttribute id="caption">Script (unused):</translatableAttribute> 35 35 </object> 36 36 <object name="scriptInput" size="50%+10 110 100% 135" type="input" style="ModernInput"> 37 <translatableAttribute id="tooltip"> Optional four-letter script code part following the language code (as listed in ISO 15924)</translatableAttribute>37 <translatableAttribute id="tooltip">Not implemented yet.<!--Optional four-letter script code part following the language code (as listed in ISO 15924)--></translatableAttribute> 38 38 </object> 39 39 40 40 <object type="text" size="5 140 50% 165" style="ModernLeftLabelText"> -
source/i18n/L10n.cpp
97 97 return ValidateLocale(Locale::createCanonical(localeCode.c_str())); 98 98 } 99 99 100 // Returns true if both of these conditions are true:101 // 1. ICU has resources for that locale (which also ensures it's a valid locale string)102 // 2. Either a dictionary for language_country or for language is available.100 // Returns true if a dictionary for language_country or for language is available. 101 // Will warn the user if ICU doesn't have resources for that locale 102 // (which also ensures it's a valid locale string) 103 103 bool L10n::ValidateLocale(Locale locale) 104 104 { 105 105 int32_t count; … … 114 114 } 115 115 } 116 116 if(!icuSupported) 117 return false;117 LOGWARNING(L"Your locale isn't available in the localisation library we use (ICU). \nIf you know your language code is correct, please head over to the ICU bug tracker (http://bugs.icu-project.org/trac),\ncheck if it has been reported already, and if not, report your problem.\nYour locale dependant data (like date and time notations) will be in a different language"); 118 118 119 119 for (std::vector<Locale*>::iterator iterator = availableLocales.begin(); iterator != availableLocales.end(); ++iterator) 120 120 {