ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
BaseTranslator.php
Go to the documentation of this file.
1<?php
2
3namespace Gettext;
4
5abstract 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}
An exception for terminatinating execution or to throw for unit testing.
static initGettextFunctions(TranslatorInterface $translator)
Set a translation instance as global, to use it with the gettext functions.
$translator
Interface used by all translators.