Merge lp:~fabiozaramella/slingshot/add-logout-lock-actions into lp:~elementary-pantheon/slingshot/trunk
- add-logout-lock-actions
- Merge into trunk
Proposed by
Fabio Zaramella
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Danielle Foré | ||||||||
Approved revision: | 730 | ||||||||
Merged at revision: | 729 | ||||||||
Proposed branch: | lp:~fabiozaramella/slingshot/add-logout-lock-actions | ||||||||
Merge into: | lp:~elementary-pantheon/slingshot/trunk | ||||||||
Diff against target: |
557 lines (+198/-139) 2 files modified
lib/synapse-plugins/system-managment.vala (+90/-49) po/slingshot.pot (+108/-90) |
||||||||
To merge this branch: | bzr merge lp:~fabiozaramella/slingshot/add-logout-lock-actions | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Danielle Foré | Approve | ||
Review via email: mp+316022@code.launchpad.net |
Commit message
Add lock and logout actions
Description of the change
This branch adds logout and lock actions.
To post a comment you must log in.
Revision history for this message
Danielle Foré (danrabbit) wrote : | # |
Revision history for this message
Danielle Foré (danrabbit) wrote : | # |
I can confirm that both the lock and logout functions work as expected. Nice work :)
review:
Approve
- 730. By Fabio Zaramella
-
Use correct terminology
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'lib/synapse-plugins/system-managment.vala' | |||
2 | --- lib/synapse-plugins/system-managment.vala 2017-01-26 19:54:30 +0000 | |||
3 | +++ lib/synapse-plugins/system-managment.vala 2017-01-31 18:58:37 +0000 | |||
4 | @@ -45,6 +45,23 @@ | |||
5 | 45 | public abstract async bool can_stop () throws IOError; | 45 | public abstract async bool can_stop () throws IOError; |
6 | 46 | } | 46 | } |
7 | 47 | 47 | ||
8 | 48 | [DBus (name = "org.freedesktop.ScreenSaver")] | ||
9 | 49 | public interface LockObject : Object { | ||
10 | 50 | public const string UNIQUE_NAME = "org.freedesktop.ScreenSaver"; | ||
11 | 51 | public const string OBJECT_PATH = "/org/freedesktop/ScreenSaver"; | ||
12 | 52 | |||
13 | 53 | public abstract void lock () throws IOError; | ||
14 | 54 | public abstract bool get_active () throws IOError; | ||
15 | 55 | } | ||
16 | 56 | |||
17 | 57 | [DBus (name = "org.freedesktop.login1.User")] | ||
18 | 58 | interface LogOutObject : Object { | ||
19 | 59 | public const string UNIQUE_NAME = "org.freedesktop.login1"; | ||
20 | 60 | public const string OBJECT_PATH = "/org/freedesktop/login1/user/self"; | ||
21 | 61 | |||
22 | 62 | public abstract void terminate () throws IOError; | ||
23 | 63 | } | ||
24 | 64 | |||
25 | 48 | [DBus (name = "org.freedesktop.login1.Manager")] | 65 | [DBus (name = "org.freedesktop.login1.Manager")] |
26 | 49 | public interface SystemdObject : Object { | 66 | public interface SystemdObject : Object { |
27 | 50 | public const string UNIQUE_NAME = "org.freedesktop.login1"; | 67 | public const string UNIQUE_NAME = "org.freedesktop.login1"; |
28 | @@ -85,6 +102,60 @@ | |||
29 | 85 | } | 102 | } |
30 | 86 | } | 103 | } |
31 | 87 | 104 | ||
32 | 105 | private class LockAction : SystemAction { | ||
33 | 106 | public LockAction () { | ||
34 | 107 | Object (title: _("Lock"), match_type: MatchType.ACTION, | ||
35 | 108 | description: _("Lock this device"), | ||
36 | 109 | icon_name: "system-lock-screen", has_thumbnail: false); | ||
37 | 110 | } | ||
38 | 111 | |||
39 | 112 | public override bool action_allowed () { | ||
40 | 113 | return true; | ||
41 | 114 | } | ||
42 | 115 | |||
43 | 116 | private async void do_lock () { | ||
44 | 117 | try { | ||
45 | 118 | LockObject dbus_interface = Bus.get_proxy_sync (BusType.SESSION, LockObject.UNIQUE_NAME, LockObject.OBJECT_PATH); | ||
46 | 119 | |||
47 | 120 | dbus_interface.lock (); | ||
48 | 121 | return; | ||
49 | 122 | } catch (IOError err) { | ||
50 | 123 | warning ("%s", err.message); | ||
51 | 124 | } | ||
52 | 125 | } | ||
53 | 126 | |||
54 | 127 | public override void do_action () { | ||
55 | 128 | do_lock.begin (); | ||
56 | 129 | } | ||
57 | 130 | } | ||
58 | 131 | |||
59 | 132 | private class LogOutAction : SystemAction { | ||
60 | 133 | public LogOutAction () { | ||
61 | 134 | Object (title: _("Log Out"), match_type: MatchType.ACTION, | ||
62 | 135 | description: _("Close all open applications and quit"), | ||
63 | 136 | icon_name: "system-log-out", has_thumbnail: false); | ||
64 | 137 | } | ||
65 | 138 | |||
66 | 139 | public override bool action_allowed () { | ||
67 | 140 | return true; | ||
68 | 141 | } | ||
69 | 142 | |||
70 | 143 | private async void do_log_out () { | ||
71 | 144 | try { | ||
72 | 145 | LogOutObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, LogOutObject.UNIQUE_NAME, LogOutObject.OBJECT_PATH); | ||
73 | 146 | |||
74 | 147 | dbus_interface.terminate (); | ||
75 | 148 | return; | ||
76 | 149 | } catch (IOError err) { | ||
77 | 150 | warning ("%s", err.message); | ||
78 | 151 | } | ||
79 | 152 | } | ||
80 | 153 | |||
81 | 154 | public override void do_action () { | ||
82 | 155 | do_log_out.begin (); | ||
83 | 156 | } | ||
84 | 157 | } | ||
85 | 158 | |||
86 | 88 | private class SuspendAction : SystemAction { | 159 | private class SuspendAction : SystemAction { |
87 | 89 | public SuspendAction () { | 160 | public SuspendAction () { |
88 | 90 | Object (title: _("Suspend"), match_type: MatchType.ACTION, | 161 | Object (title: _("Suspend"), match_type: MatchType.ACTION, |
89 | @@ -98,9 +169,7 @@ | |||
90 | 98 | 169 | ||
91 | 99 | private async void check_allowed (){ | 170 | private async void check_allowed (){ |
92 | 100 | try { | 171 | try { |
96 | 101 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 172 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, SystemdObject.UNIQUE_NAME, SystemdObject.OBJECT_PATH); |
94 | 102 | SystemdObject.UNIQUE_NAME, | ||
95 | 103 | SystemdObject.OBJECT_PATH); | ||
97 | 104 | 173 | ||
98 | 105 | allowed = (dbus_interface.can_suspend () == "yes"); | 174 | allowed = (dbus_interface.can_suspend () == "yes"); |
99 | 106 | return; | 175 | return; |
100 | @@ -110,9 +179,7 @@ | |||
101 | 110 | } | 179 | } |
102 | 111 | 180 | ||
103 | 112 | try { | 181 | try { |
107 | 113 | UPowerObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 182 | UPowerObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, UPowerObject.UNIQUE_NAME, UPowerObject.OBJECT_PATH); |
105 | 114 | UPowerObject.UNIQUE_NAME, | ||
106 | 115 | UPowerObject.OBJECT_PATH); | ||
108 | 116 | 183 | ||
109 | 117 | allowed = yield dbus_interface.suspend_allowed (); | 184 | allowed = yield dbus_interface.suspend_allowed (); |
110 | 118 | } catch (IOError err) { | 185 | } catch (IOError err) { |
111 | @@ -129,9 +196,7 @@ | |||
112 | 129 | 196 | ||
113 | 130 | private async void do_suspend () { | 197 | private async void do_suspend () { |
114 | 131 | try { | 198 | try { |
118 | 132 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 199 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, SystemdObject.UNIQUE_NAME, SystemdObject.OBJECT_PATH); |
116 | 133 | SystemdObject.UNIQUE_NAME, | ||
117 | 134 | SystemdObject.OBJECT_PATH); | ||
119 | 135 | 200 | ||
120 | 136 | dbus_interface.suspend (true); | 201 | dbus_interface.suspend (true); |
121 | 137 | return; | 202 | return; |
122 | @@ -140,9 +205,7 @@ | |||
123 | 140 | } | 205 | } |
124 | 141 | 206 | ||
125 | 142 | try { | 207 | try { |
129 | 143 | UPowerObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 208 | UPowerObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, UPowerObject.UNIQUE_NAME, UPowerObject.OBJECT_PATH); |
127 | 144 | UPowerObject.UNIQUE_NAME, | ||
128 | 145 | UPowerObject.OBJECT_PATH); | ||
130 | 146 | 209 | ||
131 | 147 | try { | 210 | try { |
132 | 148 | yield dbus_interface.about_to_sleep (); | 211 | yield dbus_interface.about_to_sleep (); |
133 | @@ -177,9 +240,7 @@ | |||
134 | 177 | 240 | ||
135 | 178 | private async void check_allowed () { | 241 | private async void check_allowed () { |
136 | 179 | try { | 242 | try { |
140 | 180 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 243 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, SystemdObject.UNIQUE_NAME, SystemdObject.OBJECT_PATH); |
138 | 181 | SystemdObject.UNIQUE_NAME, | ||
139 | 182 | SystemdObject.OBJECT_PATH); | ||
141 | 183 | 244 | ||
142 | 184 | allowed = (dbus_interface.can_hibernate () == "yes"); | 245 | allowed = (dbus_interface.can_hibernate () == "yes"); |
143 | 185 | return; | 246 | return; |
144 | @@ -189,9 +250,7 @@ | |||
145 | 189 | } | 250 | } |
146 | 190 | 251 | ||
147 | 191 | try { | 252 | try { |
151 | 192 | UPowerObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 253 | UPowerObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, UPowerObject.UNIQUE_NAME, UPowerObject.OBJECT_PATH); |
149 | 193 | UPowerObject.UNIQUE_NAME, | ||
150 | 194 | UPowerObject.OBJECT_PATH); | ||
152 | 195 | 254 | ||
153 | 196 | allowed = yield dbus_interface.hibernate_allowed (); | 255 | allowed = yield dbus_interface.hibernate_allowed (); |
154 | 197 | } catch (IOError err) { | 256 | } catch (IOError err) { |
155 | @@ -208,9 +267,7 @@ | |||
156 | 208 | 267 | ||
157 | 209 | private async void do_hibernate () { | 268 | private async void do_hibernate () { |
158 | 210 | try { | 269 | try { |
162 | 211 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 270 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, SystemdObject.UNIQUE_NAME, SystemdObject.OBJECT_PATH); |
160 | 212 | SystemdObject.UNIQUE_NAME, | ||
161 | 213 | SystemdObject.OBJECT_PATH); | ||
163 | 214 | 271 | ||
164 | 215 | dbus_interface.hibernate (true); | 272 | dbus_interface.hibernate (true); |
165 | 216 | return; | 273 | return; |
166 | @@ -219,9 +276,7 @@ | |||
167 | 219 | } | 276 | } |
168 | 220 | 277 | ||
169 | 221 | try { | 278 | try { |
173 | 222 | UPowerObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 279 | UPowerObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, UPowerObject.UNIQUE_NAME, UPowerObject.OBJECT_PATH); |
171 | 223 | UPowerObject.UNIQUE_NAME, | ||
172 | 224 | UPowerObject.OBJECT_PATH); | ||
174 | 225 | 280 | ||
175 | 226 | try { | 281 | try { |
176 | 227 | yield dbus_interface.about_to_sleep (); | 282 | yield dbus_interface.about_to_sleep (); |
177 | @@ -255,9 +310,7 @@ | |||
178 | 255 | 310 | ||
179 | 256 | private async void check_allowed () { | 311 | private async void check_allowed () { |
180 | 257 | try { | 312 | try { |
184 | 258 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 313 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, SystemdObject.UNIQUE_NAME, SystemdObject.OBJECT_PATH); |
182 | 259 | SystemdObject.UNIQUE_NAME, | ||
183 | 260 | SystemdObject.OBJECT_PATH); | ||
185 | 261 | 314 | ||
186 | 262 | allowed = (dbus_interface.can_power_off () == "yes"); | 315 | allowed = (dbus_interface.can_power_off () == "yes"); |
187 | 263 | return; | 316 | return; |
188 | @@ -267,9 +320,7 @@ | |||
189 | 267 | } | 320 | } |
190 | 268 | 321 | ||
191 | 269 | try { | 322 | try { |
195 | 270 | ConsoleKitObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 323 | ConsoleKitObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, ConsoleKitObject.UNIQUE_NAME, ConsoleKitObject.OBJECT_PATH); |
193 | 271 | ConsoleKitObject.UNIQUE_NAME, | ||
194 | 272 | ConsoleKitObject.OBJECT_PATH); | ||
196 | 273 | 324 | ||
197 | 274 | allowed = yield dbus_interface.can_stop (); | 325 | allowed = yield dbus_interface.can_stop (); |
198 | 275 | } catch (IOError err) { | 326 | } catch (IOError err) { |
199 | @@ -286,9 +337,7 @@ | |||
200 | 286 | 337 | ||
201 | 287 | public override void do_action () { | 338 | public override void do_action () { |
202 | 288 | try { | 339 | try { |
206 | 289 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 340 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, SystemdObject.UNIQUE_NAME, SystemdObject.OBJECT_PATH); |
204 | 290 | SystemdObject.UNIQUE_NAME, | ||
205 | 291 | SystemdObject.OBJECT_PATH); | ||
207 | 292 | 341 | ||
208 | 293 | dbus_interface.power_off (true); | 342 | dbus_interface.power_off (true); |
209 | 294 | return; | 343 | return; |
210 | @@ -297,9 +346,7 @@ | |||
211 | 297 | } | 346 | } |
212 | 298 | 347 | ||
213 | 299 | try { | 348 | try { |
217 | 300 | ConsoleKitObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 349 | ConsoleKitObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, ConsoleKitObject.UNIQUE_NAME, ConsoleKitObject.OBJECT_PATH); |
215 | 301 | ConsoleKitObject.UNIQUE_NAME, | ||
216 | 302 | ConsoleKitObject.OBJECT_PATH); | ||
218 | 303 | 350 | ||
219 | 304 | dbus_interface.stop (); | 351 | dbus_interface.stop (); |
220 | 305 | } catch (IOError err) { | 352 | } catch (IOError err) { |
221 | @@ -321,9 +368,7 @@ | |||
222 | 321 | 368 | ||
223 | 322 | private async void check_allowed () { | 369 | private async void check_allowed () { |
224 | 323 | try { | 370 | try { |
228 | 324 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 371 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, SystemdObject.UNIQUE_NAME, SystemdObject.OBJECT_PATH); |
226 | 325 | SystemdObject.UNIQUE_NAME, | ||
227 | 326 | SystemdObject.OBJECT_PATH); | ||
229 | 327 | 372 | ||
230 | 328 | allowed = (dbus_interface.can_reboot () == "yes"); | 373 | allowed = (dbus_interface.can_reboot () == "yes"); |
231 | 329 | return; | 374 | return; |
232 | @@ -333,9 +378,7 @@ | |||
233 | 333 | } | 378 | } |
234 | 334 | 379 | ||
235 | 335 | try { | 380 | try { |
239 | 336 | ConsoleKitObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 381 | ConsoleKitObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, ConsoleKitObject.UNIQUE_NAME, ConsoleKitObject.OBJECT_PATH); |
237 | 337 | ConsoleKitObject.UNIQUE_NAME, | ||
238 | 338 | ConsoleKitObject.OBJECT_PATH); | ||
240 | 339 | 382 | ||
241 | 340 | allowed = yield dbus_interface.can_restart (); | 383 | allowed = yield dbus_interface.can_restart (); |
242 | 341 | } catch (IOError err) { | 384 | } catch (IOError err) { |
243 | @@ -352,9 +395,7 @@ | |||
244 | 352 | 395 | ||
245 | 353 | public override void do_action () { | 396 | public override void do_action () { |
246 | 354 | try { | 397 | try { |
250 | 355 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 398 | SystemdObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, SystemdObject.UNIQUE_NAME, SystemdObject.OBJECT_PATH); |
248 | 356 | SystemdObject.UNIQUE_NAME, | ||
249 | 357 | SystemdObject.OBJECT_PATH); | ||
251 | 358 | 399 | ||
252 | 359 | dbus_interface.reboot (true); | 400 | dbus_interface.reboot (true); |
253 | 360 | return; | 401 | return; |
254 | @@ -363,9 +404,7 @@ | |||
255 | 363 | } | 404 | } |
256 | 364 | 405 | ||
257 | 365 | try { | 406 | try { |
261 | 366 | ConsoleKitObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, | 407 | ConsoleKitObject dbus_interface = Bus.get_proxy_sync (BusType.SYSTEM, ConsoleKitObject.UNIQUE_NAME, ConsoleKitObject.OBJECT_PATH); |
259 | 367 | ConsoleKitObject.UNIQUE_NAME, | ||
260 | 368 | ConsoleKitObject.OBJECT_PATH); | ||
262 | 369 | 408 | ||
263 | 370 | dbus_interface.restart (); | 409 | dbus_interface.restart (); |
264 | 371 | } catch (IOError err) { | 410 | } catch (IOError err) { |
265 | @@ -377,7 +416,7 @@ | |||
266 | 377 | static void register_plugin () { | 416 | static void register_plugin () { |
267 | 378 | DataSink.PluginRegistry.get_default ().register_plugin (typeof (SystemManagementPlugin), | 417 | DataSink.PluginRegistry.get_default ().register_plugin (typeof (SystemManagementPlugin), |
268 | 379 | "System Management", | 418 | "System Management", |
270 | 380 | _("Suspend, hibernate, restart or shutdown your computer."), | 419 | _("Lock the session or Log Out from it. Suspend, hibernate, restart or shutdown your computer."), |
271 | 381 | "system-restart", | 420 | "system-restart", |
272 | 382 | register_plugin, | 421 | register_plugin, |
273 | 383 | DBusService.get_default ().service_is_available (SystemdObject.UNIQUE_NAME) || | 422 | DBusService.get_default ().service_is_available (SystemdObject.UNIQUE_NAME) || |
274 | @@ -393,6 +432,8 @@ | |||
275 | 393 | 432 | ||
276 | 394 | construct { | 433 | construct { |
277 | 395 | actions = new Gee.LinkedList<SystemAction> (); | 434 | actions = new Gee.LinkedList<SystemAction> (); |
278 | 435 | actions.add (new LockAction ()); | ||
279 | 436 | actions.add (new LogOutAction ()); | ||
280 | 396 | actions.add (new SuspendAction ()); | 437 | actions.add (new SuspendAction ()); |
281 | 397 | actions.add (new HibernateAction ()); | 438 | actions.add (new HibernateAction ()); |
282 | 398 | actions.add (new ShutdownAction ()); | 439 | actions.add (new ShutdownAction ()); |
283 | 399 | 440 | ||
284 | === modified file 'po/slingshot.pot' | |||
285 | --- po/slingshot.pot 2017-01-24 20:34:49 +0000 | |||
286 | +++ po/slingshot.pot 2017-01-31 18:58:37 +0000 | |||
287 | @@ -8,7 +8,7 @@ | |||
288 | 8 | msgstr "" | 8 | msgstr "" |
289 | 9 | "Project-Id-Version: PACKAGE VERSION\n" | 9 | "Project-Id-Version: PACKAGE VERSION\n" |
290 | 10 | "Report-Msgid-Bugs-To: \n" | 10 | "Report-Msgid-Bugs-To: \n" |
292 | 11 | "POT-Creation-Date: 2017-01-24 21:34+0100\n" | 11 | "POT-Creation-Date: 2017-01-31 19:56+0100\n" |
293 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
294 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
295 | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
296 | @@ -17,6 +17,18 @@ | |||
297 | 17 | "Content-Type: text/plain; charset=UTF-8\n" | 17 | "Content-Type: text/plain; charset=UTF-8\n" |
298 | 18 | "Content-Transfer-Encoding: 8bit\n" | 18 | "Content-Transfer-Encoding: 8bit\n" |
299 | 19 | 19 | ||
300 | 20 | #: ../src/Slingshot.vala:31 | ||
301 | 21 | msgid "Slingshot" | ||
302 | 22 | msgstr "" | ||
303 | 23 | |||
304 | 24 | #: ../src/Slingshot.vala:32 | ||
305 | 25 | msgid "The app-menu indicator" | ||
306 | 26 | msgstr "" | ||
307 | 27 | |||
308 | 28 | #: ../src/Slingshot.vala:67 ../src/Widgets/SearchView.vala:222 | ||
309 | 29 | msgid "Applications" | ||
310 | 30 | msgstr "" | ||
311 | 31 | |||
312 | 20 | #: ../src/SlingshotView.vala:161 | 32 | #: ../src/SlingshotView.vala:161 |
313 | 21 | msgid "View as Grid" | 33 | msgid "View as Grid" |
314 | 22 | msgstr "" | 34 | msgstr "" |
315 | @@ -37,6 +49,14 @@ | |||
316 | 37 | msgid "Add to _Dock" | 49 | msgid "Add to _Dock" |
317 | 38 | msgstr "" | 50 | msgstr "" |
318 | 39 | 51 | ||
319 | 52 | #: ../src/Widgets/CategoryView.vala:27 | ||
320 | 53 | msgid "All Applications" | ||
321 | 54 | msgstr "" | ||
322 | 55 | |||
323 | 56 | #: ../src/Widgets/CategoryView.vala:28 | ||
324 | 57 | msgid "Create a new Filter" | ||
325 | 58 | msgstr "" | ||
326 | 59 | |||
327 | 40 | #: ../src/Widgets/SearchView.vala:110 | 60 | #: ../src/Widgets/SearchView.vala:110 |
328 | 41 | msgid "Try changing search terms." | 61 | msgid "Try changing search terms." |
329 | 42 | msgstr "" | 62 | msgstr "" |
330 | @@ -49,10 +69,6 @@ | |||
331 | 49 | msgid "Text" | 69 | msgid "Text" |
332 | 50 | msgstr "" | 70 | msgstr "" |
333 | 51 | 71 | ||
334 | 52 | #: ../src/Widgets/SearchView.vala:222 ../src/Slingshot.vala:67 | ||
335 | 53 | msgid "Applications" | ||
336 | 54 | msgstr "" | ||
337 | 55 | |||
338 | 56 | #: ../src/Widgets/SearchView.vala:225 | 72 | #: ../src/Widgets/SearchView.vala:225 |
339 | 57 | msgid "Files" | 73 | msgid "Files" |
340 | 58 | msgstr "" | 74 | msgstr "" |
341 | @@ -85,22 +101,6 @@ | |||
342 | 85 | msgid "Other" | 101 | msgid "Other" |
343 | 86 | msgstr "" | 102 | msgstr "" |
344 | 87 | 103 | ||
345 | 88 | #: ../src/Widgets/CategoryView.vala:27 | ||
346 | 89 | msgid "All Applications" | ||
347 | 90 | msgstr "" | ||
348 | 91 | |||
349 | 92 | #: ../src/Widgets/CategoryView.vala:28 | ||
350 | 93 | msgid "Create a new Filter" | ||
351 | 94 | msgstr "" | ||
352 | 95 | |||
353 | 96 | #: ../src/Slingshot.vala:31 | ||
354 | 97 | msgid "Slingshot" | ||
355 | 98 | msgstr "" | ||
356 | 99 | |||
357 | 100 | #: ../src/Slingshot.vala:32 | ||
358 | 101 | msgid "The app-menu indicator" | ||
359 | 102 | msgstr "" | ||
360 | 103 | |||
361 | 104 | #: ../src/Backend/App.vala:91 | 104 | #: ../src/Backend/App.vala:91 |
362 | 105 | msgid "Run this command…" | 105 | msgid "Run this command…" |
363 | 106 | msgstr "" | 106 | msgstr "" |
364 | @@ -145,106 +145,124 @@ | |||
365 | 145 | msgid "Copy selection to clipboard" | 145 | msgid "Copy selection to clipboard" |
366 | 146 | msgstr "" | 146 | msgstr "" |
367 | 147 | 147 | ||
389 | 148 | #: ../lib/synapse-plugins/link-plugin.vala:46 | 148 | #: ../lib/synapse-plugins/desktop-file-plugin.vala:127 |
390 | 149 | msgid "Open %s in default web browser" | 149 | msgid "Search for and run applications on your computer." |
391 | 150 | msgstr "" | 150 | msgstr "" |
392 | 151 | 151 | ||
393 | 152 | #: ../lib/synapse-plugins/link-plugin.vala:51 | 152 | #: ../lib/synapse-plugins/desktop-file-plugin.vala:332 |
394 | 153 | msgid "Open %s in %s" | 153 | msgid "Open with %s" |
395 | 154 | msgstr "" | 154 | msgstr "" |
396 | 155 | 155 | ||
397 | 156 | #: ../lib/synapse-plugins/link-plugin.vala:57 | 156 | #: ../lib/synapse-plugins/desktop-file-plugin.vala:334 |
398 | 157 | msgid "Open this link in default browser" | 157 | msgid "Opens current selection using %s" |
399 | 158 | msgstr "" | 158 | msgstr "" |
400 | 159 | 159 | ||
401 | 160 | #: ../lib/synapse-plugins/link-plugin.vala:79 | 160 | #: ../lib/synapse-plugins/calculator-plugin.vala:51 |
402 | 161 | msgid "Link" | 161 | msgid "Calculator" |
403 | 162 | msgstr "" | 162 | msgstr "" |
404 | 163 | 163 | ||
405 | 164 | #: ../lib/synapse-plugins/link-plugin.vala:80 | 164 | #: ../lib/synapse-plugins/calculator-plugin.vala:52 |
406 | 165 | msgid "Open link in default browser" | 165 | msgid "Calculate basic expressions." |
407 | 166 | msgstr "" | 166 | msgstr "" |
408 | 167 | 167 | ||
409 | 168 | #: ../lib/synapse-plugins/system-managment.vala:89 | 168 | #: ../lib/synapse-plugins/calculator-plugin.vala:56 |
410 | 169 | msgid "bc is not installed" | ||
411 | 170 | msgstr "" | ||
412 | 171 | |||
413 | 172 | #: ../lib/synapse-plugins/command-plugin.vala:47 | ||
414 | 173 | msgid "Execute '%s'" | ||
415 | 174 | msgstr "" | ||
416 | 175 | |||
417 | 176 | #: ../lib/synapse-plugins/command-plugin.vala:47 | ||
418 | 177 | msgid "Run command" | ||
419 | 178 | msgstr "" | ||
420 | 179 | |||
421 | 180 | #: ../lib/synapse-plugins/command-plugin.vala:63 | ||
422 | 181 | msgid "Find and execute arbitrary commands." | ||
423 | 182 | msgstr "" | ||
424 | 183 | |||
425 | 184 | #: ../lib/synapse-plugins/system-managment.vala:107 | ||
426 | 185 | msgid "Lock" | ||
427 | 186 | msgstr "" | ||
428 | 187 | |||
429 | 188 | #: ../lib/synapse-plugins/system-managment.vala:108 | ||
430 | 189 | msgid "Lock this device" | ||
431 | 190 | msgstr "" | ||
432 | 191 | |||
433 | 192 | #: ../lib/synapse-plugins/system-managment.vala:134 | ||
434 | 193 | msgid "Log Out" | ||
435 | 194 | msgstr "" | ||
436 | 195 | |||
437 | 196 | #: ../lib/synapse-plugins/system-managment.vala:135 | ||
438 | 197 | msgid "Close all open applications and quit" | ||
439 | 198 | msgstr "" | ||
440 | 199 | |||
441 | 200 | #: ../lib/synapse-plugins/system-managment.vala:161 | ||
442 | 169 | msgid "Suspend" | 201 | msgid "Suspend" |
443 | 170 | msgstr "" | 202 | msgstr "" |
444 | 171 | 203 | ||
446 | 172 | #: ../lib/synapse-plugins/system-managment.vala:90 | 204 | #: ../lib/synapse-plugins/system-managment.vala:162 |
447 | 173 | msgid "Put your computer into suspend mode" | 205 | msgid "Put your computer into suspend mode" |
448 | 174 | msgstr "" | 206 | msgstr "" |
449 | 175 | 207 | ||
451 | 176 | #: ../lib/synapse-plugins/system-managment.vala:168 | 208 | #: ../lib/synapse-plugins/system-managment.vala:232 |
452 | 177 | msgid "Hibernate" | 209 | msgid "Hibernate" |
453 | 178 | msgstr "" | 210 | msgstr "" |
454 | 179 | 211 | ||
456 | 180 | #: ../lib/synapse-plugins/system-managment.vala:169 | 212 | #: ../lib/synapse-plugins/system-managment.vala:233 |
457 | 181 | msgid "Put your computer into hibernation mode" | 213 | msgid "Put your computer into hibernation mode" |
458 | 182 | msgstr "" | 214 | msgstr "" |
459 | 183 | 215 | ||
461 | 184 | #: ../lib/synapse-plugins/system-managment.vala:246 | 216 | #: ../lib/synapse-plugins/system-managment.vala:302 |
462 | 185 | msgid "Shut Down" | 217 | msgid "Shut Down" |
463 | 186 | msgstr "" | 218 | msgstr "" |
464 | 187 | 219 | ||
466 | 188 | #: ../lib/synapse-plugins/system-managment.vala:247 | 220 | #: ../lib/synapse-plugins/system-managment.vala:303 |
467 | 189 | msgid "Turn your computer off" | 221 | msgid "Turn your computer off" |
468 | 190 | msgstr "" | 222 | msgstr "" |
469 | 191 | 223 | ||
471 | 192 | #: ../lib/synapse-plugins/system-managment.vala:312 | 224 | #: ../lib/synapse-plugins/system-managment.vala:360 |
472 | 193 | msgid "Restart" | 225 | msgid "Restart" |
473 | 194 | msgstr "" | 226 | msgstr "" |
474 | 195 | 227 | ||
476 | 196 | #: ../lib/synapse-plugins/system-managment.vala:313 | 228 | #: ../lib/synapse-plugins/system-managment.vala:361 |
477 | 197 | msgid "Restart your computer" | 229 | msgid "Restart your computer" |
478 | 198 | msgstr "" | 230 | msgstr "" |
479 | 199 | 231 | ||
482 | 200 | #: ../lib/synapse-plugins/system-managment.vala:379 | 232 | #: ../lib/synapse-plugins/system-managment.vala:419 |
483 | 201 | msgid "Suspend, hibernate, restart or shutdown your computer." | 233 | msgid "" |
484 | 234 | "Lock the session or Log Out from it. Suspend, hibernate, restart or shutdown " | ||
485 | 235 | "your computer." | ||
486 | 202 | msgstr "" | 236 | msgstr "" |
487 | 203 | 237 | ||
489 | 204 | #: ../lib/synapse-plugins/system-managment.vala:384 | 238 | #: ../lib/synapse-plugins/system-managment.vala:424 |
490 | 205 | msgid "ConsoleKit wasn't found" | 239 | msgid "ConsoleKit wasn't found" |
491 | 206 | msgstr "" | 240 | msgstr "" |
492 | 207 | 241 | ||
518 | 208 | #: ../lib/synapse-plugins/calculator-plugin.vala:50 | 242 | #: ../lib/synapse-plugins/link-plugin.vala:47 |
519 | 209 | msgid "Calculator" | 243 | msgid "Open %s in default web browser" |
520 | 210 | msgstr "" | 244 | msgstr "" |
521 | 211 | 245 | ||
522 | 212 | #: ../lib/synapse-plugins/calculator-plugin.vala:51 | 246 | #: ../lib/synapse-plugins/link-plugin.vala:52 |
523 | 213 | msgid "Calculate basic expressions." | 247 | msgid "Open %s in %s" |
524 | 214 | msgstr "" | 248 | msgstr "" |
525 | 215 | 249 | ||
526 | 216 | #: ../lib/synapse-plugins/calculator-plugin.vala:55 | 250 | #: ../lib/synapse-plugins/link-plugin.vala:58 |
527 | 217 | msgid "bc is not installed" | 251 | msgid "Open this link in default browser" |
528 | 218 | msgstr "" | 252 | msgstr "" |
529 | 219 | 253 | ||
530 | 220 | #: ../lib/synapse-plugins/desktop-file-plugin.vala:126 | 254 | #: ../lib/synapse-plugins/link-plugin.vala:80 |
531 | 221 | msgid "Search for and run applications on your computer." | 255 | msgid "Link" |
532 | 222 | msgstr "" | 256 | msgstr "" |
533 | 223 | 257 | ||
534 | 224 | #: ../lib/synapse-plugins/desktop-file-plugin.vala:331 | 258 | #: ../lib/synapse-plugins/link-plugin.vala:81 |
535 | 225 | msgid "Open with %s" | 259 | msgid "Open link in default browser" |
536 | 226 | msgstr "" | 260 | msgstr "" |
537 | 227 | 261 | ||
538 | 228 | #: ../lib/synapse-plugins/desktop-file-plugin.vala:333 | 262 | #: ../lib/synapse-plugins/switchboard-plugin.vala:46 |
514 | 229 | msgid "Opens current selection using %s" | ||
515 | 230 | msgstr "" | ||
516 | 231 | |||
517 | 232 | #: ../lib/synapse-plugins/switchboard-plugin.vala:45 | ||
539 | 233 | msgid "Open %s settings" | 263 | msgid "Open %s settings" |
540 | 234 | msgstr "" | 264 | msgstr "" |
541 | 235 | 265 | ||
543 | 236 | #: ../lib/synapse-plugins/switchboard-plugin.vala:61 | 266 | #: ../lib/synapse-plugins/switchboard-plugin.vala:62 |
544 | 237 | msgid "Find switchboard plugs and open them." | 267 | msgid "Find switchboard plugs and open them." |
545 | 238 | msgstr "" | 268 | msgstr "" |
546 | 239 | |||
547 | 240 | #: ../lib/synapse-plugins/command-plugin.vala:46 | ||
548 | 241 | msgid "Execute '%s'" | ||
549 | 242 | msgstr "" | ||
550 | 243 | |||
551 | 244 | #: ../lib/synapse-plugins/command-plugin.vala:46 | ||
552 | 245 | msgid "Run command" | ||
553 | 246 | msgstr "" | ||
554 | 247 | |||
555 | 248 | #: ../lib/synapse-plugins/command-plugin.vala:62 | ||
556 | 249 | msgid "Find and execute arbitrary commands." | ||
557 | 250 | msgstr "" |
Instead of "Lock your computer", we should probably use device-agnostic terms and avoid questions about formal/informal "you" in translations with "Lock this device".