API Docs for: 1.0.0
Show:

eZ.Translator Class

Translator static object.

Item Index

Methods

Methods

setPreferredLanguages

(
  • languages
)
static

Sets the preferred languages to use to translate the strings.

Parameters:

  • languages Array

    array of language codes

trans

(
  • String
  • Object
  • String
)
protected static

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 Object

    key message to be translated

  • Object Object

    parameters to be applied to the message

  • String Object

    domain where the translation can be found

trans

(
  • String
  • Object
  • String
)
static

Shortcut to Y.eZ.Translator.trans

Parameters:

  • String Object

    key message to be translated

  • Object Object

    parameters to be applied to the message

  • String Object

    domain where the translation can be found