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
}
Gettext\TranslatorInterface
Interface used by all translators.
Definition:
TranslatorInterface.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
Gettext\BaseTranslator
Definition:
BaseTranslator.php:5
$translator
$translator
Definition:
consentAdmin.php:208
Gettext
Definition:
BaseTranslator.php:3
Gettext\BaseTranslator\$current
static $current
Definition:
BaseTranslator.php:8
$current
$current
Definition:
frontpage_config.php:67
libs
composer
vendor
gettext
gettext
src
BaseTranslator.php
Generated on Sat Jan 18 2025 19:01:04 for ILIAS by
1.8.13 (using
Doxyfile
)