Merge lp:~dobey/unity-scope-click/fix-1234211 into lp:unity-scope-click/devel

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 247
Merged at revision: 248
Proposed branch: lp:~dobey/unity-scope-click/fix-1234211
Merge into: lp:unity-scope-click/devel
Diff against target: 126 lines (+24/-24)
2 files modified
po/unity-scope-click.pot (+15/-20)
scope/click/preview.cpp (+9/-4)
To merge this branch: bzr merge lp:~dobey/unity-scope-click/fix-1234211
Reviewer Review Type Date Requested Status
Alejandro J. Cura (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+219060@code.launchpad.net

Commit message

Improve the text in the uninstall confirmation dialog per latest design.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alejandro J. Cura (alecu) wrote :

Looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'po/unity-scope-click.pot'
2--- po/unity-scope-click.pot 2014-05-06 21:52:48 +0000
3+++ po/unity-scope-click.pot 2014-05-09 19:36:21 +0000
4@@ -8,7 +8,7 @@
5 msgstr ""
6 "Project-Id-Version: PACKAGE VERSION\n"
7 "Report-Msgid-Bugs-To: \n"
8-"POT-Creation-Date: 2014-05-06 17:50-0400\n"
9+"POT-Creation-Date: 2014-05-09 15:06-0400\n"
10 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
13@@ -25,59 +25,54 @@
14 msgid "Scope for searching the click app store"
15 msgstr ""
16
17-#: ../scope/click/preview.cpp:270
18+#: ../scope/click/preview.cpp:272
19 msgid "Download Error"
20 msgstr ""
21
22-#: ../scope/click/preview.cpp:271
23+#: ../scope/click/preview.cpp:273
24 msgid "Download or install failed. Please try again."
25 msgstr ""
26
27 #. TODO see bug LP: #1289434
28-#: ../scope/click/preview.cpp:273
29+#: ../scope/click/preview.cpp:275
30 msgid "Close"
31 msgstr ""
32
33-#: ../scope/click/preview.cpp:278
34+#: ../scope/click/preview.cpp:280
35 msgid "Login Error"
36 msgstr ""
37
38-#: ../scope/click/preview.cpp:279
39+#: ../scope/click/preview.cpp:281
40 msgid "Please log in to your Ubuntu One account."
41 msgstr ""
42
43-#: ../scope/click/preview.cpp:281
44+#: ../scope/click/preview.cpp:283
45 msgid "Go to Accounts"
46 msgstr ""
47
48-#: ../scope/click/preview.cpp:505
49+#: ../scope/click/preview.cpp:506
50 msgid "Open"
51 msgstr ""
52
53-#: ../scope/click/preview.cpp:513
54+#: ../scope/click/preview.cpp:514 ../scope/click/preview.cpp:615
55 msgid "Uninstall"
56 msgstr ""
57
58-#: ../scope/click/preview.cpp:598
59+#: ../scope/click/preview.cpp:599
60 msgid "Confirmation"
61 msgstr ""
62
63-#: ../scope/click/preview.cpp:600
64-msgid ""
65-"Uninstalling this app will delete all the related information. Are you sure "
66-"you want to uninstall?"
67+#. TRANSLATORS: Do NOT translate ${title} here.
68+#: ../scope/click/preview.cpp:602
69+msgid "Uninstall ${title}?"
70 msgstr ""
71
72 #. TODO: see bug LP: #1289434
73-#: ../scope/click/preview.cpp:607
74-msgid "Not anymore"
75-msgstr ""
76-
77 #: ../scope/click/preview.cpp:611
78-msgid "Yes Uninstall"
79+msgid "Cancel"
80 msgstr ""
81
82-#: ../scope/click/preview.cpp:659
83+#: ../scope/click/preview.cpp:663
84 msgid "Install"
85 msgstr ""
86
87
88=== modified file 'scope/click/preview.cpp'
89--- scope/click/preview.cpp 2014-05-07 21:22:59 +0000
90+++ scope/click/preview.cpp 2014-05-09 19:36:21 +0000
91@@ -33,6 +33,8 @@
92 #include "qtbridge.h"
93 #include "download-manager.h"
94
95+#include <boost/algorithm/string/replace.hpp>
96+
97 #include <unity/UnityExceptions.h>
98 #include <unity/scopes/PreviewReply.h>
99 #include <unity/scopes/Variant.h>
100@@ -595,19 +597,22 @@
101
102 scopes::PreviewWidget header("hdr", "header");
103 header.add_attribute_value("title", scopes::Variant(_("Confirmation")));
104- header.add_attribute_value("subtitle",
105- scopes::Variant(_("Uninstalling this app will delete all the related information. Are you sure you want to uninstall?"))); // TODO: wording needs review. see bug LP: #1234211
106+ std::string title = result["title"].get_string();
107+ // TRANSLATORS: Do NOT translate ${title} here.
108+ std::string message = _("Uninstall ${title}?");
109+ boost::replace_first(message, "${title}", title);
110+ header.add_attribute_value("subtitle", scopes::Variant(message));
111 widgets.push_back(header);
112
113 scopes::PreviewWidget buttons("buttons", "actions");
114 scopes::VariantBuilder builder;
115 builder.add_tuple({
116 {"id", scopes::Variant(click::Preview::Actions::CLOSE_PREVIEW)}, // TODO: see bug LP: #1289434
117- {"label", scopes::Variant(_("Not anymore"))}
118+ {"label", scopes::Variant(_("Cancel"))}
119 });
120 builder.add_tuple({
121 {"id", scopes::Variant(click::Preview::Actions::CONFIRM_UNINSTALL)},
122- {"label", scopes::Variant(_("Yes Uninstall"))}
123+ {"label", scopes::Variant(_("Uninstall"))}
124 });
125 buttons.add_attribute_value("actions", builder.end());
126 widgets.push_back(buttons);

Subscribers

People subscribed via source and target branches

to all changes: