Provides multilingual support.
| Qvc_lang::clear_cache |
( |
| ) |
|
Clear the translation cache
Initialization - Should be called by a post-constructor hook.
| Qvc_lang::set_lang |
( |
|
$lang | ) |
|
Set the current user-interface language.
- Parameters
-
| string | $lang | Two-letter language code |
| Qvc_lang::tt |
( |
|
$label, |
|
|
|
$args = array() |
|
) |
| |
Translate text, given a label and a list of substitutions
- Parameters
-
- Returns
- string
| Qvc_lang::tt_set |
( |
|
$arg1, |
|
|
|
$arg2 = null |
|
) |
| |
Set translation text for a given label or set of labels.
- Parameters
-
| string | array | $arg1 | Label or array of label => string |
| string | $arg2 | Translation string |
Translate a string directly NOTE this function is probably going to be deprecated because it is based on the old translation model. Accepts a variable argument list. The first arg is the label; the remaining args are substitutions.
- Parameters
-
| string | $en | The input string |
The documentation for this class was generated from the following file:
- qvci/libraries/Qvc_lang.php