ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Gettext\BaseTranslator Class Reference
+ Inheritance diagram for Gettext\BaseTranslator:
+ Collaboration diagram for Gettext\BaseTranslator:

Public Member Functions

 register ()
 
- Public Member Functions inherited from Gettext\TranslatorInterface
 register ()
 Register this translator as global, to use with the gettext functions __(), p__(), etc. More...
 
 gettext ($original)
 Gets a translation using the original string. More...
 
 ngettext ($original, $plural, $value)
 Gets a translation checking the plural form. More...
 
 dngettext ($domain, $original, $plural, $value)
 Gets a translation checking the domain and the plural form. More...
 
 npgettext ($context, $original, $plural, $value)
 Gets a translation checking the context and the plural form. More...
 
 pgettext ($context, $original)
 Gets a translation checking the context. More...
 
 dgettext ($domain, $original)
 Gets a translation checking the domain. More...
 
 dpgettext ($domain, $context, $original)
 Gets a translation checking the domain and context. More...
 
 dnpgettext ($domain, $context, $original, $plural, $value)
 Gets a translation checking the domain, the context and the plural form. More...
 

Static Public Member Functions

static initGettextFunctions (TranslatorInterface $translator)
 Set a translation instance as global, to use it with the gettext functions. More...
 

Static Public Attributes

static $current
 

Detailed Description

Definition at line 5 of file BaseTranslator.php.

Member Function Documentation

◆ initGettextFunctions()

static Gettext\BaseTranslator::initGettextFunctions ( TranslatorInterface  $translator)
static

Set a translation instance as global, to use it with the gettext functions.

Parameters
TranslatorInterface$translator

Definition at line 15 of file BaseTranslator.php.

16 {
18
19 include_once __DIR__.'/translator_functions.php';
20 }
$translator

References $current, and $translator.

◆ register()

Gettext\BaseTranslator::register ( )
See also
TranslatorInterface

Implements Gettext\TranslatorInterface.

Definition at line 25 of file BaseTranslator.php.

26 {
28 }
static initGettextFunctions(TranslatorInterface $translator)
Set a translation instance as global, to use it with the gettext functions.

Field Documentation

◆ $current

Gettext\BaseTranslator::$current
static

The documentation for this class was generated from the following file: