LocaleResolver from project resourcebundle-core.public class LocaleResolver extends Object
LocaleResolver helps to resolve locale objects and languages.| Constructor and Description |
|---|
LocaleResolver()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
resolveAvailableLanguages(String bundlepackage,
String bundlename)
Deprecated.
Resolves all the available languages for the given resource bundle name in the given bundle
package.
|
static String |
resolveBundlename(File propertiesFile)
Deprecated.
Resolves the bundle name from the given properties file.
|
static Locale |
resolveLocale(File propertiesFile)
Deprecated.
Resolves the locale from the given properties file.
|
static Locale |
resolveLocale(String localeCode)
Deprecated.
Resolves the
Locale object from the given properties file. |
static Map<File,Locale> |
resolveLocales(String bundlepackage,
String bundlename)
Deprecated.
Resolves all the available Locales to the given resource bundle name in the given bundle
package.
|
public static Set<String> resolveAvailableLanguages(String bundlepackage, String bundlename)
bundlepackage - The package that contains the properties files.bundlename - The name of the resource bundle.public static String resolveBundlename(File propertiesFile)
propertiesFile - the properties filepublic static Locale resolveLocale(File propertiesFile)
propertiesFile - the properties filepublic static Locale resolveLocale(String localeCode)
Locale object from the given properties file.localeCode - the locale codeLocale object.public static Map<File,Locale> resolveLocales(String bundlepackage, String bundlename)
bundlepackage - The package that contains the properties files.bundlename - The name of the resource bundle.Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.