Excerpt | ||
---|---|---|
| ||
translateTo(language, value) Will translate the value according to the application running and the language name supplied. |
...
Argument | Type | Description |
---|---|---|
language | String | The name short code of the language (to match what's in the translation tablesLanguage object). |
value | String | A string of characters to be translated |
arg0...N | String | A collection of strings which will replace the characters "{n}" in the final translations |
Examples
translateTo("Frenchfr_FR","Monday")
Returns the string "Lundi" where the application has a translation table which translates "Monday" to "Lundi" for the language "French (Fr_fr)" .
translate("Frenchfr_FR","Doctors","Fred", "Sally")
...