Skip to content

Commit ecff920

Browse files
committed
contrib/[p-z]*.lua - cleaned up translatable strings
1 parent ee9384b commit ecff920

14 files changed

+9
-36
lines changed

contrib/RL_out_sharp.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ du.check_min_api_version("7.0.0", MODULE_NAME)
6868
-- translation
6969
local gettext = dt.gettext.gettext
7070

71-
dt.gettext.bindtextdomain("RL_out_sharp", dt.configuration.config_dir .."/lua/locale/")
72-
7371
local function _(msgid)
7472
return gettext(msgid)
7573
end

contrib/passport_guide.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ local gettext = dt.gettext.gettext
4141

4242
du.check_min_api_version("2.0.0", "passport_guide")
4343

44-
dt.gettext.bindtextdomain("passport_guide", dt.configuration.config_dir .."/lua/locale/")
45-
4644
local function _(msgid)
4745
return gettext(msgid)
4846
end

contrib/passport_guide_germany.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ local gettext = dt.gettext
4545
du.check_min_api_version("2.0.0", "passport_guide_germany")
4646

4747
-- Tell gettext where to find the .mo file translating messages for a particular domain
48-
dt.gettext.bindtextdomain("passport_guide_germany",dt.configuration.config_dir.."/lua/locale/")
49-
5048
local function _(msgid)
5149
return gettext.dgettext("passport_guide_germany", msgid)
5250
end

contrib/pdf_slideshow.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ local df = require "lib/dtutils.file"
4444

4545
local gettext = dt.gettext.gettext
4646

47-
dt.gettext.bindtextdomain("pdf_slideshow", dt.configuration.config_dir .."/lua/locale/")
48-
4947
local function _(msgid)
5048
return gettext(msgid)
5149
end

contrib/photils.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ local MODULE_NAME = "photils"
4545
du.check_min_api_version("7.0.0", MODULE_NAME)
4646

4747
local gettext = dt.gettext.gettext
48-
dt.gettext.bindtextdomain("photils", dt.configuration.config_dir .."/lua/locale/")
4948

5049
local function _(msgid)
5150
return gettext(msgid)
@@ -339,7 +338,7 @@ function PHOTILS.on_tags_clicked()
339338
end
340339

341340
if #PHOTILS.tags == 0 then
342-
local msg = string.format(_("no tags where found"), MODULE_NAME)
341+
local msg = string.format(_("no tags were found"), MODULE_NAME)
343342
GUI.warning_label.label = msg
344343
GUI.stack.active = GUI.error_view
345344
return
@@ -394,7 +393,7 @@ end
394393
local function install_module()
395394
if not PHOTILS.module_installed then
396395
dt.register_lib(MODULE_NAME,
397-
"photils autotagger",
396+
_("photils autotagger"),
398397
true,
399398
true,
400399
PHOTILS.plugin_display_views,

contrib/quicktag.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ du.check_min_api_version("7.0.0", "quicktag")
5151

5252
local gettext = dt.gettext.gettext
5353

54-
dt.gettext.bindtextdomain("quicktag", dt.configuration.config_dir .."/lua/locale/")
55-
5654
local function _(msgid)
5755
return gettext(msgid)
5856
end
@@ -199,7 +197,7 @@ local function install_module()
199197
if not qt.module_installed then
200198
dt.register_lib(
201199
"quicktag", -- Module name
202-
"quicktag", -- name
200+
_("quick tag"), -- name
203201
true, -- expandable
204202
false, -- resetable
205203
{[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 490}},
@@ -306,7 +304,7 @@ end
306304
for i=1,qnr do
307305
dt.register_event("quicktag " .. tostring(i), "shortcut",
308306
function(event, shortcut) tagattach(tostring(quicktag_table[i])) end,
309-
string.format(_("quicktag %i"),i))
307+
string.format(_("quick tag %i"),i))
310308
end
311309

312310
script_data.destroy = destroy

contrib/rate_group.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ du.check_min_api_version("7.0.0", "rate_group")
4646

4747
local gettext = dt.gettext.gettext
4848

49-
dt.gettext.bindtextdomain("rate_group", dt.configuration.config_dir .."/lua/locale/")
50-
5149
local function _(msgid)
5250
return gettext(msgid)
5351
end

contrib/rename-tags.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ du.deprecated("contrib/rename-tags.lua","darktable release 4.0")
3838

3939
local gettext = darktable.gettext.gettext
4040

41-
darktable.gettext.bindtextdomain("rename-tags", darktable.configuration.config_dir .."/lua/locale/")
42-
4341
local function _(msgid)
4442
return gettext(msgid)
4543
end

contrib/rename_images.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ du.check_min_api_version("7.0.0", "rename_images")
4949

5050
local gettext = dt.gettext.gettext
5151

52-
dt.gettext.bindtextdomain("rename_images", dt.configuration.config_dir .."/lua/locale/")
53-
5452
local function _(msgid)
5553
return gettext(msgid)
5654
end

contrib/select_non_existing.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ local PS = dt.configuration.running_os == "windows" and "\\" or "/"
3131

3232
local gettext = dt.gettext.gettext
3333

34-
dt.gettext.bindtextdomain("select_non_existing", dt.configuration.config_dir .."/lua/locale/")
35-
3634
local function _(msgid)
3735
return gettext(msgid)
3836
end

0 commit comments

Comments
 (0)