[gnome-schedule] Support plural forms



commit a6bd844a280cf4ad089c3049cc12a3df684a8533
Author: Adrian ZgorzaÅek <a zgorzalek gmail com>
Date:   Mon Oct 31 15:54:00 2011 +0100

    Support plural forms
    
    https://bugzilla.gnome.org/show_bug.cgi?id=658740

 src/gnome-schedule-export.py |    4 +++-
 src/gnome-schedule-import.py |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-schedule-export.py b/src/gnome-schedule-export.py
index 090de57..504115a 100755
--- a/src/gnome-schedule-export.py
+++ b/src/gnome-schedule-export.py
@@ -110,5 +110,7 @@ pickle.dump(d, of, -1)
 of.flush ()
 of.close ()
 
-sys.stderr.write (_("Finished, exported: %d tasks total" % (atc + crontabc)) + "\n")
+sys.stderr.write(gettext.ngettext("Finished, exported: %d task total.",
+                                  "Finished, exported: %d tasks total.",
+                                  atc + crontabc) % (atc + crontabc) + "\n")
 
diff --git a/src/gnome-schedule-import.py b/src/gnome-schedule-import.py
index aa22703..161d17c 100755
--- a/src/gnome-schedule-import.py
+++ b/src/gnome-schedule-import.py
@@ -108,5 +108,7 @@ for task in d.at:
   a.append (task[2] + " " + task[1], task[4], task[0], task[5])
   atc = atc + 1
 
-sys.stderr.write (_("Finished, imported: %d tasks total." % (atc + crontabc)) + "\n")
+sys.stderr.write (gettext.ngettext("Finished, imported: %d task total.",
+                                   "Finished, imported: %d tasks total.",
+                                   atc + crontabc) % (atc + crontabc) + "\n")
 



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