@Test public void to_locale() { LocalizationSetterImpl setter = new LocalizationSetterImpl(null, null, null, "en"); checkLocale(setter.toLocale("en"), "en", "", ""); checkLocale(setter.toLocale("klingon_Gach"), "klingon", "GACH", ""); checkLocale(setter.toLocale("klingon_Gach_snuff"), "klingon", "GACH", "snuff"); }
public Locale toLocale(String localeName) { Locale result = localeCache.get(localeName); if (result == null) { result = constructLocale(localeName); localeCache.put(localeName, result); } return result; }
LocalizationSetterImpl implements LocalizationSetter { public Locale toLocale(String localeName) { Locale result = localeCache.get(localeName); if (result == null) { result = constructLocale(localeName); localeCache.put(localeName, result); } return result; } }
LocalizationSetterImpl implements LocalizationSetter { public Locale toLocale(String localeName) { Locale result = localeCache.get(localeName); if (result == null) { result = constructLocale(localeName); localeCache.put(localeName, result); } return result; } LocalizationSetterImpl(Request request,

    PersistentLocale persistentLocale,

    ThreadLocale threadLocale,

    @Symbol(SymbolConstants.SUPPORTED_LOCALES)
    String localeNames); }
LocalizationSetterImpl implements LocalizationSetter { public Locale toLocale(String localeName) { Locale result = localeCache.get(localeName); if (result == null) { result = constructLocale(localeName); localeCache.put(localeName, result); } return result; } LocalizationSetterImpl(Request request,

    PersistentLocale persistentLocale,

    ThreadLocale threadLocale,

    @Symbol(SymbolConstants.SUPPORTED_LOCALES)
    String localeNames); Locale toLocale(String localeName); boolean setLocaleFromLocaleName(String localeName); void setNonPersistentLocaleFromLocaleName(String localeName); List<Locale> getSupportedLocales(); boolean isSupportedLocaleName(String localeName); SelectModel getSupportedLocalesModel(); }
LocalizationSetterImpl implements LocalizationSetter { public Locale toLocale(String localeName) { Locale result = localeCache.get(localeName); if (result == null) { result = constructLocale(localeName); localeCache.put(localeName, result); } return result; } LocalizationSetterImpl(Request request,

    PersistentLocale persistentLocale,

    ThreadLocale threadLocale,

    @Symbol(SymbolConstants.SUPPORTED_LOCALES)
    String localeNames); Locale toLocale(String localeName); boolean setLocaleFromLocaleName(String localeName); void setNonPersistentLocaleFromLocaleName(String localeName); List<Locale> getSupportedLocales(); boolean isSupportedLocaleName(String localeName); SelectModel getSupportedLocalesModel();  }