updated example scripts to use darktable translation facilities
This commit is contained in:
@@ -47,12 +47,10 @@ script_data.show = nil -- only required for libs since the destroy_method only h
|
||||
-- translation
|
||||
|
||||
-- https://www.darktable.org/lua-api/index.html#darktable_gettext
|
||||
local gettext = dt.gettext
|
||||
|
||||
gettext.bindtextdomain("moduleExample", dt.configuration.config_dir .. "/lua/locale/")
|
||||
local gettext = dt.gettext.gettext
|
||||
|
||||
local function _(msgid)
|
||||
return gettext.dgettext("moduleExample", msgid)
|
||||
return gettext(msgid)
|
||||
end
|
||||
|
||||
-- declare a local namespace and a couple of variables we'll need to install the module
|
||||
|
||||
Reference in New Issue
Block a user