Class TranslationSource


  • public class TranslationSource
    extends java.lang.Object
    TranslationSource, This class has static functions that are used to provide translations of text in the date pickers. This class accesses the "TranslationResources.properties" file to get its translations.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getTranslation​(java.util.Locale locale, java.lang.String key, java.lang.String defaultText)
      getTranslation, This returns a local language translation for the text that is represented by the specified key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TranslationSource

        public TranslationSource()
    • Method Detail

      • getTranslation

        public static java.lang.String getTranslation​(java.util.Locale locale,
                                                      java.lang.String key,
                                                      java.lang.String defaultText)
        getTranslation, This returns a local language translation for the text that is represented by the specified key. The supplied locale is used to indicate the desired language. If a translation cannot be found, then the default text will be returned instead.