Handler
in
The Horde_Translation_Handler interface defines the interface for any classes providing translations.
Tags
Table of Contents
- ngettext() : string
- Returns the plural translation of a message.
- t() : string
- Returns the translation of a message.
Methods
ngettext()
Returns the plural translation of a message.
public
ngettext(string $singular, string $plural, int $number) : string
Parameters
- $singular : string
-
The singular version to translate.
- $plural : string
-
The plural version to translate.
- $number : int
-
The number that determines singular vs. plural.
Return values
string —The string translation, or the original string if no translation exists.
t()
Returns the translation of a message.
public
t(string $message) : string
Parameters
- $message : string
-
The string to translate.
Return values
string —The string translation, or the original string if no translation exists.