...
Excerpt | ||
---|---|---|
| ||
translate(value) Will translate the value according to the application running and the current user's locale |
Function: translate()
Will translate the Use this function to translate a value according to the application running and the current user's locale. Can It can additionally have extra parameters which that will not be translated.
When the string is translated, any %s
in the translated string will be replaced with each of the extra parameters in order.
Syntax
translate(value, arg1arg0,.....argN)
Argument | Type | Description |
---|---|---|
value | String | A string of characters to be translated |
arg1arg0...N | String | A collection of strings which will replace the characters "%s{n}" in the final translations |
...
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 {0}s et {1}" for the language "French(FR_fr)".
Returns the string "Docteurs Sally et Fred" 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{1}s et {0}" for the language "French(FR_fr)".
...