Function __global->lang_string_translation
Definitions
sources/lang2.php
- API to do language string translation programatically.This function is intended for programmers, writing upgrade scripts for a custom site (dev>staging>live).
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$lang_from | LANGUAGE_NAME | required parameter | N/A | N/A | From language |
$lang_to | LANGUAGE_NAME | required parameter | N/A | N/A | To language |
$lang_string_changes | array | required parameter | N/A | N/A | A mapping of language file to a mapping of strings to change (from => to); if 'to' is null it should be the same as 'from' |
$test_run | boolean | False | N/A | N/A | Whether this is only a test run, don't change anything |
$allow_multiple_matches | boolean | False | N/A | N/A | Allow multiple matches of source strings (false if we'll require exactly one match) |
Return
- A List of error message strings, problems that happened
- Type: array
- Set: N/A
- Range: N/A