Merge pull request #537 from darktable-org/fix_collection_selection_strings_for_translation
Make strings translation safe
This commit is contained in:
@@ -186,7 +186,7 @@ dt.register_event(MODULE .. "_collect", "shortcut",
|
|||||||
local images = dt.collection
|
local images = dt.collection
|
||||||
make_existing_hif_group_leader(images)
|
make_existing_hif_group_leader(images)
|
||||||
end,
|
end,
|
||||||
string.format(_("make hif group leader for %s", _("collection")))
|
_("make hif group leader for collection")
|
||||||
)
|
)
|
||||||
|
|
||||||
dt.register_event(MODULE .. "_select", "shortcut",
|
dt.register_event(MODULE .. "_select", "shortcut",
|
||||||
@@ -194,7 +194,7 @@ dt.register_event(MODULE .. "_select", "shortcut",
|
|||||||
local images = dt.gui.selection()
|
local images = dt.gui.selection()
|
||||||
make_existing_hif_group_leader(images)
|
make_existing_hif_group_leader(images)
|
||||||
end,
|
end,
|
||||||
string.format(_("make hif group leader for %s", _("selection")))
|
_("make hif group leader for selection")
|
||||||
)
|
)
|
||||||
|
|
||||||
return script_data
|
return script_data
|
||||||
@@ -186,7 +186,7 @@ dt.register_event(MODULE .. "_collect", "shortcut",
|
|||||||
local images = dt.collection
|
local images = dt.collection
|
||||||
make_existing_jpg_group_leader(images)
|
make_existing_jpg_group_leader(images)
|
||||||
end,
|
end,
|
||||||
string.format(_("make jpg group leader for %s", _("collection")))
|
_("make jpg group leader for collection")
|
||||||
)
|
)
|
||||||
|
|
||||||
dt.register_event(MODULE .. "_select", "shortcut",
|
dt.register_event(MODULE .. "_select", "shortcut",
|
||||||
@@ -194,7 +194,7 @@ dt.register_event(MODULE .. "_select", "shortcut",
|
|||||||
local images = dt.gui.selection()
|
local images = dt.gui.selection()
|
||||||
make_existing_jpg_group_leader(images)
|
make_existing_jpg_group_leader(images)
|
||||||
end,
|
end,
|
||||||
string.format(_("make jpg group leader for %s", _("selection")))
|
_("make jpg group leader for selection")
|
||||||
)
|
)
|
||||||
|
|
||||||
return script_data
|
return script_data
|
||||||
@@ -463,18 +463,16 @@ script_data.destroy = destroy
|
|||||||
-- E V E N T S
|
-- E V E N T S
|
||||||
-- - - - - - - - - - - - - - - - - - - - - - - -
|
-- - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
local shortcut_string = _("apply darktable camera styles to %s")
|
|
||||||
|
|
||||||
dt.register_event(MODULE, "shortcut",
|
dt.register_event(MODULE, "shortcut",
|
||||||
function(event, shortcut)
|
function(event, shortcut)
|
||||||
apply_camera_style(true)
|
apply_camera_style(true)
|
||||||
end, string.format(shortcut_string, _("collection"))
|
end, _("apply darktable camera styles to collection")
|
||||||
)
|
)
|
||||||
|
|
||||||
dt.register_event(MODULE, "shortcut",
|
dt.register_event(MODULE, "shortcut",
|
||||||
function(event, shortcut)
|
function(event, shortcut)
|
||||||
apply_camera_style(false)
|
apply_camera_style(false)
|
||||||
end, string.format(shortcut_string, _("selection"))
|
end, _("apply darktable camera styles to selection")
|
||||||
)
|
)
|
||||||
|
|
||||||
dt.register_event(MODULE, "post-import-image",
|
dt.register_event(MODULE, "post-import-image",
|
||||||
|
|||||||
Reference in New Issue
Block a user