|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for Gettext\GettextTranslator:
Collaboration diagram for Gettext\GettextTranslator:Public Member Functions | |
| __construct ($language=null) | |
| Constructor. More... | |
| setLanguage ($language, $category=null) | |
| Define the current locale. More... | |
| loadDomain ($domain, $path=null, $default=true) | |
| Loads a gettext domain. More... | |
| gettext ($original) | |
| ngettext ($original, $plural, $value) | |
| dngettext ($domain, $original, $plural, $value) | |
| npgettext ($context, $original, $plural, $value) | |
| pgettext ($context, $original) | |
| dgettext ($domain, $original) | |
| dpgettext ($domain, $context, $original) | |
| dnpgettext ($domain, $context, $original, $plural, $value) | |
Public Member Functions inherited from Gettext\BaseTranslator | |
| register () | |
| 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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gettext\BaseTranslator | |
| static | initGettextFunctions (TranslatorInterface $translator) |
| Set a translation instance as global, to use it with the gettext functions. More... | |
Static Public Attributes inherited from Gettext\BaseTranslator | |
| static | $current |
Definition at line 5 of file GettextTranslator.php.
| Gettext\GettextTranslator::__construct | ( | $language = null | ) |
Constructor.
Detects the current language using the environment variables.
| string | $language |
Definition at line 12 of file GettextTranslator.php.
References $language.
| Gettext\GettextTranslator::dgettext | ( | $domain, | |
| $original | |||
| ) |
{Gets a translation checking the domain.
| string | $domain | |
| string | $original |
Implements Gettext\TranslatorInterface.
Definition at line 131 of file GettextTranslator.php.
References $domain.
| Gettext\GettextTranslator::dngettext | ( | $domain, | |
| $original, | |||
| $plural, | |||
| $value | |||
| ) |
{Gets a translation checking the domain and the plural form.
| string | $domain | |
| string | $original | |
| string | $plural | |
| string | $value |
Implements Gettext\TranslatorInterface.
Definition at line 95 of file GettextTranslator.php.
References $domain.
| Gettext\GettextTranslator::dnpgettext | ( | $domain, | |
| $context, | |||
| $original, | |||
| $plural, | |||
| $value | |||
| ) |
{Gets a translation checking the domain, the context and the plural form.
| string | $domain | |
| string | $context | |
| string | $original | |
| string | $plural | |
| string | $value |
Implements Gettext\TranslatorInterface.
Definition at line 154 of file GettextTranslator.php.
| Gettext\GettextTranslator::dpgettext | ( | $domain, | |
| $context, | |||
| $original | |||
| ) |
{Gets a translation checking the domain and context.
| string | $domain | |
| string | $context | |
| string | $original |
Implements Gettext\TranslatorInterface.
Definition at line 141 of file GettextTranslator.php.
| Gettext\GettextTranslator::gettext | ( | $original | ) |
{Gets a translation using the original string.
| string | $original |
Implements Gettext\TranslatorInterface.
Definition at line 75 of file GettextTranslator.php.
| Gettext\GettextTranslator::loadDomain | ( | $domain, | |
$path = null, |
|||
$default = true |
|||
| ) |
Loads a gettext domain.
| string | $domain | |
| string | $path | |
| bool | $default |
Definition at line 58 of file GettextTranslator.php.
| Gettext\GettextTranslator::ngettext | ( | $original, | |
| $plural, | |||
| $value | |||
| ) |
{Gets a translation checking the plural form.
| string | $original | |
| string | $plural | |
| string | $value |
Implements Gettext\TranslatorInterface.
Definition at line 85 of file GettextTranslator.php.
| Gettext\GettextTranslator::npgettext | ( | $context, | |
| $original, | |||
| $plural, | |||
| $value | |||
| ) |
{Gets a translation checking the context and the plural form.
| string | $context | |
| string | $original | |
| string | $plural | |
| string | $value |
Implements Gettext\TranslatorInterface.
Definition at line 105 of file GettextTranslator.php.
| Gettext\GettextTranslator::pgettext | ( | $context, | |
| $original | |||
| ) |
{Gets a translation checking the context.
| string | $context | |
| string | $original |
Implements Gettext\TranslatorInterface.
Definition at line 118 of file GettextTranslator.php.
| Gettext\GettextTranslator::setLanguage | ( | $language, | |
$category = null |
|||
| ) |
Define the current locale.
| string | $language | |
| int | null | $category |
Definition at line 37 of file GettextTranslator.php.
References $language.