ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 () | |
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.
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.
References $domain, and $message.
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.
References $domain, and $message.
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.
References $domain, and $path.
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.
References $message.
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.
References $message.
Gettext\GettextTranslator::setLanguage | ( | $language, | |
$category = null |
|||
) |
Define the current locale.
string | $language | |
int | null | $category |
Definition at line 37 of file GettextTranslator.php.
References defined.