Skip to content

Commit 96b7ba2

Browse files
committed
official/apply_camera_style - make the translatable strings
contrib/hif_group_leader translation safe contrib/jpg_group_leader
1 parent ab532a7 commit 96b7ba2

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

contrib/hif_group_leader.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,15 @@ dt.register_event(MODULE .. "_collect", "shortcut",
186186
local images = dt.collection
187187
make_existing_hif_group_leader(images)
188188
end,
189-
string.format(_("make hif group leader for %s", _("collection")))
189+
_("make hif group leader for collection")
190190
)
191191

192192
dt.register_event(MODULE .. "_select", "shortcut",
193193
function(event, shortcut)
194194
local images = dt.gui.selection()
195195
make_existing_hif_group_leader(images)
196196
end,
197-
string.format(_("make hif group leader for %s", _("selection")))
197+
_("make hif group leader for selection")
198198
)
199199

200200
return script_data

contrib/jpg_group_leader.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,15 @@ dt.register_event(MODULE .. "_collect", "shortcut",
186186
local images = dt.collection
187187
make_existing_jpg_group_leader(images)
188188
end,
189-
string.format(_("make jpg group leader for %s", _("collection")))
189+
_("make jpg group leader for collection")
190190
)
191191

192192
dt.register_event(MODULE .. "_select", "shortcut",
193193
function(event, shortcut)
194194
local images = dt.gui.selection()
195195
make_existing_jpg_group_leader(images)
196196
end,
197-
string.format(_("make jpg group leader for %s", _("selection")))
197+
_("make jpg group leader for selection")
198198
)
199199

200200
return script_data

official/apply_camera_style.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,18 +463,16 @@ script_data.destroy = destroy
463463
-- E V E N T S
464464
-- - - - - - - - - - - - - - - - - - - - - - - -
465465

466-
local shortcut_string = _("apply darktable camera styles to %s")
467-
468466
dt.register_event(MODULE, "shortcut",
469467
function(event, shortcut)
470468
apply_camera_style(true)
471-
end, string.format(shortcut_string, _("collection"))
469+
end, _("apply darktable camera styles to collection")
472470
)
473471

474472
dt.register_event(MODULE, "shortcut",
475473
function(event, shortcut)
476474
apply_camera_style(false)
477-
end, string.format(shortcut_string, _("selection"))
475+
end, _("apply darktable camera styles to selection")
478476
)
479477

480478
dt.register_event(MODULE, "post-import-image",

0 commit comments

Comments
 (0)