|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class to get gettext strings from php files returning arrays. More...
Inheritance diagram for Gettext\Extractors\PhpArray:
Collaboration diagram for Gettext\Extractors\PhpArray:Static Public Member Functions | ||||||||||
| static | fromFile ($file, Translations $translations=null) | |||||||||
| Extract the translations from a file. More... | ||||||||||
| static | fromString ($string, Translations $translations=null, $file='') | |||||||||
{Parses a string and append the translations found in the Translations instance.
| ||||||||||
| static | handleArray (array $content, Translations $translations) | |||||||||
| Handle an array of translations and append to the Translations instance. More... | ||||||||||
| static | fromFile ($file, Translations $translations=null) | |||||||||
| Extract the translations from a file. More... | ||||||||||
| static | fromFile ($file, Translations $translations=null) | |||||||||
| Extract the translations from a file. More... | ||||||||||
| static | fromString ($string, Translations $translations=null, $file='') | |||||||||
| Parses a string and append the translations found in the Translations instance. More... | ||||||||||
Static Protected Member Functions | |
| static | insertTranslation (Translations $translations, $key, $message) |
| Extract and insert a new translation. More... | |
Static Protected Member Functions inherited from Gettext\Extractors\Extractor | |
| static | getFiles ($file) |
| Checks and returns all files. More... | |
| static | readFile ($file) |
| Reads and returns the content of a file. More... | |
Class to get gettext strings from php files returning arrays.
Definition at line 11 of file PhpArray.php.
|
static |
Extract the translations from a file.
| array | string | $file | A path of a file or files |
| null | Translations | $translations | The translations instance to append the new translations. |
Reimplemented from Gettext\Extractors\Extractor.
Definition at line 21 of file PhpArray.php.
References Gettext\Extractors\PhpArray\handleArray().
Here is the call graph for this function:
|
static |
{Parses a string and append the translations found in the Translations instance.
| string | $string | |
| Translations | null | $translations | |
| string | $file | The file path to insert the reference |
Implements Gettext\Extractors\ExtractorInterface.
Reimplemented in Gettext\Extractors\Jed.
Definition at line 37 of file PhpArray.php.
|
static |
Handle an array of translations and append to the Translations instance.
| array | $content | |
| Translations | $translations |
Definition at line 48 of file PhpArray.php.
References $key, $message, and Gettext\Translations\setDomain().
Referenced by Gettext\Extractors\PhpArray\fromFile(), and Gettext\Extractors\Jed\fromString().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Extract and insert a new translation.
| Translations | $translations | |
| string | $key | |
| string | $message |
Reimplemented in Gettext\Extractors\Jed.
Definition at line 71 of file PhpArray.php.
References $context, $key, $message, and Gettext\Translations\insert().
Here is the call graph for this function: