Exemplo n.º 1
0
    void OnValueChanged(int index)
    {
        LocLang lang = (LocLang)index;

        LocManager.instance.CurrentLanguage = lang;
        _DropDown.ClearOptions();
        _DropDown.AddOptions(LocManager.instance.GetSupportLanguagesLoc());
    }
Exemplo n.º 2
0
    public static string GetAbbr(LocLang lang)
    {
        switch (lang)
        {
        case LocLang.English: return("en");

        case LocLang.SimplifiedChinese: return("zh-cn");

        case LocLang.TraditionalChinese: return("zh-tw");

        case LocLang.Thai: return("th");

        case LocLang.Vietnamese: return("vn");

        case LocLang.Indonesia: return("ind");

        case LocLang.BrazilianPortuguese: return("pt-br");

        case LocLang.Spanish: return("es");

        case LocLang.Russian: return("ru");

        case LocLang.Korean: return("ko");

        case LocLang.French: return("fr");

        case LocLang.German: return("de");

        case LocLang.Turkish: return("tr");

        case LocLang.HINDI: return("hi");

        case LocLang.Japanese: return("ja");

        case LocLang.Romanian: return("rou");
        }
        return("none");
    }
Exemplo n.º 3
0
    public static string GetCSVColumnName(LocLang lang)
    {
        switch (lang)
        {
        case LocLang.English: return("English");

        case LocLang.SimplifiedChinese: return("Chinese");

        case LocLang.TraditionalChinese: return("TraditionalChinese");

        case LocLang.Thai: return("");

        case LocLang.Vietnamese: return("");

        case LocLang.Indonesia: return("");

        case LocLang.BrazilianPortuguese: return("");

        case LocLang.Spanish: return("");

        case LocLang.Russian: return("");

        case LocLang.Korean: return("");

        case LocLang.French: return("");

        case LocLang.German: return("");

        case LocLang.Turkish: return("");

        case LocLang.HINDI: return("");

        case LocLang.Japanese: return("Japanese");

        case LocLang.Romanian: return("");
        }
        return("");
    }
Exemplo n.º 4
0
    public static string GetLocLangName(LocLang loc)
    {
        switch (loc)
        {
        case LocLang.English: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_ENGLISH"));

        case LocLang.SimplifiedChinese: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_CHINESESIM"));

        case LocLang.TraditionalChinese: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_CHINESETRA"));

        case LocLang.Thai: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_THAI"));

        case LocLang.Vietnamese: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_VIETNAMESE"));

        case LocLang.Indonesia: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_INDONESIA"));

        case LocLang.BrazilianPortuguese: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_BRAZILIAN"));

        case LocLang.Spanish: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_SPANISH"));

        case LocLang.Russian: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_RUSSIAN"));

        case LocLang.Korean: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_KOREAN"));

        case LocLang.French: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_FRENCH"));

        case LocLang.German: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_GERMAN"));

        case LocLang.Turkish: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_TURKEY"));

        case LocLang.HINDI: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_HINDI"));

        case LocLang.Japanese: return(LocManager.instance.DoLoc("TXT_SETTING_LANGUAGE_JAPANESE"));

        case LocLang.Romanian: return(LocManager.instance.DoLoc("TXT_OB7_HY_LANGUAGE_SETTING_ROU"));
        }
        return(string.Empty);
    }
Exemplo n.º 5
0
 public void Init(LocLang currentLang)
 {
     _CurrentLang = currentLang;
     _LocText     = new Dictionary <LocLang, Dictionary <string, string> >();
     ParseTranslation();
 }