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
Reimplemented from Gettext\Languages\Exporter\Exporter.
Definition at line 11 of file Po.php.
12 {
13 if (count($languages) !== 1) {
14 throw new Exception('The '.get_called_class().' exporter can only export one language');
15 }
16 $language = $languages[0];
17 $lines = array();
18 $lines[] = '"Language: '.$language->id.'\n"';
19 $lines[] = '"Plural-Forms: nplurals='.count($language->categories).'; plural='.$language->formula.'\n"';
20 $lines[] = '';
21
22 return implode("\n", $lines);
23 }
The documentation for this class was generated from the following file:
- libs/composer/vendor/gettext/languages/src/Exporter/Po.php