Translations
Table of Contents
- eval__() : string
- Return a translation stored in an ARK Event (or in global ARK translations if not found) using _()
Functions
eval__()
Return a translation stored in an ARK Event (or in global ARK translations if not found) using _()
eval__([string $text = '' ][, string $attr = '' ][, string $lang = '' ][, bool $eval = true ][, int $event_id = NULL ][, bool $return_wk = true ]) : string
Example 1
$translated_word = _(untranslated_word)
Example 2, translated_word_with_values are translated to "I have %s zigs and %s mektoubs."
$translated_word_with_values = _(untranslated_word_with_values, list(3, 2))
$translated_word_with_values will have as value: "I have 3 zigs and 2 mektoubs."
Parameters
- $text : string = ''
-
The id of the translation item
- $attr : string = ''
-
Optionnal parameters separated by |
- $lang : string = ''
-
Destination language
- $eval : bool = true
-
Evaluate the test as Bbcode or not
- $event_id : int = NULL
-
use this event id instead of current script event
- $return_wk : bool = true
-
Return or not the wk version