fixed translatable strings for inclusion into darktable

This commit is contained in:
Bill Ferguson
2024-08-08 19:43:33 -04:00
parent cc11c1c3b8
commit 46e729b40e
9 changed files with 24 additions and 22 deletions

View File

@@ -93,6 +93,8 @@ local function destroy()
dt.destroy_event("rg5", "shortcut")
end
local rate_group = _("rate group")
dt.register_event("rg_reject", "shortcut",
function(event, shortcut)
apply_rating(-1)
@@ -101,32 +103,32 @@ end, _("reject group"))
dt.register_event("rg0", "shortcut",
function(event, shortcut)
apply_rating(0)
end, _("rate group 0"))
end, rate group .. " 0")
dt.register_event("rg1", "shortcut",
function(event, shortcut)
apply_rating(1)
end, _("rate group 1"))
end, rate group .. " 1")
dt.register_event("rg2", "shortcut",
function(event, shortcut)
apply_rating(2)
end, _("rate group 2"))
end, rate group .. " 2")
dt.register_event("rg3", "shortcut",
function(event, shortcut)
apply_rating(3)
end, _("rate group 3"))
end, rate group .. " 3")
dt.register_event("rg4", "shortcut",
function(event, shortcut)
apply_rating(4)
end, _("rate group 4"))
end, rate group .. " 4")
dt.register_event("rg5", "shortcut",
function(event, shortcut)
apply_rating(5)
end, _("rate group 5"))
end, rate group .. " 5")
script_data.destroy = destroy