$_domain
$_domain : string
The translation domain, e.g. the library name, for the default gettext handler.
Horde_Translation is the base class for any translation wrapper classes in libraries that want to utilize the Horde_Translation library for translations.
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.