其他分享
首页 > 其他分享> > Android 各国语言信息的数组定义

Android 各国语言信息的数组定义

作者:互联网

class LanguageInfo
{
    String sName;
    Locale lLocale;
    String sFlag;
    LanguageInfo(String name, Locale locale, String flag)
    {
        sName = name;
        lLocale = locale;
        sFlag = flag;
    }
}

private LanguageInfo languageInfo[] = 
{
      new LanguageInfo("English", Locale.ENGLISH, "english"),
      new LanguageInfo("简体中文", Locale.SIMPLIFIED_CHINESE, "simplified"),
      new LanguageInfo("繁體中文", Locale.TRADITIONAL_CHINESE, "traditional"),
      new LanguageInfo("Francais", Locale.FRANCE, "francais"),//法
      new LanguageInfo("Deutsch", Locale.GERMAN, "deutsch"),//德
      new LanguageInfo("Espanol", new Locale("es", "ES"), "espanol"),//西班牙
      new LanguageInfo("Jezyk polski", new Locale("pl", "PL"), "polski"),//波兰
      new LanguageInfo("Italiano", Locale.ITALIAN, "italiano"),//意大利
      new LanguageInfo("Nederlands", new Locale("nl", "NL"), "nederlands"),//荷兰
      new LanguageInfo("Português", new Locale("pt", "PT"), "portuguese"),//葡萄牙
      new LanguageInfo("Czech", new Locale("cs", "CZ"), "czech"),//捷克
      new LanguageInfo("Greek", new Locale("el", "GR"), "greek"),//希腊
      new LanguageInfo("Romanian", new Locale("ro", "RO"), "romanian"),//罗马尼亚
      new LanguageInfo("Lithuanian", new Locale("lt", "LT"), "lithuanian"),//立陶宛
      new LanguageInfo("Thai", new Locale("th", "TH"), "thai"),//泰
      new LanguageInfo("Hebrew", new Locale("he", "IL"), "hebrew"),//希伯来
      new LanguageInfo("Belgian", new Locale("nl", "BE"), "belgian"),//比利时官方语言: 荷兰语(nl_BE),法语(fr_BE),德语
      new LanguageInfo("Ukrainian", new Locale("uk", "UA"), "ukrainian"),//乌克兰
      new LanguageInfo("Serbian", new Locale("sr", "RS"), "serbian"),//塞尔维亚
      new LanguageInfo("Croatian", new Locale("hr", "HR"), "croatian"),//克罗地亚
      new LanguageInfo("Slovenian", new Locale("sl", "SI"), "slovenian"),//斯洛文尼亚
      new LanguageInfo("Hungarian", new Locale("hu", "HU"), "hungarian"),//匈牙利
      new LanguageInfo("Slovakia", new Locale("sk", "SK"), "slovakia"),//斯洛伐克
      new LanguageInfo("Russian", new Locale("ru", "RU"), "russian"),//俄
      new LanguageInfo("Turkey", new Locale("tr", "TR"), "turkey"),//土耳其
      new LanguageInfo("Japanese", Locale.JAPANESE, "japanese"),//日语
      new LanguageInfo("Arabic", new Locale("ar", "EG"), "arabic"),//阿拉伯语
      new LanguageInfo("Estonian", new Locale("et", "EE"), "estonian"),//爱沙尼亚
      new LanguageInfo("Vietnam", new Locale("vi", "VN"), "vietnam"),//越南
      new LanguageInfo("Malaysia", new Locale("hu", "HU"), "malaysia"),//马来西亚
}; 

 

标签:sName,nl,定义,Locale,数组,new,Android,LanguageInfo,String
来源: https://blog.51cto.com/u_15298588/3034424