ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
Definition: getconsent.php:119
Interface used by all translators.