public static LocaleManager getInstance() { if (LocaleManager.s_instance == null) { LocaleManager.s_instance = new LocaleManager(); } return(LocaleManager.s_instance); }
public static string getString(int stringId, string locale) { LocaleManager.getLocaleIndex(locale); if (LocaleManager.strings == null) { LocaleManager.strings = JavaLib.contentManager.Load <Data>("MasterTextFile").Grid[LocaleManager.m_currentLocaleIndex]; } return(LocaleManager.strings[stringId]); }
public void setLocale(string locale) { int localeIndex = LocaleManager.getLocaleIndex(locale); if (localeIndex != -1) { LocaleManager.m_currentLocaleIndex = localeIndex; this.m_currentLocale = locale; } else { LocaleManager.m_currentLocaleIndex = 0; this.m_currentLocale = "en"; } }
public string getString(int stringId) { return(LocaleManager.getString(stringId, (string)null)); }