projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1988a02
)
Add ngettext().
author
Jan Schneider
<jan@horde.org>
Tue, 12 Oct 2010 21:16:43 +0000
(23:16 +0200)
committer
Jan Schneider
<jan@horde.org>
Wed, 13 Oct 2010 00:34:40 +0000
(
02:34
+0200)
framework/Translation/lib/Horde/Translation.php
patch
|
blob
|
history
diff --git
a/framework/Translation/lib/Horde/Translation.php
b/framework/Translation/lib/Horde/Translation.php
index
ce76538
..
257e9bc
100644
(file)
--- 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);
}