alias gettext to darktable.gettext.gettext then change the call to gettext

to only pass the message to be translated
This commit is contained in:
Bill Ferguson
2024-10-17 22:17:38 -04:00
parent 0e37a287ca
commit 44da339202
9 changed files with 16 additions and 17 deletions

View File

@@ -25,12 +25,12 @@ For each source folder, a separate <trk> is generated in the gpx file.
local dt = require "darktable"
local df = require "lib/dtutils.file"
local dl = require "lib/dtutils"
local gettext = dt.gettext
local gettext = dt.gettext.gettext
dl.check_min_api_version("7.0.0", "gpx_export")
local function _(msgid)
return gettext.dgettext("gpx_export", msgid)
return gettext(msgid)
end
-- return data structure for script_manager