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

@@ -3,11 +3,12 @@ local dtutils_string = {}
local dt = require "darktable"
local du = require "lib/dtutils"
local log = require "lib/dtutils.log"
local gettext = dt.gettext.gettext
local DEFAULT_LOG_LEVEL = log.error
local function _(msg)
return dt.gettext.gettext(msg)
return gettext(msg)
end
dtutils_string.log_level = DEFAULT_LOG_LEVEL