@Test public void testLanguage() { assertEquals("en", Locales.getLanguage(Locale.getDefault())); }
public static String getLanguage(final Locale locale) { final String language = locale.getLanguage(); if (language.equals("iw")) { return "he"; } if (language.equals("in")) { return "id"; } if (language.equals("ji")) { return "yi"; } return language; }
Locales { public static String getLanguage(final Locale locale) { final String language = locale.getLanguage(); if (language.equals("iw")) { return "he"; } if (language.equals("in")) { return "id"; } if (language.equals("ji")) { return "yi"; } return language; } }
Locales { public static String getLanguage(final Locale locale) { final String language = locale.getLanguage(); if (language.equals("iw")) { return "he"; } if (language.equals("in")) { return "id"; } if (language.equals("ji")) { return "yi"; } return language; }  }
Locales { public static String getLanguage(final Locale locale) { final String language = locale.getLanguage(); if (language.equals("iw")) { return "he"; } if (language.equals("in")) { return "id"; } if (language.equals("ji")) { return "yi"; } return language; }  static void initializeLocale(Context context); static String getLanguage(final Locale locale); static String getLanguageTag(final Locale locale); static Locale parseLocaleCode(final String localeCode); static Set<String> getCountriesInDefaultLocaleList(); static Resources getLocalizedResources(Context context); }
Locales { public static String getLanguage(final Locale locale) { final String language = locale.getLanguage(); if (language.equals("iw")) { return "he"; } if (language.equals("in")) { return "id"; } if (language.equals("ji")) { return "yi"; } return language; }  static void initializeLocale(Context context); static String getLanguage(final Locale locale); static String getLanguageTag(final Locale locale); static Locale parseLocaleCode(final String localeCode); static Set<String> getCountriesInDefaultLocaleList(); static Resources getLocalizedResources(Context context);  }