system.util.modifyTranslation
Description
This function allows you to add or modify a global translation.
Syntax
system.util. modifyTranslation( term, translation [, locale] )
-
Parameters
String term - The key term to translate.
String translation - The translated value to store.
String locale - If specified, the locale code (such as "es") identifying the language of the translation. Otherwise, the currently set language is used. [optional]
-
Returns
nothing
-
Scope
Client
Code Examples
Code Snippet
# This code adds or updates a translation into French
# for the world Hello. Note the u in front "Allô!", which
# is needed for Python strings outside of the 7-bit ASCII
# range.
system.util.modifyTranslation(
"Hello"
, u
"Allô!"
,
"fr"
)