contrib/[p-z]*.lua - cleaned up translatable strings
This commit is contained in:
@@ -68,8 +68,6 @@ du.check_min_api_version("7.0.0", MODULE_NAME)
|
|||||||
-- translation
|
-- translation
|
||||||
local gettext = dt.gettext.gettext
|
local gettext = dt.gettext.gettext
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("RL_out_sharp", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -41,8 +41,6 @@ local gettext = dt.gettext.gettext
|
|||||||
|
|
||||||
du.check_min_api_version("2.0.0", "passport_guide")
|
du.check_min_api_version("2.0.0", "passport_guide")
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("passport_guide", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ local gettext = dt.gettext
|
|||||||
du.check_min_api_version("2.0.0", "passport_guide_germany")
|
du.check_min_api_version("2.0.0", "passport_guide_germany")
|
||||||
|
|
||||||
-- Tell gettext where to find the .mo file translating messages for a particular domain
|
-- Tell gettext where to find the .mo file translating messages for a particular domain
|
||||||
dt.gettext.bindtextdomain("passport_guide_germany",dt.configuration.config_dir.."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext.dgettext("passport_guide_germany", msgid)
|
return gettext.dgettext("passport_guide_germany", msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -44,8 +44,6 @@ local df = require "lib/dtutils.file"
|
|||||||
|
|
||||||
local gettext = dt.gettext.gettext
|
local gettext = dt.gettext.gettext
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("pdf_slideshow", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ local MODULE_NAME = "photils"
|
|||||||
du.check_min_api_version("7.0.0", MODULE_NAME)
|
du.check_min_api_version("7.0.0", MODULE_NAME)
|
||||||
|
|
||||||
local gettext = dt.gettext.gettext
|
local gettext = dt.gettext.gettext
|
||||||
dt.gettext.bindtextdomain("photils", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
@@ -339,7 +338,7 @@ function PHOTILS.on_tags_clicked()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if #PHOTILS.tags == 0 then
|
if #PHOTILS.tags == 0 then
|
||||||
local msg = string.format(_("no tags where found"), MODULE_NAME)
|
local msg = string.format(_("no tags were found"), MODULE_NAME)
|
||||||
GUI.warning_label.label = msg
|
GUI.warning_label.label = msg
|
||||||
GUI.stack.active = GUI.error_view
|
GUI.stack.active = GUI.error_view
|
||||||
return
|
return
|
||||||
@@ -394,7 +393,7 @@ end
|
|||||||
local function install_module()
|
local function install_module()
|
||||||
if not PHOTILS.module_installed then
|
if not PHOTILS.module_installed then
|
||||||
dt.register_lib(MODULE_NAME,
|
dt.register_lib(MODULE_NAME,
|
||||||
"photils autotagger",
|
_("photils autotagger"),
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
PHOTILS.plugin_display_views,
|
PHOTILS.plugin_display_views,
|
||||||
|
|||||||
@@ -51,8 +51,6 @@ du.check_min_api_version("7.0.0", "quicktag")
|
|||||||
|
|
||||||
local gettext = dt.gettext.gettext
|
local gettext = dt.gettext.gettext
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("quicktag", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
@@ -199,7 +197,7 @@ local function install_module()
|
|||||||
if not qt.module_installed then
|
if not qt.module_installed then
|
||||||
dt.register_lib(
|
dt.register_lib(
|
||||||
"quicktag", -- Module name
|
"quicktag", -- Module name
|
||||||
"quicktag", -- name
|
_("quick tag"), -- name
|
||||||
true, -- expandable
|
true, -- expandable
|
||||||
false, -- resetable
|
false, -- resetable
|
||||||
{[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 490}},
|
{[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 490}},
|
||||||
@@ -306,7 +304,7 @@ end
|
|||||||
for i=1,qnr do
|
for i=1,qnr do
|
||||||
dt.register_event("quicktag " .. tostring(i), "shortcut",
|
dt.register_event("quicktag " .. tostring(i), "shortcut",
|
||||||
function(event, shortcut) tagattach(tostring(quicktag_table[i])) end,
|
function(event, shortcut) tagattach(tostring(quicktag_table[i])) end,
|
||||||
string.format(_("quicktag %i"),i))
|
string.format(_("quick tag %i"),i))
|
||||||
end
|
end
|
||||||
|
|
||||||
script_data.destroy = destroy
|
script_data.destroy = destroy
|
||||||
|
|||||||
@@ -46,8 +46,6 @@ du.check_min_api_version("7.0.0", "rate_group")
|
|||||||
|
|
||||||
local gettext = dt.gettext.gettext
|
local gettext = dt.gettext.gettext
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("rate_group", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -38,8 +38,6 @@ du.deprecated("contrib/rename-tags.lua","darktable release 4.0")
|
|||||||
|
|
||||||
local gettext = darktable.gettext.gettext
|
local gettext = darktable.gettext.gettext
|
||||||
|
|
||||||
darktable.gettext.bindtextdomain("rename-tags", darktable.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -49,8 +49,6 @@ du.check_min_api_version("7.0.0", "rename_images")
|
|||||||
|
|
||||||
local gettext = dt.gettext.gettext
|
local gettext = dt.gettext.gettext
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("rename_images", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ local PS = dt.configuration.running_os == "windows" and "\\" or "/"
|
|||||||
|
|
||||||
local gettext = dt.gettext.gettext
|
local gettext = dt.gettext.gettext
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("select_non_existing", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ local gettext = dt.gettext.gettext
|
|||||||
|
|
||||||
du.check_min_api_version("7.0.0", "select_untagged")
|
du.check_min_api_version("7.0.0", "select_untagged")
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("select_untagged", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ local gettext = dt.gettext.gettext
|
|||||||
|
|
||||||
du.check_min_api_version("7.0.0", "slideshowMusic")
|
du.check_min_api_version("7.0.0", "slideshowMusic")
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("slideshowMusic", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -80,8 +80,6 @@ local dtutils_system = require("lib/dtutils.system")
|
|||||||
local LIB_ID = "transfer_hierarchy"
|
local LIB_ID = "transfer_hierarchy"
|
||||||
dtutils.check_min_api_version("7.0.0", LIB_ID)
|
dtutils.check_min_api_version("7.0.0", LIB_ID)
|
||||||
|
|
||||||
darktable.gettext.bindtextdomain("transfer_hierarchy", darktable.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return darktable.gettext.gettext(msgid)
|
return darktable.gettext.gettext(msgid)
|
||||||
end
|
end
|
||||||
@@ -145,7 +143,7 @@ end
|
|||||||
local function install_module()
|
local function install_module()
|
||||||
if not th.module_installed then
|
if not th.module_installed then
|
||||||
darktable.register_lib(LIB_ID,
|
darktable.register_lib(LIB_ID,
|
||||||
"transfer hierarchy", true, true, {
|
_("transfer hierarchy"), true, true, {
|
||||||
[darktable.gui.views.lighttable] = { "DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 700 }
|
[darktable.gui.views.lighttable] = { "DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 700 }
|
||||||
}, th.transfer_widget, nil, nil)
|
}, th.transfer_widget, nil, nil)
|
||||||
th.module_installed = true
|
th.module_installed = true
|
||||||
|
|||||||
@@ -41,8 +41,6 @@ local gettext = dt.gettext.gettext
|
|||||||
|
|
||||||
du.check_min_api_version("7.0.0", "video_ffmpeg")
|
du.check_min_api_version("7.0.0", "video_ffmpeg")
|
||||||
|
|
||||||
dt.gettext.bindtextdomain("video_ffmpeg", dt.configuration.config_dir .."/lua/locale/")
|
|
||||||
|
|
||||||
local function _(msgid)
|
local function _(msgid)
|
||||||
return gettext(msgid)
|
return gettext(msgid)
|
||||||
end
|
end
|
||||||
@@ -248,8 +246,8 @@ local function string_pref_write(name, widget_attribute)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local framerates_selector = dt.new_widget("combobox"){
|
local framerates_selector = dt.new_widget("combobox"){
|
||||||
label = _("framerate"),
|
label = _("frame rate"),
|
||||||
tooltip = _("select framerate of output video"),
|
tooltip = _("select frame rate of output video"),
|
||||||
value = combobox_pref_read("framerate", framerates),
|
value = combobox_pref_read("framerate", framerates),
|
||||||
changed_callback = combobox_pref_write("framerate"),
|
changed_callback = combobox_pref_write("framerate"),
|
||||||
table.unpack(framerates)
|
table.unpack(framerates)
|
||||||
@@ -418,7 +416,7 @@ local function export(extra_data)
|
|||||||
local ffmpeg_path = df.check_if_bin_exists("ffmpeg")
|
local ffmpeg_path = df.check_if_bin_exists("ffmpeg")
|
||||||
if not ffmpeg_path then
|
if not ffmpeg_path then
|
||||||
dt.print_error("ffmpeg not found")
|
dt.print_error("ffmpeg not found")
|
||||||
dt.print("ERROR - ffmpeg not found")
|
dt.print(_("ERROR - ffmpeg not found"))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local dir = extra_data["tmp_dir"]
|
local dir = extra_data["tmp_dir"]
|
||||||
@@ -450,7 +448,7 @@ local function finalize_export(storage, images_table, extra_data)
|
|||||||
dt.print_error(filename, file.filename)
|
dt.print_error(filename, file.filename)
|
||||||
df.file_move(filename, tmp_dir .. PS .. i .. extra_data["img_ext"])
|
df.file_move(filename, tmp_dir .. PS .. i .. extra_data["img_ext"])
|
||||||
end
|
end
|
||||||
dt.print("Start video building...")
|
dt.print(_("Start video building..."))
|
||||||
local result, path = export(extra_data)
|
local result, path = export(extra_data)
|
||||||
if result ~= 0 then
|
if result ~= 0 then
|
||||||
dt.print(_("ERROR: cannot build image, see console for more info"))
|
dt.print(_("ERROR: cannot build image, see console for more info"))
|
||||||
|
|||||||
Reference in New Issue
Block a user