From 36a6a54364fc96de015613795d471ccaa29e4d45 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Tue, 17 Sep 2024 18:29:05 -0400 Subject: [PATCH] official/apply_camera_string - clean up translatable strings --- official/apply_camera_style.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/official/apply_camera_style.lua b/official/apply_camera_style.lua index 963586a..a72c821 100644 --- a/official/apply_camera_style.lua +++ b/official/apply_camera_style.lua @@ -463,16 +463,18 @@ script_data.destroy = destroy -- E V E N T S -- - - - - - - - - - - - - - - - - - - - - - - - +local shortcut_string = _("apply darktable camera styles to %s") + dt.register_event(MODULE, "shortcut", function(event, shortcut) apply_camera_style(true) - end, _("apply darktable camera styles to collection") + end, string.format(shortcut_string, _("collection")) ) dt.register_event(MODULE, "shortcut", function(event, shortcut) apply_camera_style(false) - end, _("apply darktable camera styles to selection") + end, string.format(shortcut_string, _("selection")) ) dt.register_event(MODULE, "post-import-image",