Skip to content

Commit cd3788f

Browse files
committed
all scripts - added bindtextdomain back in because 4.8 isn't ready to
handle the translations yet. In 5.0 this will be removed and darktable will handle translating the strings.
1 parent 231e9b3 commit cd3788f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+120
-3
lines changed

contrib/AutoGrouper.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ script_data.restart = nil -- how to restart the (lib) script after it's been hid
5353
script_data.show = nil -- only required for libs since the destroy_method only hides them
5454

5555
local gettext = dt.gettext.gettext
56+
gettext.bindtextdomain(MOD, dt.configuration.config_dir .."/lua/locale/")
5657

5758
local function _(msgid)
5859
return gettext(msgid)

contrib/CollectHelper.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ script_data.destroy_method = nil -- set to hide for libs since we can't destroy
6262
script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again
6363
script_data.show = nil -- only required for libs since the destroy_method only hides them
6464

65+
gettext.bindtextdomain("CollectHelper", dt.configuration.config_dir .."/lua/locale/")
66+
6567
local function _(msgid)
6668
return gettext(msgid)
6769
end

contrib/HDRMerge.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ local CURR_API_STRING = dt.configuration.api_version_string
6969
-- Tell gettext where to find the .mo file translating messages for a particular domain
7070
local gettext = dt.gettext.gettext
7171

72+
gettext.bindtextdomain("HDRMerge", dt.configuration.config_dir .."/lua/locale/")
73+
7274
local function _(msgid)
7375
return gettext(msgid)
7476
end

contrib/LabelsToTags.lua

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

5555
local gettext = dt.gettext.gettext
5656

57+
gettext.bindtextdomain("LabelsToTags", dt.configuration.config_dir .."/lua/locale/")
58+
5759
local function _(msgid)
5860
return gettext(msgid)
5961
end

contrib/OpenInExplorer.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ script_data.destroy_method = nil -- set to hide for libs since we can't destroy
6565
script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again
6666
script_data.show = nil -- only required for libs since the destroy_method only hides them
6767

68+
gettext.bindtextdomain("OpenInExplorer", dt.configuration.config_dir .."/lua/locale/")
69+
6870
local function _(msgid)
6971
return gettext(msgid)
7072
end

contrib/RL_out_sharp.lua

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

83+
gettext.bindtextdomain("RL_out_sharp", dt.configuration.config_dir .."/lua/locale/")
84+
8385
local function _(msgid)
8486
return gettext(msgid)
8587
end

contrib/autostyle.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ local filelib = require "lib/dtutils.file"
4343
du.check_min_api_version("7.0.0", "autostyle")
4444

4545
local gettext = darktable.gettext.gettext
46+
gettext.bindtextdomain("autostyle", dt.configuration.config_dir .."/lua/locale/")
4647

4748
local function _(msgid)
4849
return gettext(msgid)

contrib/change_group_leader.lua

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

4141
local MODULE = "change_group_leader"
4242

43+
gettext.bindtextdomain(MODULE, dt.configuration.config_dir .."/lua/locale/")
44+
4345
du.check_min_api_version("3.0.0", MODULE)
4446

4547
-- return data structure for script_manager

contrib/clear_GPS.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ script_data.restart = nil -- how to restart the (lib) script after it's been hid
4949
script_data.show = nil -- only required for libs since the destroy_method only hides them
5050

5151
local gettext = dt.gettext.gettext
52+
gettext.bindtextdomain("clear_GPS", dt.configuration.config_dir .."/lua/locale/")
5253

5354
-- not a number
5455
local NaN = 0/0

contrib/color_profile_manager.lua

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

5555
local gettext = dt.gettext.gettext
5656

57+
gettext.bindtextdomain("color_profile_manager", dt.configuration.config_dir .."/lua/locale/")
58+
5759
local function _(msgid)
5860
return gettext(msgid)
5961
end

0 commit comments

Comments
 (0)