Merge lp:~unity-api-team/indicator-network/add-cellular-data-switch-string into lp:indicator-network

Proposed by Antti Kaijanmäki
Status: Merged
Approved by: dobey
Approved revision: 585
Merged at revision: 581
Proposed branch: lp:~unity-api-team/indicator-network/add-cellular-data-switch-string
Merge into: lp:indicator-network
Diff against target: 239 lines (+99/-87)
3 files modified
po/indicator-network.pot (+91/-87)
src/indicator/factory.cpp (+6/-0)
src/indicator/factory.h (+2/-0)
To merge this branch: bzr merge lp:~unity-api-team/indicator-network/add-cellular-data-switch-string
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
dobey (community) Approve
Review via email: mp+293371@code.launchpad.net

Commit message

Add cellular data switch to the factory to introduce the translatable string.

Description of the change

Add string for cellular data switch as per spec:
https://wiki.ubuntu.com/Networking#A.2BIBw-Cellular.2BIB0_settings

This MP does not change functionality.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
583. By Antti Kaijanmäki

revert .pot update

Revision history for this message
dobey (dobey) wrote :

Approved, but would prefer to not have commented out code (at least not in this manner, #if 0 or /**/ with comment about why its disabled would be better.

Also think the pot update should remain, but I don't know what all this project does in that respect.

review: Approve
584. By Antti Kaijanmäki

revert the revert

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
585. By Antti Kaijanmäki

remove comments.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'po/indicator-network.pot'
2--- po/indicator-network.pot 2015-12-17 10:41:14 +0000
3+++ po/indicator-network.pot 2016-04-29 14:20:56 +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: 2015-12-17 10:40+0000\n"
9+"POT-Creation-Date: 2016-04-29 12:38+0300\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@@ -18,6 +18,86 @@
14 "Content-Transfer-Encoding: 8bit\n"
15 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
16
17+#: ../src/agent/SecretRequest.cpp:61
18+msgid "Connect to “%1”"
19+msgstr ""
20+
21+#: ../src/agent/SecretRequest.cpp:66
22+msgid "WPA"
23+msgstr ""
24+
25+#: ../src/agent/SecretRequest.cpp:68
26+msgid "WEP"
27+msgstr ""
28+
29+#: ../src/agent/SecretRequest.cpp:74
30+msgid "Connect"
31+msgstr ""
32+
33+#: ../src/agent/SecretRequest.cpp:75
34+msgid "Cancel"
35+msgstr ""
36+
37+#: ../src/indicator/menuitems/wifi-link-item.cpp:109
38+msgid "Other network…"
39+msgstr ""
40+
41+#: ../src/indicator/menuitems/wwan-link-item.cpp:90
42+msgid "No SIM"
43+msgstr ""
44+
45+#: ../src/indicator/menuitems/wwan-link-item.cpp:97
46+msgid "SIM Error"
47+msgstr ""
48+
49+#: ../src/indicator/menuitems/wwan-link-item.cpp:105
50+msgid "SIM Locked"
51+msgstr ""
52+
53+#: ../src/indicator/menuitems/wwan-link-item.cpp:118
54+msgid "Unregistered"
55+msgstr ""
56+
57+#: ../src/indicator/menuitems/wwan-link-item.cpp:123
58+msgid "Unknown"
59+msgstr ""
60+
61+#: ../src/indicator/menuitems/wwan-link-item.cpp:128
62+msgid "Denied"
63+msgstr ""
64+
65+#: ../src/indicator/menuitems/wwan-link-item.cpp:133
66+msgid "Searching"
67+msgstr ""
68+
69+#: ../src/indicator/menuitems/wwan-link-item.cpp:145
70+msgid "No Signal"
71+msgstr ""
72+
73+#: ../src/indicator/menuitems/wwan-link-item.cpp:157
74+#: ../src/indicator/menuitems/wwan-link-item.cpp:164
75+msgid "Offline"
76+msgstr ""
77+
78+#. TODO Move this into a new class
79+#: ../src/indicator/factory.cpp:187
80+msgid "Wi-Fi"
81+msgstr ""
82+
83+#. TODO Move this into a new class
84+#: ../src/indicator/factory.cpp:198
85+msgid "Flight Mode"
86+msgstr ""
87+
88+#: ../src/indicator/factory.cpp:208
89+msgid "Cellular data"
90+msgstr ""
91+
92+#. TODO Move this into a new class
93+#: ../src/indicator/factory.cpp:219
94+msgid "Hotspot"
95+msgstr ""
96+
97 #: ../src/indicator/sim-unlock-dialog.cpp:144
98 msgid "Sorry, incorrect %{1} PIN."
99 msgstr ""
100@@ -153,24 +233,16 @@
101 msgid "VPN Connection Failed"
102 msgstr ""
103
104-#: ../src/indicator/agent/SecretRequest.cpp:61
105-msgid "Connect to “%1”"
106-msgstr ""
107-
108-#: ../src/indicator/agent/SecretRequest.cpp:66
109-msgid "WPA"
110-msgstr ""
111-
112-#: ../src/indicator/agent/SecretRequest.cpp:68
113-msgid "WEP"
114-msgstr ""
115-
116-#: ../src/indicator/agent/SecretRequest.cpp:74
117-msgid "Connect"
118-msgstr ""
119-
120-#: ../src/indicator/agent/SecretRequest.cpp:75
121-msgid "Cancel"
122+#: ../src/indicator/sections/wwan-section.cpp:99
123+msgid "Cellular settings…"
124+msgstr ""
125+
126+#: ../src/indicator/sections/vpn-section.cpp:140
127+msgid "VPN settings…"
128+msgstr ""
129+
130+#: ../src/indicator/sections/wifi-section.cpp:65
131+msgid "Wi-Fi settings…"
132 msgstr ""
133
134 #. TRANSLATORS: this is the indicator title shown on the top header of the indicator area
135@@ -178,74 +250,6 @@
136 msgid "Network"
137 msgstr ""
138
139-#: ../src/indicator/menuitems/wwan-link-item.cpp:90
140-msgid "No SIM"
141-msgstr ""
142-
143-#: ../src/indicator/menuitems/wwan-link-item.cpp:97
144-msgid "SIM Error"
145-msgstr ""
146-
147-#: ../src/indicator/menuitems/wwan-link-item.cpp:105
148-msgid "SIM Locked"
149-msgstr ""
150-
151-#: ../src/indicator/menuitems/wwan-link-item.cpp:118
152-msgid "Unregistered"
153-msgstr ""
154-
155-#: ../src/indicator/menuitems/wwan-link-item.cpp:123
156-msgid "Unknown"
157-msgstr ""
158-
159-#: ../src/indicator/menuitems/wwan-link-item.cpp:128
160-msgid "Denied"
161-msgstr ""
162-
163-#: ../src/indicator/menuitems/wwan-link-item.cpp:133
164-msgid "Searching"
165-msgstr ""
166-
167-#: ../src/indicator/menuitems/wwan-link-item.cpp:145
168-msgid "No Signal"
169-msgstr ""
170-
171-#: ../src/indicator/menuitems/wwan-link-item.cpp:157
172-#: ../src/indicator/menuitems/wwan-link-item.cpp:164
173-msgid "Offline"
174-msgstr ""
175-
176-#: ../src/indicator/menuitems/wifi-link-item.cpp:109
177-msgid "Other network…"
178-msgstr ""
179-
180 #: ../src/indicator/nmofono/vpn/vpn-manager.cpp:81
181 msgid "VPN connection %1"
182 msgstr ""
183-
184-#. TODO Move this into a new class
185-#: ../src/indicator/factory.cpp:187
186-msgid "Wi-Fi"
187-msgstr ""
188-
189-#. TODO Move this into a new class
190-#: ../src/indicator/factory.cpp:198
191-msgid "Flight Mode"
192-msgstr ""
193-
194-#. TODO Move this into a new class
195-#: ../src/indicator/factory.cpp:209
196-msgid "Hotspot"
197-msgstr ""
198-
199-#: ../src/indicator/sections/wifi-section.cpp:65
200-msgid "Wi-Fi settings…"
201-msgstr ""
202-
203-#: ../src/indicator/sections/wwan-section.cpp:99
204-msgid "Cellular settings…"
205-msgstr ""
206-
207-#: ../src/indicator/sections/vpn-section.cpp:140
208-msgid "VPN settings…"
209-msgstr ""
210
211=== modified file 'src/indicator/factory.cpp'
212--- src/indicator/factory.cpp 2016-02-15 09:31:38 +0000
213+++ src/indicator/factory.cpp 2016-04-29 14:20:56 +0000
214@@ -203,6 +203,12 @@
215 return flightModeSwitch;
216 }
217
218+SwitchItem::UPtr Factory::newMobileDataSwitch()
219+{
220+ auto s = make_unique<SwitchItem>(_("Cellular data"), "mobiledata", "enabled");
221+ return s;
222+}
223+
224 SwitchItem::UPtr Factory::newHotspotSwitch()
225 {
226 // TODO Move this into a new class
227
228=== modified file 'src/indicator/factory.h'
229--- src/indicator/factory.h 2016-02-15 09:31:38 +0000
230+++ src/indicator/factory.h 2016-04-29 14:20:56 +0000
231@@ -68,6 +68,8 @@
232
233 virtual SwitchItem::UPtr newWifiSwitch();
234
235+ virtual SwitchItem::UPtr newMobileDataSwitch();
236+
237 virtual SwitchItem::UPtr newFlightModeSwitch();
238
239 virtual SwitchItem::UPtr newHotspotSwitch();

Subscribers

People subscribed via source and target branches