Merge lp:~yeganeh/unity/fix-for-869873 into lp:unity

Proposed by Zaid Yeganeh
Status: Merged
Approved by: Neil J. Patel
Approved revision: no longer in the source branch.
Merged at revision: 1753
Proposed branch: lp:~yeganeh/unity/fix-for-869873
Merge into: lp:unity
Diff against target: 35 lines (+5/-2)
2 files modified
plugins/unityshell/src/PanelMenuView.cpp (+4/-2)
po/POTFILES.in (+1/-0)
To merge this branch: bzr merge lp:~yeganeh/unity/fix-for-869873
Reviewer Review Type Date Requested Status
Neil J. Patel (community) Approve
Review via email: mp+78735@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Neil J. Patel (njpatel) wrote :

Hi, this isn't the right way to do this. We use g_dgettext with nautilus so we can "steal" the Desktop translation as we were in string freeze. You should replace that entire thing with _("Ubuntu Desktop"), so it can be translated fresh for the 12.04 cycle.

review: Needs Fixing
Revision history for this message
Zaid Yeganeh (yeganeh) wrote :

Thanks for the explanation - makes sense. Have made the update and tested it locally. I apparently need to send over an agreement doc for this and other changes I'm proposing, and hope to have that sent tomorrow sometime

Revision history for this message
Neil J. Patel (njpatel) wrote :

Excellent, approved.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/PanelMenuView.cpp'
2--- plugins/unityshell/src/PanelMenuView.cpp 2011-10-06 16:42:39 +0000
3+++ plugins/unityshell/src/PanelMenuView.cpp 2011-10-10 19:37:25 +0000
4@@ -38,6 +38,9 @@
5 #include <gio/gdesktopappinfo.h>
6 #include <gconf/gconf-client.h>
7
8+#include <glib.h>
9+#include <glib/gi18n-lib.h>
10+
11 #include "DashSettings.h"
12 #include "ubus-server.h"
13 #include "UBusMessages.h"
14@@ -661,8 +664,7 @@
15 if (BAMF_IS_WINDOW(window) &&
16 bamf_window_get_window_type(window) == BAMF_WINDOW_DESKTOP)
17 {
18- // Make the special
19- label = g_strdup(g_dgettext("nautilus", "Desktop"));
20+ label = g_strdup(_("Ubuntu Desktop"));
21 }
22 else if (!WindowManager::Default()->IsWindowOnCurrentDesktop(window_xid) ||
23 WindowManager::Default()->IsWindowObscured(window_xid))
24
25=== modified file 'po/POTFILES.in'
26--- po/POTFILES.in 2011-08-28 09:14:30 +0000
27+++ po/POTFILES.in 2011-10-10 19:37:25 +0000
28@@ -1,6 +1,7 @@
29 plugins/unityshell/src/BamfLauncherIcon.cpp
30 plugins/unityshell/src/DeviceLauncherIcon.cpp
31 plugins/unityshell/src/LauncherController.cpp
32+plugins/unityshell/src/PanelMenuView.cpp
33 plugins/unityshell/src/PlacesGroup.cpp
34 plugins/unityshell/src/PlacesHomeView.cpp
35 plugins/unityshell/src/SpacerLauncherIcon.cpp