From 19fe4db5b4c63cb2ae86f85d5988f1fd5115a04a Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 12 Oct 2010 23:16:43 +0200 Subject: [PATCH] Add ngettext(). --- framework/Translation/lib/Horde/Translation.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/framework/Translation/lib/Horde/Translation.php b/framework/Translation/lib/Horde/Translation.php index ce7653858..257e9bc0d 100644 --- a/framework/Translation/lib/Horde/Translation.php +++ b/framework/Translation/lib/Horde/Translation.php @@ -26,4 +26,16 @@ interface Horde_Translation * translation exists. */ public function t($message); + + /** + * Returns the plural translation of a message. + * + * @param string $singular The singular version to translate. + * @param string $plural The plural version to translate. + * @param integer $number The number that determines singular vs. plural. + * + * @return string The string translation, or the original string if no + * translation exists. + */ + public function ngettext($singular, $plural, $number); } -- 2.11.0