ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
BaseTranslator.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Gettext;
4 
5 abstract class BaseTranslator implements TranslatorInterface
6 {
8  public static $current;
9 
16  {
18 
19  include_once __DIR__.'/translator_functions.php';
20  }
21 
25  public function register()
26  {
27  self::initGettextFunctions($this);
28  }
29 }
Interface used by all translators.
static initGettextFunctions(TranslatorInterface $translator)
Set a translation instance as global, to use it with the gettext functions.
$translator