public interface TranslationServices
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
listTranslations(String category)
get a list of translation codes by category
|
String |
toStr(Date value)
localization for converting a date to language specific representation
|
String |
toStr(float value)
localization for converting a decimal to language specific representation
|
String |
translate(String context,
String value)
equivalent to the general translation operation, but the context that provides the transations specifies the target language
|
String |
translate(String context,
String value,
String targetLang)
General translation functionality - given a string, translate it to a different language
|
String |
translateAndFormat(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.
|
Map<String,String> |
translations(String value)
Get a list of all translations available for a phrase
|
String translate(String context, String value, String targetLang)
context - - for debugging purposesvalue - - the string to translatetargetLang - - the target language to translate to.String translateAndFormat(String contest, String lang, String string2, Object... args)
contest - lang - string2 - args - String translate(String context, String value)
context - value - Map<String,String> translations(String value)
value - String toStr(float value)
value - String toStr(Date value)
value - Set<String> listTranslations(String category)
category - Copyright © 2014–2018 University Health Network. All rights reserved.