Package org.hl7.fhir.utilities
Interface TranslationServices
- All Known Implementing Classes:
TranslatorXml
public interface TranslationServices
-
Method Summary
Modifier and TypeMethodDescriptionlistTranslations(String category) get a list of translation codes by categorytoStr(float value) localization for converting a decimal to language specific representationlocalization for converting a date to language specific representationequivalent to the general translation operation, but the context that provides the transations specifies the target languageGeneral translation functionality - given a string, translate it to a different languagetranslateAndFormat(String contest, String lang, String string2, Object... args) General translation functionality - given a string, translate it to a different language, but also perform String.format on the outcome.translations(String value) Get a list of all translations available for a phrase
-
Method Details
-
translate
General translation functionality - given a string, translate it to a different language- Parameters:
context- - for debugging purposesvalue- - the string to translatetargetLang- - the target language to translate to.- Returns:
- the translated string, or value if no translation is found
-
translateAndFormat
General translation functionality - given a string, translate it to a different language, but also perform String.format on the outcome.- Parameters:
contest-lang-string2-args-- Returns:
-
translate
equivalent to the general translation operation, but the context that provides the transations specifies the target language- Parameters:
context-value-- Returns:
-
translations
Get a list of all translations available for a phrase- Parameters:
value-- Returns:
-
toStr
localization for converting a decimal to language specific representation- Parameters:
value-- Returns:
-
toStr
localization for converting a date to language specific representation- Parameters:
value-- Returns:
-
listTranslations
get a list of translation codes by category- Parameters:
category-- Returns:
-