Merge lp:~tintou/pantheon-photos/gtkaction into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Corentin Noël
Status: Merged
Approved by: Danielle Foré
Approved revision: 3134
Merged at revision: 3134
Proposed branch: lp:~tintou/pantheon-photos/gtkaction
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 1217 lines (+216/-423)
15 files modified
src/AppWindow.vala (+11/-17)
src/CollectionPage.vala (+24/-49)
src/MediaPage.vala (+29/-57)
src/PhotoPage.vala (+62/-116)
src/camera/ImportPage.vala (+5/-11)
src/direct/DirectPhotoPage.vala (+47/-93)
src/events/EventPage.vala (+2/-4)
src/events/EventsDirectoryPage.vala (+4/-8)
src/library/ImportQueuePage.vala (+1/-3)
src/library/LibraryWindow.vala (+22/-46)
src/library/OfflinePage.vala (+2/-4)
src/library/TrashPage.vala (+3/-7)
src/searches/Branch.vala (+1/-2)
src/sidebar/Tree.vala (+2/-4)
src/tags/Branch.vala (+1/-2)
To merge this branch: bzr merge lp:~tintou/pantheon-photos/gtkaction
Reviewer Review Type Date Requested Status
Danielle Foré Approve
Review via email: mp+315689@code.launchpad.net

Commit message

Simplified the GtkAction creation

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

