ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Gettext\Generators\GeneratorInterface Interface Reference
+ Inheritance diagram for Gettext\Generators\GeneratorInterface:
+ Collaboration diagram for Gettext\Generators\GeneratorInterface:

Static Public Member Functions

static toFile (Translations $translations, $file)
 Saves the translations in a file. More...
 
static toString (Translations $translations)
 Generates a string with the translations ready to save in a file. More...
 

Detailed Description

Definition at line 7 of file GeneratorInterface.php.

Member Function Documentation

◆ toFile()

static Gettext\Generators\GeneratorInterface::toFile ( Translations  $translations,
  $file 
)
static

Saves the translations in a file.

Parameters
Translations$translations
string$file
Returns
bool

◆ toString()

static Gettext\Generators\GeneratorInterface::toString ( Translations  $translations)
static

Generates a string with the translations ready to save in a file.

Parameters
Translations$translations
Returns
string

Implemented in Gettext\Generators\JsonDictionary, Gettext\Generators\Mo, Gettext\Generators\YamlDictionary, Gettext\Generators\CsvDictionary, Gettext\Generators\Jed, Gettext\Generators\PhpArray, and Gettext\Generators\Po.


The documentation for this interface was generated from the following file: