eZ.Translator Class
Translator static object.
Item Index
Methods
- setPreferredLanguages static
- trans static
- trans static
Methods
setPreferredLanguages
(
static
-
languages
Sets the preferred languages to use to translate the strings.
Parameters:
-
languages
Arrayarray of language codes
trans
(
protected
static
-
String
-
Object
-
String
Translates the given key from the domain with the given parameters.
** /!\ Use the shortcut Y.eZ.trans
so that translation keys are
recognized and dumped by translation:update
.**
Parameters:
-
String
Objectkey message to be translated
-
Object
Objectparameters to be applied to the message
-
String
Objectdomain where the translation can be found
trans
(
static
-
String
-
Object
-
String
Shortcut to Y.eZ.Translator.trans
Parameters:
-
String
Objectkey message to be translated
-
Object
Objectparameters to be applied to the message
-
String
Objectdomain where the translation can be found