examples/*.lua - cleaned up translatable messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user