Merge lp:~snwh/switchboard-plug-security-privacy/improved-strings into lp:~elementary-apps/switchboard-plug-security-privacy/trunk

Proposed by Sam Hewitt
Status: Merged
Approved by: Cody Garver
Approved revision: 75
Merged at revision: 84
Proposed branch: lp:~snwh/switchboard-plug-security-privacy/improved-strings
Merge into: lp:~elementary-apps/switchboard-plug-security-privacy/trunk
Diff against target: 39 lines (+6/-6)
1 file modified
src/TrackPanel.vala (+6/-6)
To merge this branch: bzr merge lp:~snwh/switchboard-plug-security-privacy/improved-strings
Reviewer Review Type Date Requested Status
Danielle Foré ux Approve
Cody Garver (community) Needs Fixing
Review via email: mp+232280@code.launchpad.net

Commit message

Updated a few strings to improve comprehension & inverted a switch.

Description of the change

To improve the comprehension of what the plug is doing, I've updated a few of the strings in the UI

1. Changed "Gather Statistics" to "Privacy Mode" –this will also need the switch to be inverted
2. Changed "Record:" to "Data Sources"
3. Changed "Do Not Record:" to "Do not collect data from the following."

To post a comment you must log in.
Revision history for this message
Danielle Foré (danrabbit) wrote :

Colons please :)

Also the Switch still needs work to completely invert the functionality. In this branch, your grid sensitivity is the opposite of what it should be and you've not changed what actually happens when the switch is on vs off. You've only set the default position of the switch :p

review: Needs Fixing
73. By Sam Hewitt

Updated code to match the switch change.

Revision history for this message
Sam Hewitt (snwh) wrote :

Fixed.

Revision history for this message
Cody Garver (codygarver) wrote :

Diff line 18 has a typo that causes compilation failure

Is there supposed to be a colon after Privacy Mode?

review: Needs Fixing
74. By Sam Hewitt

Fixed typo

75. By Sam Hewitt

Added missing colon.

Revision history for this message
Sam Hewitt (snwh) wrote :

Bloody hell, I must have made the error after I compiled myself.

Revision history for this message
Danielle Foré (danrabbit) wrote :

Okay, seems to build and sensitively is set properly and colons are good. I've no idea how to verify if the privacy mode is working correctly, but other stuff looks good to me :)

review: Approve (ux)
Revision history for this message
Sam Hewitt (snwh) wrote :

I did check it against the gsettings keys that it changes to enable/disable privacy features.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/TrackPanel.vala'
--- src/TrackPanel.vala 2014-08-02 22:41:18 +0000
+++ src/TrackPanel.vala 2014-08-31 16:19:38 +0000
@@ -59,13 +59,13 @@
59 margin_top = 0;59 margin_top = 0;
6060
61 var record_label = new Gtk.Label ("");61 var record_label = new Gtk.Label ("");
62 record_label.set_markup ("<b>%s</b>".printf (_("Gather statistics:")));62 record_label.set_markup ("<b>%s</b>".printf (_("Privacy Mode:")));
6363
64 var record_switch = new Gtk.Switch ();64 var record_switch = new Gtk.Switch ();
65 record_switch.active = true;65 record_switch.active = false;
66 record_switch.notify["active"].connect (() => {66 record_switch.notify["active"].connect (() => {
67 record_grid.sensitive = record_switch.active;67 record_grid.sensitive = !record_switch.active;
68 exclude_grid.sensitive = record_switch.active;68 exclude_grid.sensitive = !record_switch.active;
69 var recording = !blacklist.get_incognito ();69 var recording = !blacklist.get_incognito ();
70 if (record_switch.active != recording) {70 if (record_switch.active != recording) {
71 blacklist.set_incognito (recording);71 blacklist.set_incognito (recording);
@@ -287,7 +287,7 @@
287 scrolled.expand = true;287 scrolled.expand = true;
288 scrolled.add (view);288 scrolled.add (view);
289289
290 var record_label = new Gtk.Label (_("Record:"));290 var record_label = new Gtk.Label (_("Data Sources:"));
291 record_label.xalign = 0;291 record_label.xalign = 0;
292292
293 record_grid = new Gtk.Grid ();293 record_grid = new Gtk.Grid ();
@@ -401,7 +401,7 @@
401 frame_grid.add (scrolled);401 frame_grid.add (scrolled);
402 frame_grid.add (list_toolbar);402 frame_grid.add (list_toolbar);
403403
404 var record_label = new Gtk.Label (_("Do not record:"));404 var record_label = new Gtk.Label (_("Do not collect data from the following:"));
405 record_label.xalign = 0;405 record_label.xalign = 0;
406406
407 exclude_grid = new Gtk.Grid ();407 exclude_grid = new Gtk.Grid ();

Subscribers

People subscribed via source and target branches

to all changes: