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

Static Public Member Functions

static toFile (Translations $translations, $file)
 Saves the translations in a file. More...
 

Detailed Description

Definition at line 7 of file Generator.php.

Member Function Documentation

◆ toFile()

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

Saves the translations in a file.

Parameters
Translations$translations
string$file
Returns
bool

Definition at line 17 of file Generator.php.

References $file.

18  {
19  $content = static::toString($translations);
20 
21  if (file_put_contents($file, $content) === false) {
22  return false;
23  }
24 
25  return true;
26  }
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file

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