Class I18nConstants

java.lang.Object
com.jalios.jcms.i18n.I18nConstants
Direct Known Subclasses:
I18nUtil

public abstract class I18nConstants extends Object
Constants used in JCMS internationalization.
Since:
jcms-8.0.1
  • Field Details

    • LANGUAGE_PROPERTIES_FILENAME_REGEX

      public static final String 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

      public static final 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.
        ResourceBundle bundle = ResourceBundle.getBundle("Messages", locale, 
                                                         I18nConstants.PROPERTIES_ONLY_NO_FALLBACK_CONTROL);
       
      Since:
      jcms-8.0.1
      See Also:
  • Constructor Details

    • I18nConstants

      public I18nConstants()