summaryrefslogtreecommitdiff
path: root/unity-private
diff options
authorGord Allott <gord.allott@canonical.com>2010-09-02 14:43:24 +0100
committerGord Allott <gord.allott@canonical.com>2010-09-02 14:43:24 +0100
commitfbbd3295a6d5d1a9d73191b366edacc88744faa4 (patch)
treefac17c1e2318b201eb851070edf377f6a539e570 /unity-private
parenta8eb6d3abad5ac89f44d4883e1b754961f2f5007 (diff)
fixes a gettext translation to support non plural translations
(bzr r478)
Diffstat (limited to 'unity-private')
-rw-r--r--unity-private/places/places-trash-controller.vala12
1 files changed, 6 insertions, 6 deletions
diff --git a/unity-private/places/places-trash-controller.vala b/unity-private/places/places-trash-controller.vala
index 690ad8ef7..2ab4bd340 100644
--- a/unity-private/places/places-trash-controller.vala
+++ b/unity-private/places/places-trash-controller.vala
@@ -16,9 +16,9 @@
* Authored by Neil Jagdish Patel <neil.patel@canonical.com>
*
*/
-
+
using Unity.Launcher;
-
+
namespace Unity.Places
{
public class TrashController : ScrollerChildController
@@ -47,7 +47,7 @@ namespace Unity.Places
child.group_type = ScrollerChild.GroupType.SYSTEM;
}
-
+
public override void activate ()
{
try {
@@ -83,7 +83,7 @@ namespace Unity.Places
{
Dbusmenu.Menuitem item;
/* i18n: This is the number of items in the Trash folder */
- string label = _("%d items");
+ string label = ngettext("%d item", "%d items", n_items);
item = new Dbusmenu.Menuitem ();
item.property_set (Dbusmenu.MENUITEM_PROP_LABEL, label.printf (n_items));
@@ -91,7 +91,7 @@ namespace Unity.Places
item.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, true);
root.child_append (item);
}
-
+
callback (root);
}
@@ -143,7 +143,7 @@ namespace Unity.Places
dialog.destroy ();
});
-
+
dialog.show ();
return false;