Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Will translate the value according to the application running and the current user's locale. Can additionally have extra parameters which will not be translated

Syntax

translate(value, arg1,.....argN)

ArgumentTypeDescription
valueStringA string of characters to be translated
arg1...NStringA collection of strings which will replace the characters "%s" in the final translations

Examples

translate("Monday")

...

Returns the string "Montag" where the current user has the locale Germany, with the language "German(DE_de)" and the application has a translation table which translates "Monday" to "Montag" for the language "German(DE_de)".


translate("Doctors","Fred", "Sally")


Returns the string "Docteurs Fred et Sally" where the current user has the locale France, with the language "French (FR_fr)", and the application has a translation table which translates "Doctors" to "Docteurs %s et %s" for the language "French(FR_fr)".

See Also

...