bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Use plural form in i18n.


From: Petr Písař
Subject: [PATCH] Use plural form in i18n.
Date: Wed, 27 Apr 2011 22:25:23 +0200

This allows translator to use different wording based on number of
bytes.

(I'm not sure if English prescribes "2 bytes allocation", however
it's usefull for other languages.)
---
 src/uudecode.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/uudecode.c b/src/uudecode.c
index 982e06b..a68b9c0 100644
--- a/src/uudecode.c
+++ b/src/uudecode.c
@@ -317,7 +317,10 @@ expand_tilde (char * buf)
     outname = (char *) malloc (sz);
     if (outname == NULL)
       {
-        error (0, 0, _("no memory for %d byte allocation"), (int)sz);
+        error (0, 0, 
+            ngettext ("no memory for %d byte allocation",
+                "no memory for %d bytes allocation", sz),
+            (int)sz);
         return NULL;
       }
   }
-- 
1.7.3.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]