updated contrib scripts to use darktable translation facilities

This commit is contained in:
Bill Ferguson
2024-01-20 20:22:32 -05:00
parent 37dba718a2
commit 66b33d6f48
41 changed files with 224 additions and 279 deletions

View File

@@ -62,13 +62,10 @@ qt.module_installed = false
qt.event_registered = false
qt.widget_table = {}
local gettext = dt.gettext
-- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("quicktag",dt.configuration.config_dir.."/lua/locale/")
local gettext = dt.gettext.gettext
local function _(msgid)
return gettext.dgettext("quicktag", msgid)
return gettext(msgid)
end
-- maximum length of button labels