ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
15
public
static
function
initGettextFunctions
(
TranslatorInterface
$translator
)
16
{
17
self::$current
=
$translator
;
18
19
include_once __DIR__.
'/translator_functions.php'
;
20
}
21
25
public
function
register
()
26
{
27
self::initGettextFunctions($this);
28
}
29
}
php
An exception for terminatinating execution or to throw for unit testing.
Gettext\BaseTranslator
Definition:
BaseTranslator.php:6
Gettext\BaseTranslator\$current
static $current
Definition:
BaseTranslator.php:8
Gettext\BaseTranslator\initGettextFunctions
static initGettextFunctions(TranslatorInterface $translator)
Set a translation instance as global, to use it with the gettext functions.
Definition:
BaseTranslator.php:15
$translator
$translator
Definition:
consentAdmin.php:208
$current
$current
Definition:
frontpage_config.php:67
Gettext\TranslatorInterface
Interface used by all translators.
Definition:
TranslatorInterface.php:9
Gettext
Definition:
BaseTranslator.php:3
libs
composer
vendor
gettext
gettext
src
BaseTranslator.php
Generated on Tue Sep 30 2025 19:00:53 for ILIAS by
1.9.4 (using
Doxyfile
)