Skip to content

Commit ee9384b

Browse files
authored
Merge pull request #516 from wpferguson/contrib_a_to_f
contrib/[a-f]*.lua - fixed translatable strings to prepare for darktable translation
2 parents 272c354 + 5bed7c9 commit ee9384b

17 files changed

+23
-54
lines changed

contrib/AutoGrouper.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ du.check_min_api_version("7.0.0", "AutoGrouper")
4444
local MOD = 'autogrouper'
4545

4646
local gettext = dt.gettext
47-
gettext.bindtextdomain(MOD, dt.configuration.config_dir .."/lua/locale/")
4847

4948
local function _(msgid)
5049
return gettext.gettext(msgid)

contrib/CollectHelper.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ local all_active = false
5353

5454
du.check_min_api_version("7.0.0", "CollectHelper")
5555

56-
dt.gettext.bindtextdomain("CollectHelper", dt.configuration.config_dir .."/lua/locale/")
57-
5856
local function _(msgid)
5957
return gettext(msgid)
6058
end
@@ -239,7 +237,7 @@ end
239237
dt.preferences.register("module_CollectHelper", "all_and", -- name
240238
"bool", -- type
241239
_('CollectHelper: all'), -- label
242-
_('will create a collect parameter set that utilizes all enabled CollectHelper types (and)'), -- tooltip
240+
_('creates a collect parameter set that utilizes all enabled CollectHelper types (and)'), -- tooltip
243241
true -- default
244242
)
245243
dt.preferences.register("module_CollectHelper", "colors", -- name

contrib/auto_snapshot.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ du.check_min_api_version("7.0.0", MODULE) -- choose the minimum version that c
5959

6060
local gettext = dt.gettext.gettext
6161

62-
dt.gettext.bindtextdomain(MODULE , dt.configuration.config_dir .. "/lua/locale/")
63-
6462
local function _(msgid)
6563
return gettext(MODULE, msgid)
6664
end
@@ -81,7 +79,7 @@ script_data.metadata = {
8179
name = "auto_snapshot", -- name of script
8280
purpose = _("automatically take a snapshot when an image is loaded in darkroom"), -- purpose of script
8381
author = "Bill Ferguson <wpferguson@gamil.com>", -- your name and optionally e-mail address
84-
help = "" -- URL to help/documentation
82+
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/auto_snapshot/" -- URL to help/documentation
8583
}
8684

8785

@@ -101,8 +99,8 @@ local auto_snapshot = {}
10199
-- P R E F E R E N C E S
102100
-- - - - - - - - - - - - - - - - - - - - - - - -
103101

104-
dt.preferences.register(MODULE, "always_create_snapshot", "bool", "always automatically create_snapshot",
105-
"auto_snapshot - create a snapshot even if the image is altered", false)
102+
dt.preferences.register(MODULE, "always_create_snapshot", "bool", "auto_snapshot - " .. _("always automatically create_snapshot"),
103+
_("create a snapshot even if the image is altered"), false)
106104

107105
-- - - - - - - - - - - - - - - - - - - - - - - -
108106
-- D A R K T A B L E I N T E G R A T I O N

contrib/autostyle.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ local syslib = require "lib/dtutils.system"
4444
du.check_min_api_version("7.0.0", "autostyle")
4545

4646
local gettext = darktable.gettext.gettext
47-
darktable.gettext.bindtextdomain("autostyle", darktable.configuration.config_dir .."/lua/locale/")
4847

4948
local function _(msgid)
5049
return gettext(msgid)

contrib/change_group_leader.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ local gettext = dt.gettext.gettext
4040

4141
local MODULE = "change_group_leader"
4242

43-
dt.gettext.bindtextdomain(MODULE, dt.configuration.config_dir .."/lua/locale/")
44-
4543
du.check_min_api_version("3.0.0", MODULE)
4644

4745
local function _(msgid)
@@ -65,7 +63,7 @@ script_data.restart = nil -- how to restart the (lib) script after it's been hid
6563
script_data.show = nil -- only required for libs since the destroy_method only hides them
6664

6765
-- create a namespace to contain persistent data and widgets
68-
chg_grp_ldr = {}
66+
local chg_grp_ldr = {}
6967

7068
local cgl = chg_grp_ldr
7169

@@ -82,7 +80,7 @@ local function install_module()
8280
if not cgl.module_installed then
8381
dt.register_lib(
8482
MODULE, -- Module name
85-
_("change_group_leader"), -- Visible name
83+
_("change group leader"), -- Visible name
8684
true, -- expandable
8785
false, -- resetable
8886
{[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 700}}, -- containers

contrib/clear_GPS.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ local dt = require "darktable"
4040
local du = require "lib/dtutils"
4141

4242
local gettext = dt.gettext.gettext
43-
dt.gettext.bindtextdomain("clear_GPS", dt.configuration.config_dir .."/lua/locale/")
4443

4544
local function _(msgid)
4645
return gettext(msgid)
@@ -92,7 +91,7 @@ dt.gui.libs.image.register_action(
9291
dt.register_event(
9392
"clear_GPS", "shortcut",
9493
function(event, shortcut) clear_GPS(dt.gui.action_images) end,
95-
_("clear GPS data")
94+
_("clear GPS data from selected images")
9695
)
9796

9897
return script_data

contrib/color_profile_manager.lua

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

5656
local gettext = dt.gettext.gettext
5757

58-
dt.gettext.bindtextdomain("color_profile_manager", dt.configuration.config_dir .."/lua/locale/")
59-
6058
local function _(msgid)
6159
return gettext(msgid)
6260
end

contrib/copy_attach_detach_tags.lua

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

4545
du.check_min_api_version("7.0.0", "copy_attach_detach_tags")
4646

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

contrib/cr2hdr.lua

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

4040
local gettext = darktable.gettext.gettext
4141

42-
darktable.gettext.bindtextdomain("cr2hdr", darktable.configuration.config_dir .."/lua/locale/")
43-
4442
local function _(msgid)
4543
return gettext(msgid)
4644
end

contrib/cycle_group_leader.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ du.check_min_api_version("7.0.0", MODULE)
6060

6161
local gettext = dt.gettext.gettext
6262

63-
dt.gettext.bindtextdomain("cycle_group_leader", dt.configuration.config_dir .."/lua/locale/")
64-
6563
local function _(msgid)
6664
return gettext(msgid)
6765
end
@@ -106,7 +104,7 @@ end
106104
local function cycle_group_leader(image)
107105
local group_images = image:get_group_members()
108106
if #group_images < 2 then
109-
hinter_msg(_("no images to cycle to in group"))
107+
hinter_msg(_("no images to cycle through in group"))
110108
return
111109
else
112110
local position = nil

0 commit comments

Comments
 (0)