nv-i18n
nv-i18n copied to clipboard
Add getByLocale() and toLocale() to ScriptCode
Add getByLocale(Locale) and toLocale() to ScriptCode. These methods already exist in CountryCode, LanguageCode, and LocaleCode.
Calling toLocale() always returns a Locale with the just the script set.
Script support wasn't added to Locale until Java 1.7, so calling either method will increase the minimum Java version required at runtime from Java 1.5 to Java 1.7.