Everything looks good here :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/AppWindow.vala'
--- src/AppWindow.vala 2017-01-15 18:45:10 +0000
+++ src/AppWindow.vala 2017-01-26 15:47:05 +0000
@@ -498,40 +498,34 @@
498 private Gtk.ActionEntry[] create_common_actions () {498 private Gtk.ActionEntry[] create_common_actions () {
499 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];499 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];
500500
501 Gtk.ActionEntry quit = { "CommonQuit", null, TRANSLATABLE, "<Ctrl>Q",501 Gtk.ActionEntry quit = { "CommonQuit", null, _("_Quit"), "<Ctrl>Q",
502 TRANSLATABLE, on_quit502 _("_Quit"), on_quit
503 };503 };
504 quit.label = _ ("_Quit");
505 actions += quit;504 actions += quit;
506505
507 Gtk.ActionEntry fullscreen = { "CommonFullscreen", null,506 Gtk.ActionEntry fullscreen = { "CommonFullscreen", null,
508 TRANSLATABLE, "F11", TRANSLATABLE, on_fullscreen507 _("Fulls_creen"), "F11", _("Fulls_creen"), on_fullscreen
509 };508 };
510 fullscreen.label = _ ("Fulls_creen");
511 actions += fullscreen;509 actions += fullscreen;
512510
513 Gtk.ActionEntry undo = { "CommonUndo", "edit-undo", TRANSLATABLE, "<Ctrl>Z",511 Gtk.ActionEntry undo = { "CommonUndo", "edit-undo", Resources.UNDO_MENU, "<Ctrl>Z",
514 TRANSLATABLE, on_undo512 Resources.UNDO_MENU, on_undo
515 };513 };
516 undo.label = Resources.UNDO_MENU;
517 actions += undo;514 actions += undo;
518515
519 Gtk.ActionEntry redo = { "CommonRedo", "edit-redo", TRANSLATABLE, "<Ctrl><Shift>Z",516 Gtk.ActionEntry redo = { "CommonRedo", "edit-redo", Resources.REDO_MENU, "<Ctrl><Shift>Z",
520 TRANSLATABLE, on_redo517 Resources.REDO_MENU, on_redo
521 };518 };
522 redo.label = Resources.REDO_MENU;
523 actions += redo;519 actions += redo;
524520
525 Gtk.ActionEntry jump_to_file = { "CommonJumpToFile", null, TRANSLATABLE,521 Gtk.ActionEntry jump_to_file = { "CommonJumpToFile", null, Resources.JUMP_TO_FILE_MENU,
526 "<Ctrl><Shift>M", TRANSLATABLE, on_jump_to_file522 "<Ctrl><Shift>M", Resources.JUMP_TO_FILE_MENU, on_jump_to_file
527 };523 };
528 jump_to_file.label = Resources.JUMP_TO_FILE_MENU;
529 actions += jump_to_file;524 actions += jump_to_file;
530525
531 Gtk.ActionEntry select_all = { "CommonSelectAll", null, TRANSLATABLE,526 Gtk.ActionEntry select_all = { "CommonSelectAll", null, Resources.SELECT_ALL_MENU,
532 "<Ctrl>A", TRANSLATABLE, on_select_all527 "<Ctrl>A", Resources.SELECT_ALL_MENU, on_select_all
533 };528 };
534 select_all.label = Resources.SELECT_ALL_MENU;
535 actions += select_all;529 actions += select_all;
536530
537 Gtk.ActionEntry select_none = { "CommonSelectNone", null, null,531 Gtk.ActionEntry select_none = { "CommonSelectNone", null, null,
538532
=== modified file 'src/CollectionPage.vala'
--- src/CollectionPage.vala 2017-01-12 18:13:48 +0000
+++ src/CollectionPage.vala 2017-01-26 15:47:05 +0000
@@ -124,100 +124,75 @@
124 protected override Gtk.ActionEntry[] init_collect_action_entries () {124 protected override Gtk.ActionEntry[] init_collect_action_entries () {
125 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();125 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();
126126
127 Gtk.ActionEntry print = { "Print", null, TRANSLATABLE, "<Ctrl>P",127 Gtk.ActionEntry print = { "Print", null, Resources.PRINT_MENU, "<Ctrl>P",
128 TRANSLATABLE, on_print128 Resources.PRINT_MENU, on_print
129 };129 };
130 print.label = Resources.PRINT_MENU;
131 actions += print;130 actions += print;
132131
133 Gtk.ActionEntry publish = { "Publish", Resources.PUBLISH, TRANSLATABLE, "<Ctrl><Shift>P",132 Gtk.ActionEntry publish = { "Publish", Resources.PUBLISH, Resources.PUBLISH_MENU, "<Ctrl><Shift>P",
134 TRANSLATABLE, on_publish133 Resources.PUBLISH_TOOLTIP, on_publish
135 };134 };
136 publish.label = Resources.PUBLISH_MENU;
137 publish.tooltip = Resources.PUBLISH_TOOLTIP;
138 actions += publish;135 actions += publish;
139136
140 Gtk.ActionEntry rotate_right = { "RotateClockwise", Resources.CLOCKWISE,137 Gtk.ActionEntry rotate_right = { "RotateClockwise", Resources.CLOCKWISE,
141 TRANSLATABLE, "<Ctrl>R", TRANSLATABLE, on_rotate_clockwise138 Resources.ROTATE_CW_MENU, "<Ctrl>R", Resources.ROTATE_CW_TOOLTIP, on_rotate_clockwise
142 };139 };
143 rotate_right.label = Resources.ROTATE_CW_MENU;
144 rotate_right.tooltip = Resources.ROTATE_CW_TOOLTIP;
145 actions += rotate_right;140 actions += rotate_right;
146141
147 Gtk.ActionEntry rotate_left = { "RotateCounterclockwise", Resources.COUNTERCLOCKWISE,142 Gtk.ActionEntry rotate_left = { "RotateCounterclockwise", Resources.COUNTERCLOCKWISE,
148 TRANSLATABLE, "<Ctrl><Shift>R", TRANSLATABLE, on_rotate_counterclockwise143 Resources.ROTATE_CCW_MENU, "<Ctrl><Shift>R", Resources.ROTATE_CCW_TOOLTIP, on_rotate_counterclockwise
149 };144 };
150 rotate_left.label = Resources.ROTATE_CCW_MENU;
151 rotate_left.tooltip = Resources.ROTATE_CCW_TOOLTIP;
152 actions += rotate_left;145 actions += rotate_left;
153146
154 Gtk.ActionEntry hflip = { "FlipHorizontally", Resources.HFLIP, TRANSLATABLE, null,147 Gtk.ActionEntry hflip = { "FlipHorizontally", Resources.HFLIP, Resources.HFLIP_MENU, null,
155 TRANSLATABLE, on_flip_horizontally148 Resources.HFLIP_TOOLTIP, on_flip_horizontally
156 };149 };
157 hflip.label = Resources.HFLIP_MENU;
158 hflip.tooltip = Resources.HFLIP_TOOLTIP;
159 actions += hflip;150 actions += hflip;
160151
161 Gtk.ActionEntry vflip = { "FlipVertically", Resources.VFLIP, TRANSLATABLE, null,152 Gtk.ActionEntry vflip = { "FlipVertically", Resources.VFLIP, Resources.VFLIP_MENU, null,
162 TRANSLATABLE, on_flip_vertically153 Resources.VFLIP_TOOLTIP, on_flip_vertically
163 };154 };
164 vflip.label = Resources.VFLIP_MENU;
165 vflip.tooltip = Resources.VFLIP_TOOLTIP;
166 actions += vflip;155 actions += vflip;
167156
168 Gtk.ActionEntry copy_adjustments = { "CopyColorAdjustments", null, TRANSLATABLE,157 Gtk.ActionEntry copy_adjustments = { "CopyColorAdjustments", null, Resources.COPY_ADJUSTMENTS_MENU,
169 "<Ctrl><Shift>C", TRANSLATABLE, on_copy_adjustments158 "<Ctrl><Shift>C", Resources.COPY_ADJUSTMENTS_TOOLTIP, on_copy_adjustments
170 };159 };
171 copy_adjustments.label = Resources.COPY_ADJUSTMENTS_MENU;
172 copy_adjustments.tooltip = Resources.COPY_ADJUSTMENTS_TOOLTIP;
173 actions += copy_adjustments;160 actions += copy_adjustments;
174161
175 Gtk.ActionEntry paste_adjustments = { "PasteColorAdjustments", null, TRANSLATABLE,162 Gtk.ActionEntry paste_adjustments = { "PasteColorAdjustments", null, Resources.PASTE_ADJUSTMENTS_MENU,
176 "<Ctrl><Shift>V", TRANSLATABLE, on_paste_adjustments163 "<Ctrl><Shift>V", Resources.PASTE_ADJUSTMENTS_TOOLTIP, on_paste_adjustments
177 };164 };
178 paste_adjustments.label = Resources.PASTE_ADJUSTMENTS_MENU;
179 paste_adjustments.tooltip = Resources.PASTE_ADJUSTMENTS_TOOLTIP;
180 actions += paste_adjustments;165 actions += paste_adjustments;
181166
182 Gtk.ActionEntry revert = { "Revert", null, TRANSLATABLE, null,167 Gtk.ActionEntry revert = { "Revert", null, Resources.REVERT_MENU, null,
183 TRANSLATABLE, on_revert168 Resources.REVERT_MENU, on_revert
184 };169 };
185 revert.label = Resources.REVERT_MENU;
186 actions += revert;170 actions += revert;
187171
188 Gtk.ActionEntry duplicate = { "Duplicate", null, TRANSLATABLE, "<Ctrl>D", TRANSLATABLE,172 Gtk.ActionEntry duplicate = { "Duplicate", null, Resources.DUPLICATE_PHOTO_MENU, "<Ctrl>D", Resources.DUPLICATE_PHOTO_TOOLTIP,
189 on_duplicate_photo173 on_duplicate_photo
190 };174 };
191 duplicate.label = Resources.DUPLICATE_PHOTO_MENU;
192 duplicate.tooltip = Resources.DUPLICATE_PHOTO_TOOLTIP;
193 actions += duplicate;175 actions += duplicate;
194176
195 Gtk.ActionEntry adjust_date_time = { "AdjustDateTime", null, TRANSLATABLE, null,177 Gtk.ActionEntry adjust_date_time = { "AdjustDateTime", null, Resources.ADJUST_DATE_TIME_MENU, null,
196 TRANSLATABLE, on_adjust_date_time178 Resources.ADJUST_DATE_TIME_MENU, on_adjust_date_time
197 };179 };
198 adjust_date_time.label = Resources.ADJUST_DATE_TIME_MENU;
199 actions += adjust_date_time;180 actions += adjust_date_time;
200181
201 Gtk.ActionEntry open_with = { "OpenWith", null, TRANSLATABLE, null, null, null };182 Gtk.ActionEntry open_with = { "OpenWith", null, Resources.OPEN_WITH_MENU, null, null, null };
202 open_with.label = Resources.OPEN_WITH_MENU;
203 actions += open_with;183 actions += open_with;
204184
205 Gtk.ActionEntry open_with_raw = { "OpenWithRaw", null, TRANSLATABLE, null, null, null };185 Gtk.ActionEntry open_with_raw = { "OpenWithRaw", null, Resources.OPEN_WITH_RAW_MENU, null, null, null };
206 open_with_raw.label = Resources.OPEN_WITH_RAW_MENU;
207 actions += open_with_raw;186 actions += open_with_raw;
208187
209 Gtk.ActionEntry enhance = { "Enhance", Resources.ENHANCE, TRANSLATABLE, "<Ctrl>E",188 Gtk.ActionEntry enhance = { "Enhance", Resources.ENHANCE, Resources.ENHANCE_MENU, "<Ctrl>E",
210 TRANSLATABLE, on_enhance189 Resources.ENHANCE_TOOLTIP, on_enhance
211 };190 };
212 enhance.label = Resources.ENHANCE_MENU;
213 enhance.tooltip = Resources.ENHANCE_TOOLTIP;
214 actions += enhance;191 actions += enhance;
215192
216 Gtk.ActionEntry slideshow = { "Slideshow", null, TRANSLATABLE, "F5", TRANSLATABLE,193 Gtk.ActionEntry slideshow = { "Slideshow", null, _("S_lideshow"), "F5", _("Play a slideshow"),
217 on_slideshow194 on_slideshow
218 };195 };
219 slideshow.label = _ ("S_lideshow");
220 slideshow.tooltip = _ ("Play a slideshow");
221 actions += slideshow;196 actions += slideshow;
222197
223 return actions;198 return actions;
224199
=== modified file 'src/MediaPage.vala'
--- src/MediaPage.vala 2017-01-12 18:13:48 +0000
+++ src/MediaPage.vala 2017-01-26 15:47:05 +0000
@@ -202,72 +202,58 @@
202 protected override Gtk.ActionEntry[] init_collect_action_entries () {202 protected override Gtk.ActionEntry[] init_collect_action_entries () {
203 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();203 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();
204204
205 Gtk.ActionEntry export = { "Export", null, TRANSLATABLE, "<Ctrl><Shift>E",205 Gtk.ActionEntry export = { "Export", null, Resources.EXPORT_MENU, "<Ctrl><Shift>E",
206 TRANSLATABLE, on_export206 Resources.EXPORT_MENU, on_export
207 };207 };
208 export.label = Resources.EXPORT_MENU;
209 actions += export;208 actions += export;
210209
211 Gtk.ActionEntry remove_from_library = { "RemoveFromLibrary", null, TRANSLATABLE,210 Gtk.ActionEntry remove_from_library = { "RemoveFromLibrary", null, Resources.REMOVE_FROM_LIBRARY_MENU,
212 "<Shift>Delete", TRANSLATABLE, on_remove_from_library211 "<Shift>Delete", Resources.REMOVE_FROM_LIBRARY_MENU, on_remove_from_library
213 };212 };
214 remove_from_library.label = Resources.REMOVE_FROM_LIBRARY_MENU;
215 actions += remove_from_library;213 actions += remove_from_library;
216214
217 Gtk.ActionEntry move_to_trash = { "MoveToTrash", "user-trash-full", TRANSLATABLE, "Delete",215 Gtk.ActionEntry move_to_trash = { "MoveToTrash", "user-trash-full", Resources.MOVE_TO_TRASH_MENU, "Delete",
218 TRANSLATABLE, on_move_to_trash216 Resources.MOVE_TO_TRASH_MENU, on_move_to_trash
219 };217 };
220 move_to_trash.label = Resources.MOVE_TO_TRASH_MENU;
221 actions += move_to_trash;218 actions += move_to_trash;
222219
223 Gtk.ActionEntry new_event = { "NewEvent", null, TRANSLATABLE, "<Ctrl>N",220 Gtk.ActionEntry new_event = { "NewEvent", null, Resources.NEW_EVENT_MENU, "<Ctrl>N",
224 TRANSLATABLE, on_new_event221 Resources.NEW_EVENT_MENU, on_new_event
225 };222 };
226 new_event.label = Resources.NEW_EVENT_MENU;
227 actions += new_event;223 actions += new_event;
228224
229 Gtk.ActionEntry increase_size = { "IncreaseSize", null, TRANSLATABLE,225 Gtk.ActionEntry increase_size = { "IncreaseSize", null, _("Zoom _In"),
230 "<Ctrl>plus", TRANSLATABLE, on_increase_size226 "<Ctrl>plus", _("Increase the magnification of the thumbnails"), on_increase_size
231 };227 };
232 increase_size.label = _ ("Zoom _In");
233 increase_size.tooltip = _ ("Increase the magnification of the thumbnails");
234 actions += increase_size;228 actions += increase_size;
235229
236 Gtk.ActionEntry decrease_size = { "DecreaseSize", null, TRANSLATABLE,230 Gtk.ActionEntry decrease_size = { "DecreaseSize", null, _("Zoom _Out"),
237 "<Ctrl>minus", TRANSLATABLE, on_decrease_size231 "<Ctrl>minus", _("Decrease the magnification of the thumbnails"), on_decrease_size
238 };232 };
239 decrease_size.label = _ ("Zoom _Out");
240 decrease_size.tooltip = _ ("Decrease the magnification of the thumbnails");
241 actions += decrease_size;233 actions += decrease_size;
242234
243 Gtk.ActionEntry flag = { "Flag", null, TRANSLATABLE, "<Ctrl>G", TRANSLATABLE, on_flag_unflag };235 Gtk.ActionEntry flag = { "Flag", null, Resources.FLAG_MENU, "<Ctrl>G", Resources.FLAG_MENU, on_flag_unflag };
244 flag.label = Resources.FLAG_MENU;
245 actions += flag;236 actions += flag;
246237
247 Gtk.ActionEntry sort_photos = { "SortPhotos", null, TRANSLATABLE, null, null, null };238 Gtk.ActionEntry sort_photos = { "SortPhotos", null, _("Sort _Photos"), null, null, null };
248 sort_photos.label = _ ("Sort _Photos");
249 actions += sort_photos;239 actions += sort_photos;
250240
251 Gtk.ActionEntry filter_photos = { "FilterPhotos", null, TRANSLATABLE, null, null, null };241 Gtk.ActionEntry filter_photos = { "FilterPhotos", null, Resources.FILTER_PHOTOS_MENU, null, null, null };
252 filter_photos.label = Resources.FILTER_PHOTOS_MENU;
253 actions += filter_photos;242 actions += filter_photos;
254243
255 Gtk.ActionEntry raw_developer = { "RawDeveloper", null, TRANSLATABLE, null, null, null };244 Gtk.ActionEntry raw_developer = { "RawDeveloper", null, _("_Developer"), null, null, null };
256 raw_developer.label = _ ("_Developer");
257 actions += raw_developer;245 actions += raw_developer;
258246
259 // RAW developers.247 // RAW developers.
260248
261 Gtk.ActionEntry dev_shotwell = { "RawDeveloperShotwell", null, TRANSLATABLE, null, TRANSLATABLE,249 Gtk.ActionEntry dev_shotwell = { "RawDeveloperShotwell", null, _("Shotwell"), null, _("Shotwell"),
262 on_raw_developer_shotwell250 on_raw_developer_shotwell
263 };251 };
264 dev_shotwell.label = _ ("Shotwell");
265 actions += dev_shotwell;252 actions += dev_shotwell;
266253
267 Gtk.ActionEntry dev_camera = { "RawDeveloperCamera", null, TRANSLATABLE, null, TRANSLATABLE,254 Gtk.ActionEntry dev_camera = { "RawDeveloperCamera", null, _("Camera"), null, _("Camera"),
268 on_raw_developer_camera255 on_raw_developer_camera
269 };256 };
270 dev_camera.label = _ ("Camera");
271 actions += dev_camera;257 actions += dev_camera;
272258
273 return actions;259 return actions;
@@ -276,25 +262,19 @@
276 protected override Gtk.ToggleActionEntry[] init_collect_toggle_action_entries () {262 protected override Gtk.ToggleActionEntry[] init_collect_toggle_action_entries () {
277 Gtk.ToggleActionEntry[] toggle_actions = base.init_collect_toggle_action_entries ();263 Gtk.ToggleActionEntry[] toggle_actions = base.init_collect_toggle_action_entries ();
278264
279 Gtk.ToggleActionEntry titles = { "ViewTitle", null, TRANSLATABLE, "<Ctrl><Shift>T",265 Gtk.ToggleActionEntry titles = { "ViewTitle", null, _("_Titles"), "<Ctrl><Shift>T",
280 TRANSLATABLE, on_display_titles, Config.Facade.get_instance ().get_display_photo_titles ()266 _("Display the title of each photo"), on_display_titles, Config.Facade.get_instance ().get_display_photo_titles ()
281 };267 };
282 titles.label = _ ("_Titles");
283 titles.tooltip = _ ("Display the title of each photo");
284 toggle_actions += titles;268 toggle_actions += titles;
285269
286 Gtk.ToggleActionEntry comments = { "ViewComment", null, TRANSLATABLE, "<Ctrl><Shift>C",270 Gtk.ToggleActionEntry comments = { "ViewComment", null, _("_Comments"), "<Ctrl><Shift>C",
287 TRANSLATABLE, on_display_comments, Config.Facade.get_instance ().get_display_photo_comments ()271 _("Display the comment of each photo"), on_display_comments, Config.Facade.get_instance ().get_display_photo_comments ()
288 };272 };
289 comments.label = _ ("_Comments");
290 comments.tooltip = _ ("Display the comment of each photo");
291 toggle_actions += comments;273 toggle_actions += comments;
292274
293 Gtk.ToggleActionEntry tags = { "ViewTags", null, TRANSLATABLE, "<Ctrl><Shift>G",275 Gtk.ToggleActionEntry tags = { "ViewTags", null, _("Ta_gs"), "<Ctrl><Shift>G",
294 TRANSLATABLE, on_display_tags, Config.Facade.get_instance ().get_display_photo_tags ()276 _("Display each photo's tags"), on_display_tags, Config.Facade.get_instance ().get_display_photo_tags ()
295 };277 };
296 tags.label = _ ("Ta_gs");
297 tags.tooltip = _ ("Display each photo's tags");
298 toggle_actions += tags;278 toggle_actions += tags;
299279
300 return toggle_actions;280 return toggle_actions;
@@ -308,18 +288,14 @@
308 // Sort criteria.288 // Sort criteria.
309 Gtk.RadioActionEntry[] sort_crit_actions = new Gtk.RadioActionEntry[0];289 Gtk.RadioActionEntry[] sort_crit_actions = new Gtk.RadioActionEntry[0];
310290
311 Gtk.RadioActionEntry by_title = { "SortByTitle", null, TRANSLATABLE, null, TRANSLATABLE,291 Gtk.RadioActionEntry by_title = { "SortByTitle", null, _("By _Title"), null, _("Sort photos by title"),
312 SortBy.TITLE292 SortBy.TITLE
313 };293 };
314 by_title.label = _ ("By _Title");
315 by_title.tooltip = _ ("Sort photos by title");
316 sort_crit_actions += by_title;294 sort_crit_actions += by_title;
317295
318 Gtk.RadioActionEntry by_date = { "SortByExposureDate", null, TRANSLATABLE, null,296 Gtk.RadioActionEntry by_date = { "SortByExposureDate", null, _("By Exposure _Date"), null,
319 TRANSLATABLE, SortBy.EXPOSURE_DATE297 _("Sort photos by exposure date"), SortBy.EXPOSURE_DATE
320 };298 };
321 by_date.label = _ ("By Exposure _Date");
322 by_date.tooltip = _ ("Sort photos by exposure date");
323 sort_crit_actions += by_date;299 sort_crit_actions += by_date;
324300
325 action_group.add_radio_actions (sort_crit_actions, sort_by, on_sort_changed);301 action_group.add_radio_actions (sort_crit_actions, sort_by, on_sort_changed);
@@ -328,17 +304,13 @@
328 Gtk.RadioActionEntry[] sort_order_actions = new Gtk.RadioActionEntry[0];304 Gtk.RadioActionEntry[] sort_order_actions = new Gtk.RadioActionEntry[0];
329305
330 Gtk.RadioActionEntry ascending = { "SortAscending", null,306 Gtk.RadioActionEntry ascending = { "SortAscending", null,
331 TRANSLATABLE, null, TRANSLATABLE, SORT_ORDER_ASCENDING307 _("_Ascending"), null, _("Sort photos in an ascending order"), SORT_ORDER_ASCENDING
332 };308 };
333 ascending.label = _ ("_Ascending");
334 ascending.tooltip = _ ("Sort photos in an ascending order");
335 sort_order_actions += ascending;309 sort_order_actions += ascending;
336310
337 Gtk.RadioActionEntry descending = { "SortDescending", null,311 Gtk.RadioActionEntry descending = { "SortDescending", null,
338 TRANSLATABLE, null, TRANSLATABLE, SORT_ORDER_DESCENDING312 _("D_escending"), null, _("Sort photos in a descending order"), SORT_ORDER_DESCENDING
339 };313 };
340 descending.label = _ ("D_escending");
341 descending.tooltip = _ ("Sort photos in a descending order");
342 sort_order_actions += descending;314 sort_order_actions += descending;
343315
344 action_group.add_radio_actions (sort_order_actions,316 action_group.add_radio_actions (sort_order_actions,
345317
=== modified file 'src/PhotoPage.vala'
--- src/PhotoPage.vala 2017-01-12 18:13:48 +0000
+++ src/PhotoPage.vala 2017-01-26 15:47:05 +0000
@@ -2496,206 +2496,154 @@
2496 protected override Gtk.ActionEntry[] init_collect_action_entries () {2496 protected override Gtk.ActionEntry[] init_collect_action_entries () {
2497 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();2497 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();
24982498
2499 Gtk.ActionEntry export = { "Export", null, TRANSLATABLE, "<Ctrl><Shift>E",2499 Gtk.ActionEntry export = { "Export", null, Resources.EXPORT_MENU, "<Ctrl><Shift>E",
2500 TRANSLATABLE, on_export2500 Resources.EXPORT_MENU, on_export
2501 };2501 };
2502 export.label = Resources.EXPORT_MENU;
2503 actions += export;2502 actions += export;
25042503
2505 Gtk.ActionEntry print = { "Print", null, TRANSLATABLE, "<Ctrl>P",2504 Gtk.ActionEntry print = { "Print", null, Resources.PRINT_MENU, "<Ctrl>P",
2506 TRANSLATABLE, on_print2505 Resources.PRINT_MENU, on_print
2507 };2506 };
2508 print.label = Resources.PRINT_MENU;
2509 actions += print;2507 actions += print;
25102508
2511 Gtk.ActionEntry publish = { "Publish", Resources.PUBLISH, TRANSLATABLE, "<Ctrl><Shift>P",2509 Gtk.ActionEntry publish = { "Publish", Resources.PUBLISH, Resources.PUBLISH_MENU, "<Ctrl><Shift>P",
2512 TRANSLATABLE, on_publish2510 Resources.PUBLISH_TOOLTIP, on_publish
2513 };2511 };
2514 publish.label = Resources.PUBLISH_MENU;
2515 publish.tooltip = Resources.PUBLISH_TOOLTIP;
2516 actions += publish;2512 actions += publish;
25172513
2518 Gtk.ActionEntry remove_from_library = { "RemoveFromLibrary", null, TRANSLATABLE,2514 Gtk.ActionEntry remove_from_library = { "RemoveFromLibrary", null, Resources.REMOVE_FROM_LIBRARY_MENU,
2519 "<Shift>Delete", TRANSLATABLE, on_remove_from_library2515 "<Shift>Delete", Resources.REMOVE_FROM_LIBRARY_MENU, on_remove_from_library
2520 };2516 };
2521 remove_from_library.label = Resources.REMOVE_FROM_LIBRARY_MENU;
2522 actions += remove_from_library;2517 actions += remove_from_library;
25232518
2524 Gtk.ActionEntry move_to_trash = { "MoveToTrash", "user-trash-full", TRANSLATABLE, "Delete",2519 Gtk.ActionEntry move_to_trash = { "MoveToTrash", "user-trash-full", Resources.MOVE_TO_TRASH_MENU, "Delete",
2525 TRANSLATABLE, on_move_to_trash2520 Resources.MOVE_TO_TRASH_MENU, on_move_to_trash
2526 };2521 };
2527 move_to_trash.label = Resources.MOVE_TO_TRASH_MENU;
2528 actions += move_to_trash;2522 actions += move_to_trash;
25292523
2530 Gtk.ActionEntry view = { "ViewMenu", null, TRANSLATABLE, null, null, on_view_menu };2524 Gtk.ActionEntry view = { "ViewMenu", null, _("_View"), null, null, on_view_menu };
2531 view.label = _ ("_View");
2532 actions += view;2525 actions += view;
25332526
2534 Gtk.ActionEntry tools = { "Tools", null, TRANSLATABLE, null, null, null };2527 Gtk.ActionEntry tools = { "Tools", null, _("T_ools"), null, null, null };
2535 tools.label = _ ("T_ools");
2536 actions += tools;2528 actions += tools;
25372529
2538 Gtk.ActionEntry prev = { "PrevPhoto", null, TRANSLATABLE, null,2530 Gtk.ActionEntry prev = { "PrevPhoto", null, _("_Previous Photo"), null,
2539 TRANSLATABLE, on_previous_photo2531 _("Previous Photo"), on_previous_photo
2540 };2532 };
2541 prev.label = _ ("_Previous Photo");
2542 prev.tooltip = _ ("Previous Photo");
2543 actions += prev;2533 actions += prev;
25442534
2545 Gtk.ActionEntry next = { "NextPhoto", null, TRANSLATABLE, null,2535 Gtk.ActionEntry next = { "NextPhoto", null, _("_Next Photo"), null,
2546 TRANSLATABLE, on_next_photo2536 _("Next Photo"), on_next_photo
2547 };2537 };
2548 next.label = _ ("_Next Photo");
2549 next.tooltip = _ ("Next Photo");
2550 actions += next;2538 actions += next;
25512539
2552 Gtk.ActionEntry rotate_right = { "RotateClockwise", Resources.CLOCKWISE, TRANSLATABLE,2540 Gtk.ActionEntry rotate_right = { "RotateClockwise", Resources.CLOCKWISE, Resources.ROTATE_CW_MENU,
2553 "<Ctrl>R", TRANSLATABLE, on_rotate_clockwise2541 "<Ctrl>R", Resources.ROTATE_CW_TOOLTIP, on_rotate_clockwise
2554 };2542 };
2555 rotate_right.label = Resources.ROTATE_CW_MENU;
2556 rotate_right.tooltip = Resources.ROTATE_CW_TOOLTIP;
2557 actions += rotate_right;2543 actions += rotate_right;
25582544
2559 Gtk.ActionEntry rotate_left = { "RotateCounterclockwise", Resources.COUNTERCLOCKWISE,2545 Gtk.ActionEntry rotate_left = { "RotateCounterclockwise", Resources.COUNTERCLOCKWISE,
2560 TRANSLATABLE, "<Ctrl><Shift>R", TRANSLATABLE, on_rotate_counterclockwise2546 Resources.ROTATE_CCW_MENU, "<Ctrl><Shift>R", Resources.ROTATE_CCW_TOOLTIP, on_rotate_counterclockwise
2561 };2547 };
2562 rotate_left.label = Resources.ROTATE_CCW_MENU;
2563 rotate_left.tooltip = Resources.ROTATE_CCW_TOOLTIP;
2564 actions += rotate_left;2548 actions += rotate_left;
25652549
2566 Gtk.ActionEntry hflip = { "FlipHorizontally", Resources.HFLIP, TRANSLATABLE, null,2550 Gtk.ActionEntry hflip = { "FlipHorizontally", Resources.HFLIP, Resources.HFLIP_MENU, null,
2567 TRANSLATABLE, on_flip_horizontally2551 Resources.HFLIP_MENU, on_flip_horizontally
2568 };2552 };
2569 hflip.label = Resources.HFLIP_MENU;
2570 actions += hflip;2553 actions += hflip;
25712554
2572 Gtk.ActionEntry vflip = { "FlipVertically", Resources.VFLIP, TRANSLATABLE, null,2555 Gtk.ActionEntry vflip = { "FlipVertically", Resources.VFLIP, Resources.VFLIP_MENU, null,
2573 TRANSLATABLE, on_flip_vertically2556 Resources.VFLIP_MENU, on_flip_vertically
2574 };2557 };
2575 vflip.label = Resources.VFLIP_MENU;
2576 actions += vflip;2558 actions += vflip;
25772559
2578 Gtk.ActionEntry enhance = { "Enhance", Resources.ENHANCE, TRANSLATABLE, "<Ctrl>E",2560 Gtk.ActionEntry enhance = { "Enhance", Resources.ENHANCE, Resources.ENHANCE_MENU, "<Ctrl>E",
2579 TRANSLATABLE, on_enhance2561 Resources.ENHANCE_TOOLTIP, on_enhance
2580 };2562 };
2581 enhance.label = Resources.ENHANCE_MENU;
2582 enhance.tooltip = Resources.ENHANCE_TOOLTIP;
2583 actions += enhance;2563 actions += enhance;
25842564
2585 Gtk.ActionEntry copy_adjustments = { "CopyColorAdjustments", null, TRANSLATABLE,2565 Gtk.ActionEntry copy_adjustments = { "CopyColorAdjustments", null, Resources.COPY_ADJUSTMENTS_MENU,
2586 "<Ctrl><Shift>C", TRANSLATABLE, on_copy_adjustments2566 "<Ctrl><Shift>C", Resources.COPY_ADJUSTMENTS_TOOLTIP, on_copy_adjustments
2587 };2567 };
2588 copy_adjustments.label = Resources.COPY_ADJUSTMENTS_MENU;
2589 copy_adjustments.tooltip = Resources.COPY_ADJUSTMENTS_TOOLTIP;
2590 actions += copy_adjustments;2568 actions += copy_adjustments;
25912569
2592 Gtk.ActionEntry paste_adjustments = { "PasteColorAdjustments", null, TRANSLATABLE,2570 Gtk.ActionEntry paste_adjustments = { "PasteColorAdjustments", null, Resources.PASTE_ADJUSTMENTS_MENU,
2593 "<Ctrl><Shift>V", TRANSLATABLE, on_paste_adjustments2571 "<Ctrl><Shift>V", Resources.PASTE_ADJUSTMENTS_TOOLTIP, on_paste_adjustments
2594 };2572 };
2595 paste_adjustments.label = Resources.PASTE_ADJUSTMENTS_MENU;
2596 paste_adjustments.tooltip = Resources.PASTE_ADJUSTMENTS_TOOLTIP;
2597 actions += paste_adjustments;2573 actions += paste_adjustments;
25982574
2599 Gtk.ActionEntry crop = { "Crop", Resources.CROP, TRANSLATABLE, "<Ctrl>O",2575 Gtk.ActionEntry crop = { "Crop", Resources.CROP, Resources.CROP_MENU, "<Ctrl>O",
2600 TRANSLATABLE, toggle_crop2576 Resources.CROP_TOOLTIP, toggle_crop
2601 };2577 };
2602 crop.label = Resources.CROP_MENU;
2603 crop.tooltip = Resources.CROP_TOOLTIP;
2604 actions += crop;2578 actions += crop;
26052579
2606 Gtk.ActionEntry straighten = { "Straighten", null, TRANSLATABLE, "<Ctrl>A",2580 Gtk.ActionEntry straighten = { "Straighten", null, Resources.STRAIGHTEN_MENU, "<Ctrl>A",
2607 TRANSLATABLE, toggle_straighten2581 Resources.STRAIGHTEN_TOOLTIP, toggle_straighten
2608 };2582 };
2609 straighten.label = Resources.STRAIGHTEN_MENU;
2610 straighten.tooltip = Resources.STRAIGHTEN_TOOLTIP;
2611 actions += straighten;2583 actions += straighten;
26122584
2613 Gtk.ActionEntry red_eye = { "RedEye", Resources.REDEYE, TRANSLATABLE, "<Ctrl>Y",2585 Gtk.ActionEntry red_eye = { "RedEye", Resources.REDEYE, Resources.RED_EYE_MENU, "<Ctrl>Y",
2614 TRANSLATABLE, toggle_redeye2586 Resources.RED_EYE_TOOLTIP, toggle_redeye
2615 };2587 };
2616 red_eye.label = Resources.RED_EYE_MENU;
2617 red_eye.tooltip = Resources.RED_EYE_TOOLTIP;
2618 actions += red_eye;2588 actions += red_eye;
26192589
2620 Gtk.ActionEntry adjust = { "Adjust", Resources.ADJUST, TRANSLATABLE, "<Ctrl>D",2590 Gtk.ActionEntry adjust = { "Adjust", Resources.ADJUST, Resources.ADJUST_MENU, "<Ctrl>D",
2621 TRANSLATABLE, toggle_adjust2591 Resources.ADJUST_TOOLTIP, toggle_adjust
2622 };2592 };
2623 adjust.label = Resources.ADJUST_MENU;
2624 adjust.tooltip = Resources.ADJUST_TOOLTIP;
2625 actions += adjust;2593 actions += adjust;
26262594
2627 Gtk.ActionEntry revert = { "Revert", null, TRANSLATABLE,2595 Gtk.ActionEntry revert = { "Revert", null, Resources.REVERT_MENU,
2628 null, TRANSLATABLE, on_revert2596 null, Resources.REVERT_MENU, on_revert
2629 };2597 };
2630 revert.label = Resources.REVERT_MENU;
2631 actions += revert;2598 actions += revert;
26322599
2633 Gtk.ActionEntry adjust_date_time = { "AdjustDateTime", null, TRANSLATABLE, null,2600 Gtk.ActionEntry adjust_date_time = { "AdjustDateTime", null, Resources.ADJUST_DATE_TIME_MENU, null,
2634 TRANSLATABLE, on_adjust_date_time2601 Resources.ADJUST_DATE_TIME_MENU, on_adjust_date_time
2635 };2602 };
2636 adjust_date_time.label = Resources.ADJUST_DATE_TIME_MENU;
2637 actions += adjust_date_time;2603 actions += adjust_date_time;
26382604
2639 Gtk.ActionEntry flag = { "Flag", null, TRANSLATABLE, "<Ctrl>G", TRANSLATABLE, on_flag_unflag };2605 Gtk.ActionEntry flag = { "Flag", null, Resources.FLAG_MENU, "<Ctrl>G", Resources.FLAG_MENU, on_flag_unflag };
2640 flag.label = Resources.FLAG_MENU;
2641 actions += flag;2606 actions += flag;
26422607
2643 Gtk.ActionEntry increase_size = { "IncreaseSize", null, TRANSLATABLE,2608 Gtk.ActionEntry increase_size = { "IncreaseSize", null, _("Zoom _In"),
2644 "<Ctrl>plus", TRANSLATABLE, on_increase_size2609 "<Ctrl>plus", _("Increase the magnification of the photo"), on_increase_size
2645 };2610 };
2646 increase_size.label = _ ("Zoom _In");
2647 increase_size.tooltip = _ ("Increase the magnification of the photo");
2648 actions += increase_size;2611 actions += increase_size;
26492612
2650 Gtk.ActionEntry decrease_size = { "DecreaseSize", null, TRANSLATABLE,2613 Gtk.ActionEntry decrease_size = { "DecreaseSize", null, _("Zoom _Out"),
2651 "<Ctrl>minus", TRANSLATABLE, on_decrease_size2614 "<Ctrl>minus", _("Decrease the magnification of the photo"), on_decrease_size
2652 };2615 };
2653 decrease_size.label = _ ("Zoom _Out");
2654 decrease_size.tooltip = _ ("Decrease the magnification of the photo");
2655 actions += decrease_size;2616 actions += decrease_size;
26562617
2657 Gtk.ActionEntry best_fit = { "ZoomFit", null, TRANSLATABLE,2618 Gtk.ActionEntry best_fit = { "ZoomFit", null, _("Fit to _Page"),
2658 "<Ctrl>0", TRANSLATABLE, snap_zoom_to_min2619 "<Ctrl>0", _("Zoom the photo to fit on the screen"), snap_zoom_to_min
2659 };2620 };
2660 best_fit.label = _ ("Fit to _Page");
2661 best_fit.tooltip = _ ("Zoom the photo to fit on the screen");
2662 actions += best_fit;2621 actions += best_fit;
26632622
2664 Gtk.ActionEntry actual_size = { "Zoom100", null, TRANSLATABLE,2623 /// xgettext:no-c-format
2665 "<Ctrl>1", TRANSLATABLE, snap_zoom_to_isomorphic2624 Gtk.ActionEntry actual_size = { "Zoom100", null, _("Zoom _100%"),
2625 "<Ctrl>1", _("Zoom the photo to 100% magnification"), snap_zoom_to_isomorphic
2666 };2626 };
2667 /// xgettext:no-c-format
2668 actual_size.label = _ ("Zoom _100%");
2669 /// xgettext:no-c-format
2670 actual_size.tooltip = _ ("Zoom the photo to 100% magnification");
2671 actions += actual_size;2627 actions += actual_size;
26722628
2673 Gtk.ActionEntry max_size = { "Zoom200", null, TRANSLATABLE,2629 /// xgettext:no-c-format
2674 "<Ctrl>2", TRANSLATABLE, snap_zoom_to_max2630 Gtk.ActionEntry max_size = { "Zoom200", null, _("Zoom _200%"),
2631 "<Ctrl>2", _("Zoom the photo to 200% magnification"), snap_zoom_to_max
2675 };2632 };
2676 /// xgettext:no-c-format
2677 max_size.label = _ ("Zoom _200%");
2678 /// xgettext:no-c-format
2679 max_size.tooltip = _ ("Zoom the photo to 200% magnification");
2680 actions += max_size;2633 actions += max_size;
26812634
2682 Gtk.ActionEntry slideshow = { "Slideshow", null, TRANSLATABLE, "F5", TRANSLATABLE,2635 Gtk.ActionEntry slideshow = { "Slideshow", null, _("S_lideshow"), "F5", _("Play a slideshow"),
2683 on_slideshow2636 on_slideshow
2684 };2637 };
2685 slideshow.label = _ ("S_lideshow");
2686 slideshow.tooltip = _ ("Play a slideshow");
2687 actions += slideshow;2638 actions += slideshow;
26882639
2689 Gtk.ActionEntry raw_developer = { "RawDeveloper", null, TRANSLATABLE, null, null, null };2640 Gtk.ActionEntry raw_developer = { "RawDeveloper", null, _("_Developer"), null, null, null };
2690 raw_developer.label = _ ("_Developer");
2691 actions += raw_developer;2641 actions += raw_developer;
26922642
2693 Gtk.ActionEntry open_with = { "OpenWith", null, TRANSLATABLE, null, null, null };2643 Gtk.ActionEntry open_with = { "OpenWith", null, Resources.OPEN_WITH_MENU, null, null, null };
2694 open_with.label = Resources.OPEN_WITH_MENU;
2695 actions += open_with;2644 actions += open_with;
26962645
2697 Gtk.ActionEntry open_with_raw = { "OpenWithRaw", null, TRANSLATABLE, null, null, null };2646 Gtk.ActionEntry open_with_raw = { "OpenWithRaw", null, Resources.OPEN_WITH_RAW_MENU, null, null, null };
2698 open_with_raw.label = Resources.OPEN_WITH_RAW_MENU;
2699 actions += open_with_raw;2647 actions += open_with_raw;
27002648
2701 return actions;2649 return actions;
@@ -2723,18 +2671,16 @@
27232671
2724 Gtk.RadioActionEntry[] developer_actions = new Gtk.RadioActionEntry[0];2672 Gtk.RadioActionEntry[] developer_actions = new Gtk.RadioActionEntry[0];
27252673
2726 Gtk.RadioActionEntry dev_shotwell = { "RawDeveloperShotwell", null, TRANSLATABLE, null, TRANSLATABLE,2674 string label_shotwell = RawDeveloper.SHOTWELL.get_label ();
2675 Gtk.RadioActionEntry dev_shotwell = { "RawDeveloperShotwell", null, label_shotwell, null, label_shotwell,
2727 RawDeveloper.SHOTWELL2676 RawDeveloper.SHOTWELL
2728 };2677 };
2729 string label_shotwell = RawDeveloper.SHOTWELL.get_label ();
2730 dev_shotwell.label = label_shotwell;
2731 developer_actions += dev_shotwell;2678 developer_actions += dev_shotwell;
27322679
2733 Gtk.RadioActionEntry dev_camera = { "RawDeveloperCamera", null, TRANSLATABLE, null, TRANSLATABLE,2680 string label_camera = RawDeveloper.CAMERA.get_label ();
2681 Gtk.RadioActionEntry dev_camera = { "RawDeveloperCamera", null, label_camera, null, label_camera,
2734 RawDeveloper.CAMERA2682 RawDeveloper.CAMERA
2735 };2683 };
2736 string label_camera = RawDeveloper.CAMERA.get_label ();
2737 dev_camera.label = label_camera;
2738 developer_actions += dev_camera;2684 developer_actions += dev_camera;
27392685
2740 action_group.add_radio_actions (developer_actions, RawDeveloper.SHOTWELL, on_raw_developer_changed);2686 action_group.add_radio_actions (developer_actions, RawDeveloper.SHOTWELL, on_raw_developer_changed);
27412687
=== modified file 'src/camera/ImportPage.vala'
--- src/camera/ImportPage.vala 2017-01-12 18:13:48 +0000
+++ src/camera/ImportPage.vala 2017-01-26 15:47:05 +0000
@@ -893,11 +893,9 @@
893 protected override Gtk.ToggleActionEntry[] init_collect_toggle_action_entries () {893 protected override Gtk.ToggleActionEntry[] init_collect_toggle_action_entries () {
894 Gtk.ToggleActionEntry[] toggle_actions = base.init_collect_toggle_action_entries ();894 Gtk.ToggleActionEntry[] toggle_actions = base.init_collect_toggle_action_entries ();
895895
896 Gtk.ToggleActionEntry titles = { "ViewTitle", null, TRANSLATABLE, "<Ctrl><Shift>T",896 Gtk.ToggleActionEntry titles = { "ViewTitle", null, _("_Titles"), "<Ctrl><Shift>T",
897 TRANSLATABLE, on_display_titles, Config.Facade.get_instance ().get_display_photo_titles ()897 _("Display the title of each photo"), on_display_titles, Config.Facade.get_instance ().get_display_photo_titles ()
898 };898 };
899 titles.label = _ ("_Titles");
900 titles.tooltip = _ ("Display the title of each photo");
901 toggle_actions += titles;899 toggle_actions += titles;
902900
903 return toggle_actions;901 return toggle_actions;
@@ -907,17 +905,13 @@
907 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();905 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();
908906
909 Gtk.ActionEntry import_selected = { "ImportSelected", Resources.IMPORT,907 Gtk.ActionEntry import_selected = { "ImportSelected", Resources.IMPORT,
910 TRANSLATABLE, null, null, on_import_selected908 _("Import _Selected"), null, _("Import the selected photos into your library"), on_import_selected
911 };909 };
912 import_selected.label = _ ("Import _Selected");
913 import_selected.tooltip = _ ("Import the selected photos into your library");
914 actions += import_selected;910 actions += import_selected;
915911
916 Gtk.ActionEntry import_all = { "ImportAll", Resources.IMPORT_ALL, TRANSLATABLE,912 Gtk.ActionEntry import_all = { "ImportAll", Resources.IMPORT_ALL, _("Import _All"),
917 null, null, on_import_all913 null, _("Import all the photos into your library"), on_import_all
918 };914 };
919 import_all.label = _ ("Import _All");
920 import_all.tooltip = _ ("Import all the photos into your library");
921 actions += import_all;915 actions += import_all;
922916
923 return actions;917 return actions;
924918
=== modified file 'src/direct/DirectPhotoPage.vala'
--- src/direct/DirectPhotoPage.vala 2017-01-15 01:09:26 +0000
+++ src/direct/DirectPhotoPage.vala 2017-01-26 15:47:05 +0000
@@ -56,175 +56,129 @@
56 protected override Gtk.ActionEntry[] init_collect_action_entries () {56 protected override Gtk.ActionEntry[] init_collect_action_entries () {
57 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();57 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();
5858
59 Gtk.ActionEntry file = { "FileMenu", null, TRANSLATABLE, null, null, null };59 Gtk.ActionEntry file = { "FileMenu", null, _("_File"), null, null, null };
60 file.label = _ ("_File");
61 actions += file;60 actions += file;
6261
63 Gtk.ActionEntry save = { "Save", "document-save", TRANSLATABLE, "<Ctrl>S", TRANSLATABLE,62 Gtk.ActionEntry save = { "Save", "document-save", _("_Save"), "<Ctrl>S", _("Save photo"),
64 on_save63 on_save
65 };64 };
66 save.label = _ ("_Save");
67 save.tooltip = _ ("Save photo");
68 actions += save;65 actions += save;
6966
70 Gtk.ActionEntry save_as = { "SaveAs", "document-save-as", TRANSLATABLE,67 Gtk.ActionEntry save_as = { "SaveAs", "document-save-as", _("Save _As..."),
71 "<Ctrl><Shift>S", TRANSLATABLE, on_save_as68 "<Ctrl><Shift>S", _("Save photo with a different name"), on_save_as
72 };69 };
73 save_as.label = _ ("Save _As...");
74 save_as.tooltip = _ ("Save photo with a different name");
75 actions += save_as;70 actions += save_as;
7671
77 Gtk.ActionEntry print = { "Print", null, TRANSLATABLE, "<Ctrl>P",72 Gtk.ActionEntry print = { "Print", null, Resources.PRINT_MENU, "<Ctrl>P",
78 TRANSLATABLE, on_print73 _("Print the photo to a printer connected to your computer"), on_print
79 };74 };
80 print.label = Resources.PRINT_MENU;
81 print.tooltip = _ ("Print the photo to a printer connected to your computer");
82 actions += print;75 actions += print;
8376
84 Gtk.ActionEntry edit = { "EditMenu", null, TRANSLATABLE, null, null, null };77 Gtk.ActionEntry edit = { "EditMenu", null, _("_Edit"), null, null, null };
85 edit.label = _ ("_Edit");
86 actions += edit;78 actions += edit;
8779
88 Gtk.ActionEntry photo = { "PhotoMenu", null, null, null, null, null };80 Gtk.ActionEntry photo = { "PhotoMenu", null, _("_Photo"), null, null, null };
89 photo.label = _ ("_Photo");
90 actions += photo;81 actions += photo;
9182
92 Gtk.ActionEntry tools = { "Tools", null, TRANSLATABLE, null, null, null };83 Gtk.ActionEntry tools = { "Tools", null, _("T_ools"), null, null, null };
93 tools.label = _ ("T_ools");
94 actions += tools;84 actions += tools;
9585
96 Gtk.ActionEntry prev = { "PrevPhoto", null, TRANSLATABLE, null,86 Gtk.ActionEntry prev = { "PrevPhoto", null, _("_Previous Photo"), null,
97 TRANSLATABLE, on_previous_photo87 _("Previous Photo"), on_previous_photo
98 };88 };
99 prev.label = _ ("_Previous Photo");
100 prev.tooltip = _ ("Previous Photo");
101 actions += prev;89 actions += prev;
10290
103 Gtk.ActionEntry next = { "NextPhoto", null, TRANSLATABLE, null,91 Gtk.ActionEntry next = { "NextPhoto", null, _("_Next Photo"), null,
104 TRANSLATABLE, on_next_photo92 _("Next Photo"), on_next_photo
105 };93 };
106 next.label = _ ("_Next Photo");
107 next.tooltip = _ ("Next Photo");
108 actions += next;94 actions += next;
10995
110 Gtk.ActionEntry rotate_right = { "RotateClockwise", Resources.CLOCKWISE,96 Gtk.ActionEntry rotate_right = { "RotateClockwise", Resources.CLOCKWISE,
111 TRANSLATABLE, "<Ctrl>R", TRANSLATABLE, on_rotate_clockwise97 Resources.ROTATE_CW_MENU, "<Ctrl>R", Resources.ROTATE_CCW_TOOLTIP, on_rotate_clockwise
112 };98 };
113 rotate_right.label = Resources.ROTATE_CW_MENU;
114 rotate_right.tooltip = Resources.ROTATE_CCW_TOOLTIP;
115 actions += rotate_right;99 actions += rotate_right;
116100
117 Gtk.ActionEntry rotate_left = { "RotateCounterclockwise", Resources.COUNTERCLOCKWISE,101 Gtk.ActionEntry rotate_left = { "RotateCounterclockwise", Resources.COUNTERCLOCKWISE,
118 TRANSLATABLE, "<Ctrl><Shift>R", TRANSLATABLE, on_rotate_counterclockwise102 Resources.ROTATE_CCW_MENU, "<Ctrl><Shift>R", Resources.ROTATE_CCW_TOOLTIP, on_rotate_counterclockwise
119 };103 };
120 rotate_left.label = Resources.ROTATE_CCW_MENU;
121 rotate_left.tooltip = Resources.ROTATE_CCW_TOOLTIP;
122 actions += rotate_left;104 actions += rotate_left;
123105
124 Gtk.ActionEntry hflip = { "FlipHorizontally", Resources.HFLIP, TRANSLATABLE, null,106 Gtk.ActionEntry hflip = { "FlipHorizontally", Resources.HFLIP, Resources.HFLIP_MENU, null,
125 TRANSLATABLE, on_flip_horizontally107 Resources.HFLIP_MENU, on_flip_horizontally
126 };108 };
127 hflip.label = Resources.HFLIP_MENU;
128 actions += hflip;109 actions += hflip;
129110
130 Gtk.ActionEntry vflip = { "FlipVertically", Resources.VFLIP, TRANSLATABLE, null,111 Gtk.ActionEntry vflip = { "FlipVertically", Resources.VFLIP, Resources.VFLIP_MENU, null,
131 TRANSLATABLE, on_flip_vertically112 Resources.VFLIP_MENU, on_flip_vertically
132 };113 };
133 vflip.label = Resources.VFLIP_MENU;
134 actions += vflip;114 actions += vflip;
135115
136 Gtk.ActionEntry enhance = { "Enhance", Resources.ENHANCE, TRANSLATABLE, "<Ctrl>E",116 Gtk.ActionEntry enhance = { "Enhance", Resources.ENHANCE, Resources.ENHANCE_MENU, "<Ctrl>E",
137 TRANSLATABLE, on_enhance117 Resources.ENHANCE_TOOLTIP, on_enhance
138 };118 };
139 enhance.label = Resources.ENHANCE_MENU;
140 enhance.tooltip = Resources.ENHANCE_TOOLTIP;
141 actions += enhance;119 actions += enhance;
142120
143 Gtk.ActionEntry crop = { "Crop", Resources.CROP, TRANSLATABLE, "<Ctrl>O",121 Gtk.ActionEntry crop = { "Crop", Resources.CROP, Resources.CROP_MENU, "<Ctrl>O",
144 TRANSLATABLE, toggle_crop122 Resources.CROP_TOOLTIP, toggle_crop
145 };123 };
146 crop.label = Resources.CROP_MENU;
147 crop.tooltip = Resources.CROP_TOOLTIP;
148 actions += crop;124 actions += crop;
149125
150 Gtk.ActionEntry straighten = { "Straighten", null, TRANSLATABLE, "<Ctrl>A",126 Gtk.ActionEntry straighten = { "Straighten", null, Resources.STRAIGHTEN_MENU, "<Ctrl>A",
151 TRANSLATABLE, toggle_straighten127 Resources.STRAIGHTEN_TOOLTIP, toggle_straighten
152 };128 };
153 straighten.label = Resources.STRAIGHTEN_MENU;
154 straighten.tooltip = Resources.STRAIGHTEN_TOOLTIP;
155 actions += straighten;129 actions += straighten;
156130
157 Gtk.ActionEntry red_eye = { "RedEye", Resources.REDEYE, TRANSLATABLE, "<Ctrl>Y",131 Gtk.ActionEntry red_eye = { "RedEye", Resources.REDEYE, Resources.RED_EYE_MENU, "<Ctrl>Y",
158 TRANSLATABLE, toggle_redeye132 Resources.RED_EYE_TOOLTIP, toggle_redeye
159 };133 };
160 red_eye.label = Resources.RED_EYE_MENU;
161 red_eye.tooltip = Resources.RED_EYE_TOOLTIP;
162 actions += red_eye;134 actions += red_eye;
163135
164 Gtk.ActionEntry adjust = { "Adjust", Resources.ADJUST, TRANSLATABLE, "<Ctrl>D",136 Gtk.ActionEntry adjust = { "Adjust", Resources.ADJUST, Resources.ADJUST_MENU, "<Ctrl>D",
165 TRANSLATABLE, toggle_adjust137 Resources.ADJUST_TOOLTIP, toggle_adjust
166 };138 };
167 adjust.label = Resources.ADJUST_MENU;
168 adjust.tooltip = Resources.ADJUST_TOOLTIP;
169 actions += adjust;139 actions += adjust;
170140
171 Gtk.ActionEntry revert = { "Revert", null, TRANSLATABLE,141 Gtk.ActionEntry revert = { "Revert", null, Resources.REVERT_MENU,
172 null, TRANSLATABLE, on_revert142 null, Resources.REVERT_MENU, on_revert
173 };143 };
174 revert.label = Resources.REVERT_MENU;
175 actions += revert;144 actions += revert;
176145
177 Gtk.ActionEntry adjust_date_time = { "AdjustDateTime", null, TRANSLATABLE, null,146 Gtk.ActionEntry adjust_date_time = { "AdjustDateTime", null, Resources.ADJUST_DATE_TIME_MENU, null,
178 TRANSLATABLE, on_adjust_date_time147 Resources.ADJUST_DATE_TIME_MENU, on_adjust_date_time
179 };148 };
180 adjust_date_time.label = Resources.ADJUST_DATE_TIME_MENU;
181 actions += adjust_date_time;149 actions += adjust_date_time;
182150
183 Gtk.ActionEntry view = { "ViewMenu", null, TRANSLATABLE, null, null, null };151 Gtk.ActionEntry view = { "ViewMenu", null, _("_View"), null, null, null };
184 view.label = _ ("_View");
185 actions += view;152 actions += view;
186153
187 Gtk.ActionEntry help = { "HelpMenu", null, TRANSLATABLE, null, null, null };154 Gtk.ActionEntry help = { "HelpMenu", null, _("_Help"), null, null, null };
188 help.label = _ ("_Help");
189 actions += help;155 actions += help;
190156
191 Gtk.ActionEntry increase_size = { "IncreaseSize", null, TRANSLATABLE,157 Gtk.ActionEntry increase_size = { "IncreaseSize", null, _("Zoom _In"),
192 "<Ctrl>plus", TRANSLATABLE, on_increase_size158 "<Ctrl>plus", _("Increase the magnification of the photo"), on_increase_size
193 };159 };
194 increase_size.label = _ ("Zoom _In");
195 increase_size.tooltip = _ ("Increase the magnification of the photo");
196 actions += increase_size;160 actions += increase_size;
197161
198 Gtk.ActionEntry decrease_size = { "DecreaseSize", null, TRANSLATABLE,162 Gtk.ActionEntry decrease_size = { "DecreaseSize", null, _("Zoom _Out"),
199 "<Ctrl>minus", TRANSLATABLE, on_decrease_size163 "<Ctrl>minus", _("Decrease the magnification of the photo"), on_decrease_size
200 };164 };
201 decrease_size.label = _ ("Zoom _Out");
202 decrease_size.tooltip = _ ("Decrease the magnification of the photo");
203 actions += decrease_size;165 actions += decrease_size;
204166
205 Gtk.ActionEntry best_fit = { "ZoomFit", null, TRANSLATABLE,167 Gtk.ActionEntry best_fit = { "ZoomFit", null, _("Fit to _Page"),
206 "<Ctrl>0", TRANSLATABLE, snap_zoom_to_min168 "<Ctrl>0", _("Zoom the photo to fit on the screen"), snap_zoom_to_min
207 };169 };
208 best_fit.label = _ ("Fit to _Page");
209 best_fit.tooltip = _ ("Zoom the photo to fit on the screen");
210 actions += best_fit;170 actions += best_fit;
211171
212 Gtk.ActionEntry actual_size = { "Zoom100", null, TRANSLATABLE,172 /// xgettext:no-c-format
213 "<Ctrl>1", TRANSLATABLE, snap_zoom_to_isomorphic173 Gtk.ActionEntry actual_size = { "Zoom100", null, _("Zoom _100%"),
174 "<Ctrl>1", _("Zoom the photo to 100% magnification"), snap_zoom_to_isomorphic
214 };175 };
215 /// xgettext:no-c-format
216 actual_size.label = _ ("Zoom _100%");
217 /// xgettext:no-c-format
218 actual_size.tooltip = _ ("Zoom the photo to 100% magnification");
219 actions += actual_size;176 actions += actual_size;
220177
221 Gtk.ActionEntry max_size = { "Zoom200", null, TRANSLATABLE,178 /// xgettext:no-c-format
222 "<Ctrl>2", TRANSLATABLE, snap_zoom_to_max179 Gtk.ActionEntry max_size = { "Zoom200", null, _("Zoom _200%"),
180 "<Ctrl>2", _("Zoom the photo to 200% magnification"), snap_zoom_to_max
223 };181 };
224 /// xgettext:no-c-format
225 max_size.label = _ ("Zoom _200%");
226 /// xgettext:no-c-format
227 max_size.tooltip = _ ("Zoom the photo to 200% magnification");
228 actions += max_size;182 actions += max_size;
229183
230 return actions;184 return actions;
231185
=== modified file 'src/events/EventPage.vala'
--- src/events/EventPage.vala 2017-01-12 18:13:48 +0000
+++ src/events/EventPage.vala 2017-01-26 15:47:05 +0000
@@ -64,13 +64,11 @@
64 Gtk.ActionEntry[] new_actions = base.init_collect_action_entries ();64 Gtk.ActionEntry[] new_actions = base.init_collect_action_entries ();
6565
66 Gtk.ActionEntry make_primary = { "MakePrimary", null,66 Gtk.ActionEntry make_primary = { "MakePrimary", null,
67 TRANSLATABLE, null, TRANSLATABLE, on_make_primary67 Resources.MAKE_KEY_PHOTO_MENU, null, Resources.MAKE_KEY_PHOTO_MENU, on_make_primary
68 };68 };
69 make_primary.label = Resources.MAKE_KEY_PHOTO_MENU;
70 new_actions += make_primary;69 new_actions += make_primary;
7170
72 Gtk.ActionEntry rename = { "Rename", null, TRANSLATABLE, null, TRANSLATABLE, on_rename };71 Gtk.ActionEntry rename = { "Rename", null, Resources.RENAME_EVENT_MENU, null, Resources.RENAME_EVENT_MENU, on_rename };
73 rename.label = Resources.RENAME_EVENT_MENU;
74 new_actions += rename;72 new_actions += rename;
7573
76 return new_actions;74 return new_actions;
7775
=== modified file 'src/events/EventsDirectoryPage.vala'
--- src/events/EventsDirectoryPage.vala 2017-01-12 18:13:48 +0000
+++ src/events/EventsDirectoryPage.vala 2017-01-26 15:47:05 +0000
@@ -140,14 +140,12 @@
140 protected override Gtk.ActionEntry[] init_collect_action_entries () {140 protected override Gtk.ActionEntry[] init_collect_action_entries () {
141 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();141 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();
142142
143 Gtk.ActionEntry rename = { "Rename", null, TRANSLATABLE, "F2", TRANSLATABLE, on_rename };143 Gtk.ActionEntry rename = { "Rename", null, Resources.RENAME_EVENT_MENU, "F2", Resources.RENAME_EVENT_MENU, on_rename };
144 rename.label = Resources.RENAME_EVENT_MENU;
145 actions += rename;144 actions += rename;
146145
147 Gtk.ActionEntry merge = { "Merge", Resources.MERGE, TRANSLATABLE, null, Resources.MERGE_TOOLTIP,146 Gtk.ActionEntry merge = { "Merge", Resources.MERGE, Resources.MERGE_MENU, null, Resources.MERGE_TOOLTIP,
148 on_merge147 on_merge
149 };148 };
150 merge.label = Resources.MERGE_MENU;
151 actions += merge;149 actions += merge;
152150
153 return actions;151 return actions;
@@ -156,11 +154,9 @@
156 protected override Gtk.ToggleActionEntry[] init_collect_toggle_action_entries () {154 protected override Gtk.ToggleActionEntry[] init_collect_toggle_action_entries () {
157 Gtk.ToggleActionEntry[] toggle_actions = base.init_collect_toggle_action_entries ();155 Gtk.ToggleActionEntry[] toggle_actions = base.init_collect_toggle_action_entries ();
158156
159 Gtk.ToggleActionEntry comments = { "ViewComment", null, TRANSLATABLE, "<Ctrl><Shift>C",157 Gtk.ToggleActionEntry comments = { "ViewComment", null, _("_Comments"), "<Ctrl><Shift>C",
160 TRANSLATABLE, on_display_comments, Config.Facade.get_instance ().get_display_event_comments ()158 _("Display the comment of each event"), on_display_comments, Config.Facade.get_instance ().get_display_event_comments ()
161 };159 };
162 comments.label = _ ("_Comments");
163 comments.tooltip = _ ("Display the comment of each event");
164 toggle_actions += comments;160 toggle_actions += comments;
165161
166 return toggle_actions;162 return toggle_actions;
167163
=== modified file 'src/library/ImportQueuePage.vala'
--- src/library/ImportQueuePage.vala 2017-01-12 18:13:48 +0000
+++ src/library/ImportQueuePage.vala 2017-01-26 15:47:05 +0000
@@ -72,11 +72,9 @@
72 protected override Gtk.ActionEntry[] init_collect_action_entries () {72 protected override Gtk.ActionEntry[] init_collect_action_entries () {
73 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();73 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();
7474
75 Gtk.ActionEntry stop = { "Stop", null, TRANSLATABLE, null, TRANSLATABLE,75 Gtk.ActionEntry stop = { "Stop", null, _("_Stop Import"), null, _("Stop importing photos"),
76 on_stop76 on_stop
77 };77 };
78 stop.label = _ ("_Stop Import");
79 stop.tooltip = _ ("Stop importing photos");
80 actions += stop;78 actions += stop;
8179
82 return actions;80 return actions;
8381
=== modified file 'src/library/LibraryWindow.vala'
--- src/library/LibraryWindow.vala 2017-01-12 18:13:48 +0000
+++ src/library/LibraryWindow.vala 2017-01-26 15:47:05 +0000
@@ -300,78 +300,61 @@
300 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];300 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];
301301
302 Gtk.ActionEntry import = { "CommonFileImport", Resources.IMPORT,302 Gtk.ActionEntry import = { "CommonFileImport", Resources.IMPORT,
303 TRANSLATABLE, "<Ctrl>I", TRANSLATABLE, on_file_import303 _("_Import From Folder…"), "<Ctrl>I", _("Import photos from disk to library"), on_file_import
304 };304 };
305 import.label = _ ("_Import From Folder…");
306 import.tooltip = _ ("Import photos from disk to library");
307 actions += import;305 actions += import;
308306
309 Gtk.ActionEntry sort = { "CommonSortEvents", null, TRANSLATABLE, null, null, null };307 Gtk.ActionEntry sort = { "CommonSortEvents", null, _("Sort _Events"), null, null, null };
310 sort.label = _ ("Sort _Events");
311 actions += sort;308 actions += sort;
312309
313 Gtk.ActionEntry preferences = { "CommonPreferences", null, TRANSLATABLE,310 Gtk.ActionEntry preferences = { "CommonPreferences", null, Resources.PREFERENCES_MENU,
314 null, TRANSLATABLE, on_preferences311 null, Resources.PREFERENCES_MENU, on_preferences
315 };312 };
316 preferences.label = Resources.PREFERENCES_MENU;
317 actions += preferences;313 actions += preferences;
318314
319 Gtk.ActionEntry empty = { "CommonEmptyTrash", null, TRANSLATABLE, null, TRANSLATABLE,315 Gtk.ActionEntry empty = { "CommonEmptyTrash", null, _("_Empty Trash"), null, _("Delete all photos in the trash"),
320 on_empty_trash316 on_empty_trash
321 };317 };
322 empty.label = _ ("_Empty Trash");
323 empty.tooltip = _ ("Delete all photos in the trash");
324 actions += empty;318 actions += empty;
325319
326 Gtk.ActionEntry jump_to_event = { "CommonJumpToEvent", null, TRANSLATABLE, null,320 Gtk.ActionEntry jump_to_event = { "CommonJumpToEvent", null, _("View Eve_nt for Photo"), null,
327 TRANSLATABLE, on_jump_to_event321 _("View Eve_nt for Photo"), on_jump_to_event
328 };322 };
329 jump_to_event.label = _ ("View Eve_nt for Photo");
330 actions += jump_to_event;323 actions += jump_to_event;
331324
332 Gtk.ActionEntry find = { "CommonFind", null, TRANSLATABLE, null, null,325 Gtk.ActionEntry find = { "CommonFind", null, _("_Find"), null, _("Find photos and videos by search criteria"),
333 on_find326 on_find
334 };327 };
335 find.label = _ ("_Find");
336 find.tooltip = _ ("Find photos and videos by search criteria");
337 actions += find;328 actions += find;
338329
339 // add the common action for the FilterPhotos submenu (the submenu contains items from330 // add the common action for the FilterPhotos submenu (the submenu contains items from
340 // SearchFilterActions)331 // SearchFilterActions)
341 Gtk.ActionEntry filter_photos = { "CommonFilterPhotos", null, TRANSLATABLE, null, null, null };332 Gtk.ActionEntry filter_photos = { "CommonFilterPhotos", null, Resources.FILTER_PHOTOS_MENU, null, null, null };
342 filter_photos.label = Resources.FILTER_PHOTOS_MENU;
343 actions += filter_photos;333 actions += filter_photos;
344334
345 Gtk.ActionEntry new_search = { "CommonNewSearch", null, TRANSLATABLE, "<Ctrl>S", null,335 Gtk.ActionEntry new_search = { "CommonNewSearch", null, _("New Smart Album…"), "<Ctrl>S", null,
346 on_new_search336 on_new_search
347 };337 };
348 new_search.label = _ ("New Smart Album…");
349 actions += new_search;338 actions += new_search;
350339
351 // top-level menus340 // top-level menus
352341
353 Gtk.ActionEntry file = { "FileMenu", null, TRANSLATABLE, null, null, null };342 Gtk.ActionEntry file = { "FileMenu", null, _("_File"), null, null, null };
354 file.label = _ ("_File");
355 actions += file;343 actions += file;
356344
357 Gtk.ActionEntry edit = { "EditMenu", null, TRANSLATABLE, null, null, null };345 Gtk.ActionEntry edit = { "EditMenu", null, _("_Edit"), null, null, null };
358 edit.label = _ ("_Edit");
359 actions += edit;346 actions += edit;
360347
361 Gtk.ActionEntry photo = { "PhotoMenu", null, TRANSLATABLE, null, null, null };348 Gtk.ActionEntry photo = { "PhotoMenu", null, _("_Photo"), null, null, null };
362 photo.label = _ ("_Photo");
363 actions += photo;349 actions += photo;
364350
365 Gtk.ActionEntry photos = { "PhotosMenu", null, TRANSLATABLE, null, null, null };351 Gtk.ActionEntry photos = { "PhotosMenu", null, _("_Photos"), null, null, null };
366 photos.label = _ ("_Photos");
367 actions += photos;352 actions += photos;
368353
369 Gtk.ActionEntry tags = { "TagsMenu", null, TRANSLATABLE, null, null, null };354 Gtk.ActionEntry tags = { "TagsMenu", null, _("Ta_gs"), null, null, null };
370 tags.label = _ ("Ta_gs");
371 actions += tags;355 actions += tags;
372356
373 Gtk.ActionEntry help = { "HelpMenu", null, TRANSLATABLE, null, null, null };357 Gtk.ActionEntry help = { "HelpMenu", null, _("_Help"), null, null, null };
374 help.label = _ ("_Help");
375 actions += help;358 actions += help;
376359
377 return actions;360 return actions;
@@ -385,17 +368,14 @@
385 };368 };
386 actions += searchbar;369 actions += searchbar;
387370
388 Gtk.ToggleActionEntry sidebar = { "CommonDisplaySidebar", null, TRANSLATABLE,371 Gtk.ToggleActionEntry sidebar = { "CommonDisplaySidebar", null, _("S_idebar"),
389 "F9", TRANSLATABLE, on_display_sidebar, is_sidebar_visible ()372 "F9", _("Display the sidebar"), on_display_sidebar, is_sidebar_visible ()
390 };373 };
391 sidebar.label = _ ("S_idebar");
392 sidebar.tooltip = _ ("Display the sidebar");
393 actions += sidebar;374 actions += sidebar;
394375
395 Gtk.ToggleActionEntry meta_sidebar = { "CommonDisplayMetadataSidebar", null, TRANSLATABLE,376 Gtk.ToggleActionEntry meta_sidebar = { "CommonDisplayMetadataSidebar", null, _("Edit Photo In_fo"),
396 "F10", TRANSLATABLE, on_display_metadata_sidebar, is_metadata_sidebar_visible ()377 "F10", _("Edit Photo In_fo"), on_display_metadata_sidebar, is_metadata_sidebar_visible ()
397 };378 };
398 meta_sidebar.label = _ ("Edit Photo In_fo");
399 actions += meta_sidebar;379 actions += meta_sidebar;
400380
401 return actions;381 return actions;
@@ -405,19 +385,15 @@
405 Gtk.RadioActionEntry[] actions = new Gtk.RadioActionEntry[0];385 Gtk.RadioActionEntry[] actions = new Gtk.RadioActionEntry[0];
406386
407 Gtk.RadioActionEntry ascending = { "CommonSortEventsAscending",387 Gtk.RadioActionEntry ascending = { "CommonSortEventsAscending",
408 null, TRANSLATABLE, null, TRANSLATABLE,388 null, _("_Ascending"), null, _("Sort photos in an ascending order"),
409 SORT_EVENTS_ORDER_ASCENDING389 SORT_EVENTS_ORDER_ASCENDING
410 };390 };
411 ascending.label = _ ("_Ascending");
412 ascending.tooltip = _ ("Sort photos in an ascending order");
413 actions += ascending;391 actions += ascending;
414392
415 Gtk.RadioActionEntry descending = { "CommonSortEventsDescending",393 Gtk.RadioActionEntry descending = { "CommonSortEventsDescending",
416 null, TRANSLATABLE, null, TRANSLATABLE,394 null, _("D_escending"), null, _("Sort photos in a descending order"),
417 SORT_EVENTS_ORDER_DESCENDING395 SORT_EVENTS_ORDER_DESCENDING
418 };396 };
419 descending.label = _ ("D_escending");
420 descending.tooltip = _ ("Sort photos in a descending order");
421 actions += descending;397 actions += descending;
422398
423 group.add_radio_actions (actions, SORT_EVENTS_ORDER_ASCENDING, on_events_sort_changed);399 group.add_radio_actions (actions, SORT_EVENTS_ORDER_ASCENDING, on_events_sort_changed);
424400
=== modified file 'src/library/OfflinePage.vala'
--- src/library/OfflinePage.vala 2017-01-12 18:13:48 +0000
+++ src/library/OfflinePage.vala 2017-01-26 15:47:05 +0000
@@ -69,11 +69,9 @@
69 protected override Gtk.ActionEntry[] init_collect_action_entries () {69 protected override Gtk.ActionEntry[] init_collect_action_entries () {
70 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();70 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();
7171
72 Gtk.ActionEntry remove = { "RemoveFromLibrary", null, TRANSLATABLE, "Delete",72 Gtk.ActionEntry remove = { "RemoveFromLibrary", null, Resources.REMOVE_FROM_LIBRARY_MENU, "Delete",
73 TRANSLATABLE, on_remove_from_library73 Resources.DELETE_FROM_LIBRARY_TOOLTIP, on_remove_from_library
74 };74 };
75 remove.label = Resources.REMOVE_FROM_LIBRARY_MENU;
76 remove.tooltip = Resources.DELETE_FROM_LIBRARY_TOOLTIP;
77 actions += remove;75 actions += remove;
7876
79 return actions;77 return actions;
8078
=== modified file 'src/library/TrashPage.vala'
--- src/library/TrashPage.vala 2017-01-12 18:13:48 +0000
+++ src/library/TrashPage.vala 2017-01-26 15:47:05 +0000
@@ -121,18 +121,14 @@
121 protected override Gtk.ActionEntry[] init_collect_action_entries () {121 protected override Gtk.ActionEntry[] init_collect_action_entries () {
122 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();122 Gtk.ActionEntry[] actions = base.init_collect_action_entries ();
123123
124 Gtk.ActionEntry delete_action = { "Delete", null, TRANSLATABLE, "Delete",124 Gtk.ActionEntry delete_action = { "Delete", null, Resources.DELETE_PHOTOS_MENU, "Delete",
125 TRANSLATABLE, on_delete125 Resources.DELETE_FROM_TRASH_TOOLTIP, on_delete
126 };126 };
127 delete_action.label = Resources.DELETE_PHOTOS_MENU;
128 delete_action.tooltip = Resources.DELETE_FROM_TRASH_TOOLTIP;
129 actions += delete_action;127 actions += delete_action;
130128
131 Gtk.ActionEntry restore = { "Restore", null, TRANSLATABLE, "Restore", TRANSLATABLE,129 Gtk.ActionEntry restore = { "Restore", null, Resources.RESTORE_PHOTOS_MENU, "Restore", Resources.RESTORE_PHOTOS_TOOLTIP,
132 on_restore130 on_restore
133 };131 };
134 restore.label = Resources.RESTORE_PHOTOS_MENU;
135 restore.tooltip = Resources.RESTORE_PHOTOS_TOOLTIP;
136 actions += restore;132 actions += restore;
137133
138 return actions;134 return actions;
139135
=== modified file 'src/searches/Branch.vala'
--- src/searches/Branch.vala 2017-01-12 18:13:48 +0000
+++ src/searches/Branch.vala 2017-01-26 15:47:05 +0000
@@ -86,8 +86,7 @@
86 Gtk.ActionGroup group = new Gtk.ActionGroup ("SidebarDefault");86 Gtk.ActionGroup group = new Gtk.ActionGroup ("SidebarDefault");
87 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];87 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];
8888
89 Gtk.ActionEntry new_search = { "CommonNewSearch", null, TRANSLATABLE, null, null, on_new_search };89 Gtk.ActionEntry new_search = { "CommonNewSearch", null, _("New Smart Album…"), null, null, on_new_search };
90 new_search.label = _ ("New Smart Album…");
91 actions += new_search;90 actions += new_search;
9291
93 group.add_actions (actions, this);92 group.add_actions (actions, this);
9493
=== modified file 'src/sidebar/Tree.vala'
--- src/sidebar/Tree.vala 2017-01-12 18:13:48 +0000
+++ src/sidebar/Tree.vala 2017-01-26 15:47:05 +0000
@@ -206,12 +206,10 @@
206 Gtk.ActionGroup group = new Gtk.ActionGroup ("SidebarDefault");206 Gtk.ActionGroup group = new Gtk.ActionGroup ("SidebarDefault");
207 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];207 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];
208208
209 Gtk.ActionEntry new_search = { "CommonNewSearch", null, TRANSLATABLE, null, null, on_new_search };209 Gtk.ActionEntry new_search = { "CommonNewSearch", null, _("New Smart Album…"), null, null, on_new_search };
210 new_search.label = _ ("New Smart Album…");
211 actions += new_search;210 actions += new_search;
212211
213 Gtk.ActionEntry new_tag = { "CommonNewTag", null, TRANSLATABLE, null, null, on_new_tag };212 Gtk.ActionEntry new_tag = { "CommonNewTag", null, _("New _Tag..."), null, null, on_new_tag };
214 new_tag.label = _ ("New _Tag...");
215 actions += new_tag;213 actions += new_tag;
216214
217 group.add_actions (actions, this);215 group.add_actions (actions, this);
218216
=== modified file 'src/tags/Branch.vala'
--- src/tags/Branch.vala 2017-01-12 18:13:48 +0000
+++ src/tags/Branch.vala 2017-01-26 15:47:05 +0000
@@ -145,8 +145,7 @@
145 Gtk.ActionGroup group = new Gtk.ActionGroup ("SidebarDefault");145 Gtk.ActionGroup group = new Gtk.ActionGroup ("SidebarDefault");
146 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];146 Gtk.ActionEntry[] actions = new Gtk.ActionEntry[0];
147147
148 Gtk.ActionEntry new_tag = { "CommonNewTag", null, TRANSLATABLE, null, null, on_new_tag };148 Gtk.ActionEntry new_tag = { "CommonNewTag", null, Resources.NEW_CHILD_TAG_SIDEBAR_MENU, null, null, on_new_tag };
149 new_tag.label = Resources.NEW_CHILD_TAG_SIDEBAR_MENU;
150 actions += new_tag;149 actions += new_tag;
151150
152 group.add_actions (actions, this);151 group.add_actions (actions, this);

Subscribers

People subscribed via source and target branches

to all changes: