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); }