Package com.jalios.jcms.i18n
Class I18nConstants
java.lang.Object
com.jalios.jcms.i18n.I18nConstants
- Direct Known Subclasses:
I18nUtil
Constants used in JCMS internationalization.
- Since:
- jcms-8.0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRegular expression suitable to match valid language properties filename.static final ResourceBundle.ControlResourceBundle.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 Summary
Constructors -
Method Summary
-
Field Details
-
LANGUAGE_PROPERTIES_FILENAME_REGEX
Regular expression suitable to match valid language properties filename.Example of use :
File[] langPropFiles = langDir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { return name.matches(I18nConstants.LANGUAGE_PROPERTIES_FILENAME_REGEX); } });- Since:
- jcms-8.0.1
- See Also:
-
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.ResourceBundle bundle = ResourceBundle.getBundle("Messages", locale, I18nConstants.PROPERTIES_ONLY_NO_FALLBACK_CONTROL);- Since:
- jcms-8.0.1
- See Also:
-
-
Constructor Details
-
I18nConstants
public I18nConstants()
-