ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class to get gettext strings from json files. More...
Static Public Member Functions | ||||||||||
static | fromString ($string, Translations $translations=null, $file='') | |||||||||
{Parses a string and append the translations found in the Translations instance.
| ||||||||||
Static Public Member Functions inherited from Gettext\Extractors\PhpArray | ||||||||||
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 Public Member Functions inherited from Gettext\Extractors\Extractor | ||||||||||
static | fromFile ($file, Translations $translations=null) | |||||||||
Extract the translations from a file. 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\PhpArray | |
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... | |
|
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.
Definition at line 15 of file Jed.php.
References Gettext\Extractors\PhpArray\handleArray().
|
staticprotected |
Extract and insert a new translation.
Translations | $translations | |
string | $key | |
string | $message |
Definition at line 35 of file Jed.php.
References $key, $message, and Gettext\Translations\insert().