[dconf-editor] Use ngettext when needed.



commit 43995c60c4375467c613fa6c20cbbc00cd5cf077
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Aug 3 01:34:59 2016 +0200

    Use ngettext when needed.

 editor/modifications-revealer.vala |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/editor/modifications-revealer.vala b/editor/modifications-revealer.vala
index 1b738b7..21c988a 100644
--- a/editor/modifications-revealer.vala
+++ b/editor/modifications-revealer.vala
@@ -262,10 +262,19 @@ class ModificationsRevealer : Revealer
         {
             if (gsettings == 0)
                 return _("Changes will be delayed until you request it.");
-            return _("%u gsettings operations awaiting.").printf (gsettings);
+            /* Translators: "gsettings" is a technical term, notably a shell command, so you probably should 
not translate it. */
+            return ngettext ("One gsettings operation delayed.", "%u gsettings operations delayed.", 
gsettings).printf (gsettings);
         }
         if (gsettings == 0)
-            return _("%u dconf operations awaiting.").printf (dconf);
-        return _("%u gsettings operations and %u dconf operations awaiting.").printf (gsettings, dconf);
+            /* Translators: "dconf" is a technical term, notably a shell command, so you probably should not 
translate it. */
+            return ngettext ("One dconf operation delayed.", "%u dconf operations delayed.", dconf).printf 
(dconf);
+            /* Translators: Beginning of a sentence like "One gsettings operation and 2 dconf operations 
delayed.", you could duplicate "delayed" if needed, as it refers to both the gsettings and dconf operations 
(at least one of each).
+                            Also, "gsettings" is a technical term, notably a shell command, so you probably 
should not translate it. */
+        return "%s%s".printf (ngettext ("One gsettings operation", "%u gsettings operations", 
gsettings).printf (gsettings),
+            /* Translators: Second part (and end) of a sentence like "One gsettings operation and 2 dconf 
operations delayed.", so:
+                             * the space before the "and" is probably wanted, and
+                             * the "delayed" refers to both the gsettings and dconf operations (at least one 
of each).
+                            Also, "dconf" is a technical term, notably a shell command, so you probably 
should not translate it. */
+                              ngettext (" and one dconf operation delayed.", " and %u dconf operations 
delayed.", dconf).printf (dconf));
     }
 }


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