$_domain
$_domain : string
The translation domain, e.g. the library name, for the default gettext handler.
The Horde_Translation_Autodetect auto detects the locale directory location for the class implementing it.
setHandler(string $domain, \Horde_Translation_Handler $handler)
Assigns a translation handler object to $_handlers.
Type hinting isn't used on purpose. You should extend a custom translation handler passed here from the Horde_Translation interface, but technically it's sufficient if you provide the API of that interface.
string | $domain | The translation domain. |
\Horde_Translation_Handler | $handler | An object implementing the Horde_Translation_Handler interface. |
ngettext(string $singular, string $plural, integer $number) : string
Returns the plural translation of a message.
string | $singular | The singular version to translate. |
string | $plural | The plural version to translate. |
integer | $number | The number that determines singular vs. plural. |
The string translation, or the original string if no translation exists.