Definition at line 7 of file Jed.php.
◆ buildArray()
static Gettext\Generators\Jed::buildArray |
( |
Translations |
$translations | ) |
|
|
staticprotected |
{}.
Definition at line 22 of file Jed.php.
References $key, and array.
26 $context_glue =
"\004";
28 foreach ($translations as $translation) {
29 $key = ($translation->hasContext() ? $translation->getContext().$context_glue :
'').$translation->getOriginal();
31 if ($translation->hasPluralTranslation()) {
32 $array[
$key] = array_merge(
array($translation->getTranslation()), $translation->getPluralTranslation());
34 $array[
$key] =
array($translation->getTranslation());
Create styles array
The data for the language used.
◆ toString()
static Gettext\Generators\Jed::toString |
( |
Translations |
$translations | ) |
|
|
static |
The documentation for this class was generated from the following file:
- libs/composer/vendor/gettext/gettext/src/Generators/Jed.php