Class TranslationSource
- java.lang.Object
-
- com.github.lgooddatepicker.zinternaltools.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.
-
-
Constructor Summary
Constructors Constructor Description TranslationSource()
-
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.
-
-
-
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.
-
-