Class TranslationSource

java.lang.Object
com.github.lgooddatepicker.zinternaltools.TranslationSource

public class TranslationSource extends 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.
  • Constructor Details

    • TranslationSource

      public TranslationSource()
  • Method Details

    • getTranslation

      public static String getTranslation(Locale locale, String key, 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.