private void GetLocale(ISN_Locale locale) { ISN_Logger.Log("GetLocale"); ISN_Logger.Log(locale.DisplayCountry); IOSNativePopUpManager.showMessage("Locale Info:", "Country:" + locale.CountryCode + "/" + locale.DisplayCountry + " : " + "Language:" + locale.LanguageCode + "/" + locale.DisplayLanguage); IOSNativeUtility.OnLocaleLoaded -= GetLocale; }
private void OnLocaleLoadedHandler(string data) { string[] dataArray = data.Split(SA.Common.Data.Converter.DATA_SPLITTER); string countryCode = dataArray[0]; string contryName = dataArray[1]; string languageCode = dataArray[2]; string languageName = dataArray[3]; ISN_Locale locale = new ISN_Locale(countryCode, contryName, languageCode, languageName); OnLocaleLoaded(locale); }
private void GetLocale(ISN_Locale locale) { IOSNativeUtility.OnLocaleLoaded -= GetLocale; string savedLanguage = PreferencesFactory.GetString("Language", useSecurePrefs: false); string systemLanguage = LanguageUtils.CountryCodeToLanguage(locale.CountryCode.ToLower()); // user does not changed his language manual // and system language is different from previous auto-detected if (systemLanguage != savedLanguage) { LanguageController.ChangeLanguage(systemLanguage); } }
private void GetLocale (ISN_Locale locale){ Debug.Log ("GetLocale"); Debug.Log (locale.DisplayCountry); IOSNativePopUpManager.showMessage("Locale Info:", "Country:" + locale.CountryCode + "/" + locale.DisplayCountry + " : " + "Language:" + locale.LanguageCode + "/" + locale.DisplayLanguage); IOSNativeUtility.OnLocaleLoaded -= GetLocale; }
public UM_LocaleInfo(ISN_Locale locale) { _IOSLocale = locale; }
public UM_LocaleInfo(ISN_Locale locale) { _IOSLocale= locale; }
void HandleOnLocaleLoaded_IOS(ISN_Locale locale) { IOSNativeUtility.OnLocaleLoaded -= HandleOnLocaleLoaded_IOS; OnLocaleLoaded(new UM_LocaleInfo(locale)); }