Class TranslationProvider


  • public class TranslationProvider
    extends Object
    • Field Detail

      • application

        protected String application
    • Constructor Detail

      • TranslationProvider

        public TranslationProvider()
    • Method Detail

      • initialize

        public void initialize​(javax.servlet.ServletContext ctx)
      • setTheme

        public void setTheme​(String theme)
      • preprocessForFormating

        public static String preprocessForFormating​(String inputText)
        This method should prepare the inputText for MessageFormat.format method. At the moment it is replacing single apostrophe with double, it might be extented in the future with some additional preprocessing.
        Parameters:
        inputText - - string which should be preprocessed
        Returns:
        preprocessed input string, i.e. string with replaced single apostrophe with double
      • clearCache

        public void clearCache()