examples/*.lua - cleaned up translatable messages

This commit is contained in:
Bill Ferguson
2024-09-10 21:19:37 -04:00
parent abdfc9de0b
commit ce7ddfa472
12 changed files with 46 additions and 68 deletions

View File

@@ -27,8 +27,6 @@ local dt = require "darktable"
local gettext = dt.gettext.gettext
dt.gettext.bindtextdomain("api_version", dt.configuration.config_dir .."/lua/locale/")
local function _(msg)
return gettext(msg)
end
@@ -41,7 +39,7 @@ end
local result = dt.configuration.api_version_string
dt.print_log("API Version: " .. result)
dt.print(string.format(_("API version: %s"), result))
dt.print("API " .. _("version") .. ": " .. result)
-- set the destroy routine so that script_manager can call it when
-- it's time to destroy the script and then return the data to