Add ngettext().
authorJan Schneider <jan@horde.org>
Tue, 12 Oct 2010 21:16:43 +0000 (23:16 +0200)
committerJan Schneider <jan@horde.org>
Wed, 13 Oct 2010 00:34:40 +0000 (02:34 +0200)
framework/Translation/lib/Horde/Translation.php

index ce76538..257e9bc 100644 (file)
@@ -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);
 }