ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Gettext\TranslatorInterface Interface Reference

Interface used by all translators. More...

+ Inheritance diagram for Gettext\TranslatorInterface:
+ Collaboration diagram for Gettext\TranslatorInterface:

Public Member Functions

 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...
 

Detailed Description

Interface used by all translators.

Definition at line 8 of file TranslatorInterface.php.

Member Function Documentation

◆ dgettext()

Gettext\TranslatorInterface::dgettext (   $domain,
  $original 
)

Gets a translation checking the domain.

Parameters
string$domain
string$original
Returns
string

Implemented in Gettext\GettextTranslator, and Gettext\Translator.

◆ dngettext()

Gettext\TranslatorInterface::dngettext (   $domain,
  $original,
  $plural,
  $value 
)

Gets a translation checking the domain and the plural form.

Parameters
string$domain
string$original
string$plural
string$value
Returns
string

Implemented in Gettext\GettextTranslator, and Gettext\Translator.

◆ dnpgettext()

Gettext\TranslatorInterface::dnpgettext (   $domain,
  $context,
  $original,
  $plural,
  $value 
)

Gets a translation checking the domain, the context and the plural form.

Parameters
string$domain
string$context
string$original
string$plural
string$value

Implemented in Gettext\GettextTranslator, and Gettext\Translator.

◆ dpgettext()

Gettext\TranslatorInterface::dpgettext (   $domain,
  $context,
  $original 
)

Gets a translation checking the domain and context.

Parameters
string$domain
string$context
string$original
Returns
string

Implemented in Gettext\GettextTranslator, and Gettext\Translator.

◆ gettext()

Gettext\TranslatorInterface::gettext (   $original)

Gets a translation using the original string.

Parameters
string$original
Returns
string

Implemented in Gettext\GettextTranslator, and Gettext\Translator.

◆ ngettext()

Gettext\TranslatorInterface::ngettext (   $original,
  $plural,
  $value 
)

Gets a translation checking the plural form.

Parameters
string$original
string$plural
string$value
Returns
string

Implemented in Gettext\GettextTranslator, and Gettext\Translator.

◆ npgettext()

Gettext\TranslatorInterface::npgettext (   $context,
  $original,
  $plural,
  $value 
)

Gets a translation checking the context and the plural form.

Parameters
string$context
string$original
string$plural
string$value
Returns
string

Implemented in Gettext\GettextTranslator, and Gettext\Translator.

◆ pgettext()

Gettext\TranslatorInterface::pgettext (   $context,
  $original 
)

Gets a translation checking the context.

Parameters
string$context
string$original
Returns
string

Implemented in Gettext\GettextTranslator, and Gettext\Translator.

◆ register()

Gettext\TranslatorInterface::register ( )

Register this translator as global, to use with the gettext functions __(), p__(), etc.

Implemented in Gettext\BaseTranslator.


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