Definition at line 6 of file Po.php.
◆ getDescription()
static Gettext\Languages\Exporter\Po::getDescription |
( |
| ) |
|
|
static |
◆ toStringDo()
static Gettext\Languages\Exporter\Po::toStringDo |
( |
|
$languages | ) |
|
|
staticprotected |
- See also
- Exporter::toStringDo
Definition at line 11 of file Po.php.
References array.
13 if (count($languages) !== 1) {
14 throw new Exception(
'The '.get_called_class().
' exporter can only export one language');
16 $language = $languages[0];
18 $lines[] =
'"Language: '.$language->id.
'\n"';
19 $lines[] =
'"Plural-Forms: nplurals='.count($language->categories).
'; plural='.$language->formula.
'\n"';
22 return implode(
"\n", $lines);
Create styles array
The data for the language used.
The documentation for this class was generated from the following file:
- libs/composer/vendor/gettext/languages/src/Exporter/Po.php