Merge lp:~voldyman/switchboard-plug-networking/missing-unknown into lp:~elementary-pantheon/switchboard-plug-networking/trunk

Proposed by Akshay Shekher
Status: Rejected
Rejected by: xapantu
Proposed branch: lp:~voldyman/switchboard-plug-networking/missing-unknown
Merge into: lp:~elementary-pantheon/switchboard-plug-networking/trunk
Diff against target: 36 lines (+4/-4)
1 file modified
src/Utils.vala (+4/-4)
To merge this branch: bzr merge lp:~voldyman/switchboard-plug-networking/missing-unknown
Reviewer Review Type Date Requested Status
Adam Bieńkowski (community) Abstain
Rico Tzschichholz Disapprove
Artem Anufrij Pending
Review via email: mp+270238@code.launchpad.net

Description of the change

made the missing "Unknown"'s translatable.

To post a comment you must log in.
Revision history for this message
Rico Tzschichholz (ricotz) :
review: Disapprove
Revision history for this message
Akshay Shekher (voldyman) wrote :

what do i need to fix?

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

Better fix all existing appearances of _(UNKNOWN) which is awfully wrong

Revision history for this message
Adam Bieńkowski (donadigo) wrote :

Okay, i think I will take care of that and totally remove the constant because it's sensless.

review: Abstain
Revision history for this message
xapantu (xapantu) wrote :

Thanks for pointing this out, I just pushed an equivalent fix.

Unmerged revisions

159. By Akshay Shekher

translate missing 'Unknown'

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Utils.vala'
2--- src/Utils.vala 2015-08-06 13:07:20 +0000
3+++ src/Utils.vala 2015-09-05 09:00:38 +0000
4@@ -29,7 +29,7 @@
5 public string state_to_string (NM.DeviceState state) {
6 switch (state) {
7 case NM.DeviceState.UNKNOWN:
8- return UNKNOWN;
9+ return _(UNKNOWN);
10 case NM.DeviceState.ACTIVATED:
11 return _("Connected");
12 case NM.DeviceState.DISCONNECTED:
13@@ -54,13 +54,13 @@
14 return _("Failed to connect");
15 }
16
17- return UNKNOWN;
18+ return _(UNKNOWN);
19 }
20
21 public string type_to_string (NM.DeviceType type) {
22 switch (type) {
23 case NM.DeviceType.UNKNOWN:
24- return UNKNOWN;
25+ return _(UNKNOWN);
26 case NM.DeviceType.ETHERNET:
27 return _("Ethernet");
28 case NM.DeviceType.WIFI:
29@@ -89,6 +89,6 @@
30 return _("Bridge master");
31 }
32
33- return UNKNOWN;
34+ return _(UNKNOWN);
35 }
36 }

Subscribers

People subscribed via source and target branches