public string getLangString(int stringId, int languageIndex) { this.temp_strArr = LocaleManager.getInstance().getSupportedLocales(); this.temp_str = this.temp_strArr[languageIndex]; this.temp_str2 = LocaleManager.getString(stringId, this.temp_str); return(this.temp_str2); }
public void setCurrentLanguage(int index) { if (index == this.getCurrentLanguage()) { return; } this.temp_strArr = LocaleManager.getInstance().getSupportedLocales(); this.temp_str = this.temp_strArr[index]; this.setCurrentLocale(this.temp_str); }
private void loadStrings() { LocaleManager instance = LocaleManager.getInstance(); int num = this.m_stringsFilenames.size(); for (int index = 0; index < num; ++index) { this.temp_str = (string)this.m_stringsFilenames.elementAt(index); this.temp_strArr = instance.loadStrings(this.temp_str); instance.setStringPool(1 + index, this.temp_strArr); } }
public void setCurrentLocale(string locale) { LocaleManager instance = LocaleManager.getInstance(); this.temp_strArr = instance.getSupportedLocales(); if (this.getCurrentLanguage() >= 0) { this.unloadStrings(); } instance.setLocale(locale); this.loadStrings(); this.clearWrapChunks(); }
public static void PromptForUpdate() { JavaLibGame.GSC.Enabled = false; if (XNAConnect.guideVisible || Guide.IsVisible) { return; } XNAConnect.guideVisible = true; Guide.BeginShowMessageBox(LocaleManager.getInstance().getString(1881), LocaleManager.getInstance().getString(1882), (IEnumerable <string>) new List <string>() { LocaleManager.getInstance().getString(32), LocaleManager.getInstance().getString(31) }, 1, MessageBoxIcon.Alert, new AsyncCallback(XNAConnect.MessageBoxFinished), (object)null); }
public int getCurrentLanguage() { LocaleManager instance = LocaleManager.getInstance(); this.temp_strArr = instance.getSupportedLocales(); this.temp_str = instance.getLocale(); for (int index = 0; index < this.temp_strArr.Length; ++index) { if (this.temp_str.Equals(this.temp_strArr[index])) { return(index); } } return(-1); }
public void init() { LocaleManager instance = LocaleManager.getInstance(); instance.setStringIdBits(11); this.temp_strArr = instance.getSupportedLocales(); this.temp_str2 = "strings_hdr.bin"; for (int index = 0; index < this.temp_strArr.Length; ++index) { this.temp_str = this.temp_strArr[index]; string[] pool = instance.loadStrings(this.temp_str2, this.temp_str); instance.setStringPool(0, pool, this.temp_strArr[index]); } this.addStringsFile("strings_generic.bin"); this.loadStrings(); this.initWraps(); this.initStringBuffers(); this.initFonts(); }
public void trackOptionLanguage() { EASpywareManager.getInstance().logEvent(225, LocaleManager.getInstance().getLocale()); }
public int getLanguageCount() { return(LocaleManager.getInstance().getSupportedLocales().Length); }
public string getString(int stringid) { return(stringid < -2 ? this.m_dynamicStrings[stringid - -12] : LocaleManager.getInstance().getString(stringid)); }
public void appendCurrencyToBuffer(double number) { this.temp_str = LocaleManager.getInstance().formatCurrency(number); this.m_tempStringBuffer.append(this.temp_str); }
public string getCurrentLocale() { return(LocaleManager.getInstance().getLocale()); }