Skip to content

Commit 4bdaaaf

Browse files
committed
renamed rename to rename_images to better reflect the purpose
1 parent 3cf0fea commit 4bdaaaf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

contrib/rename.lua renamed to contrib/rename_images.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ local dt = require "darktable"
4444
local du = require "lib/dtutils"
4545
local df = require "lib/dtutils.file"
4646

47-
du.check_min_api_version("7.0.0", "rename")
47+
du.check_min_api_version("7.0.0", "rename_images")
4848

4949
local gettext = dt.gettext
5050

5151
-- Tell gettext where to find the .mo file translating messages for a particular domain
5252
gettext.bindtextdomain("rename",dt.configuration.config_dir.."/lua/locale/")
5353

5454
local function _(msgid)
55-
return gettext.dgettext("rename", msgid)
55+
return gettext.dgettext("rename_images", msgid)
5656
end
5757

5858
-- namespace variable
@@ -81,7 +81,7 @@ script_data.restart = nil -- how to restart the (lib) script after it's been hid
8181
-- C O N S T A N T S
8282
-- - - - - - - - - - - - - - - - - - - - - - - -
8383

84-
local MODULE_NAME = "rename"
84+
local MODULE_NAME = "rename_images"
8585
local PS = dt.configuration.running_os == "windows" and "\\" or "/"
8686
local USER = os.getenv("USERNAME")
8787
local HOME = os.getenv(dt.configuration.running_os == "windows" and "HOMEPATH" or "HOME")
@@ -139,8 +139,8 @@ end
139139
local function install_module()
140140
if not rename.module_installed then
141141
dt.register_lib(
142-
_("rename"),
143-
("rename"),
142+
_("rename images"),
143+
("rename_images"),
144144
true,
145145
true,
146146
{[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER",700}},
@@ -157,11 +157,11 @@ local function install_module()
157157
end
158158

159159
local function destroy()
160-
dt.gui.libs["rename"].visible = false
160+
dt.gui.libs["rename_images"].visible = false
161161
end
162162

163163
local function restart()
164-
dt.gui.libs["rename"].visible = true
164+
dt.gui.libs["rename_images"].visible = true
165165
end
166166

167167
-- - - - - - - - - - - - - - - - - - - - - - - -
@@ -296,7 +296,7 @@ if dt.gui.current_view().id == "lighttable" then
296296
else
297297
if not rename.event_registered then
298298
dt.register_event(
299-
"rename", "view-changed",
299+
"rename_images", "view-changed",
300300
function(event, old_view, new_view)
301301
if new_view.name == "lighttable" and old_view.name == "darkroom" then
302302
install_module()

0 commit comments

Comments
 (0)