public abstract class I18nConstants
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LANGUAGE_PROPERTIES_FILENAME_REGEX
Regular expression suitable to match valid language properties filename.
|
static java.util.ResourceBundle.Control |
PROPERTIES_ONLY_NO_FALLBACK_CONTROL
ResourceBundle.Control instance ensuring that bundle search is performed
only in Properties file and that the system default locale is not
used during Bundle search as a fallback.
|
Constructor and Description |
---|
I18nConstants() |
public static final java.lang.String LANGUAGE_PROPERTIES_FILENAME_REGEX
Example of use :
File[] langPropFiles = langDir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { return name.matches(I18nConstants.LANGUAGE_PROPERTIES_FILENAME_REGEX); } });
public static final java.util.ResourceBundle.Control PROPERTIES_ONLY_NO_FALLBACK_CONTROL
ResourceBundle bundle = ResourceBundle.getBundle("Messages", locale, I18nConstants.PROPERTIES_ONLY_NO_FALLBACK_CONTROL);
ResourceBundle.getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.