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
1=== modified file 'src/TrackPanel.vala'
2--- src/TrackPanel.vala 2014-08-02 22:41:18 +0000
3+++ src/TrackPanel.vala 2014-08-31 16:19:38 +0000
4@@ -59,13 +59,13 @@
5 margin_top = 0;
6
7 var record_label = new Gtk.Label ("");
8- record_label.set_markup ("<b>%s</b>".printf (_("Gather statistics:")));
9+ record_label.set_markup ("<b>%s</b>".printf (_("Privacy Mode:")));
10
11 var record_switch = new Gtk.Switch ();
12- record_switch.active = true;
13+ record_switch.active = false;
14 record_switch.notify["active"].connect (() => {
15- record_grid.sensitive = record_switch.active;
16- exclude_grid.sensitive = record_switch.active;
17+ record_grid.sensitive = !record_switch.active;
18+ exclude_grid.sensitive = !record_switch.active;
19 var recording = !blacklist.get_incognito ();
20 if (record_switch.active != recording) {
21 blacklist.set_incognito (recording);
22@@ -287,7 +287,7 @@
23 scrolled.expand = true;
24 scrolled.add (view);
25
26- var record_label = new Gtk.Label (_("Record:"));
27+ var record_label = new Gtk.Label (_("Data Sources:"));
28 record_label.xalign = 0;
29
30 record_grid = new Gtk.Grid ();
31@@ -401,7 +401,7 @@
32 frame_grid.add (scrolled);
33 frame_grid.add (list_toolbar);
34
35- var record_label = new Gtk.Label (_("Do not record:"));
36+ var record_label = new Gtk.Label (_("Do not collect data from the following:"));
37 record_label.xalign = 0;
38
39 exclude_grid = new Gtk.Grid ();

Subscribers

People subscribed via source and target branches

to all changes: