Merge lp:~unity-team/unity/trash-i18n-fixes into lp:unity

Proposed by Mikkel Kamstrup Erlandsen
Status: Merged
Approved by: Gord Allott
Approved revision: no longer in the source branch.
Merged at revision: 536
Proposed branch: lp:~unity-team/unity/trash-i18n-fixes
Merge into: lp:unity
Diff against target: 21 lines (+2/-2)
1 file modified
unity-private/places/places-trash-controller.vala (+2/-2)
To merge this branch: bzr merge lp:~unity-team/unity/trash-i18n-fixes
Reviewer Review Type Date Requested Status
Gord Allott (community) Approve
Review via email: mp+36288@code.launchpad.net

Description of the change

Mark some strings for translation in the trash controller. There is still one ngettext() string that eludes me. See linked bug.

To post a comment you must log in.
Revision history for this message
Gord Allott (gordallott) wrote :

approved, but make sure you tell didrocks and the translators about it!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'unity-private/places/places-trash-controller.vala'
2--- unity-private/places/places-trash-controller.vala 2010-09-02 13:43:24 +0000
3+++ unity-private/places/places-trash-controller.vala 2010-09-22 12:21:52 +0000
4@@ -103,7 +103,7 @@
5 Dbusmenu.Menuitem item;
6
7 item = new Dbusmenu.Menuitem ();
8- item.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Open");
9+ item.property_set (Dbusmenu.MENUITEM_PROP_LABEL, _("Open"));
10 item.property_set_bool (Dbusmenu.MENUITEM_PROP_ENABLED, true);
11 item.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, true);
12 root.child_append (item);
13@@ -118,7 +118,7 @@
14 if (n_items != 0)
15 {
16 item = new Dbusmenu.Menuitem ();
17- item.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Empty Trash");
18+ item.property_set (Dbusmenu.MENUITEM_PROP_LABEL, _("Empty Trash"));
19 item.property_set_bool (Dbusmenu.MENUITEM_PROP_ENABLED, true);
20 item.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, true);
21 root.child_append (item);