@@ -44,15 +44,15 @@ local dt = require "darktable"
44
44
local du = require " lib/dtutils"
45
45
local df = require " lib/dtutils.file"
46
46
47
- du .check_min_api_version (" 7.0.0" , " rename " )
47
+ du .check_min_api_version (" 7.0.0" , " rename_images " )
48
48
49
49
local gettext = dt .gettext
50
50
51
51
-- Tell gettext where to find the .mo file translating messages for a particular domain
52
52
gettext .bindtextdomain (" rename" ,dt .configuration .config_dir .. " /lua/locale/" )
53
53
54
54
local function _ (msgid )
55
- return gettext .dgettext (" rename " , msgid )
55
+ return gettext .dgettext (" rename_images " , msgid )
56
56
end
57
57
58
58
-- namespace variable
@@ -81,7 +81,7 @@ script_data.restart = nil -- how to restart the (lib) script after it's been hid
81
81
-- C O N S T A N T S
82
82
-- - - - - - - - - - - - - - - - - - - - - - - -
83
83
84
- local MODULE_NAME = " rename "
84
+ local MODULE_NAME = " rename_images "
85
85
local PS = dt .configuration .running_os == " windows" and " \\ " or " /"
86
86
local USER = os.getenv (" USERNAME" )
87
87
local HOME = os.getenv (dt .configuration .running_os == " windows" and " HOMEPATH" or " HOME" )
139
139
local function install_module ()
140
140
if not rename .module_installed then
141
141
dt .register_lib (
142
- _ (" rename" ),
143
- (" rename " ),
142
+ _ (" rename images " ),
143
+ (" rename_images " ),
144
144
true ,
145
145
true ,
146
146
{[dt .gui .views .lighttable ] = {" DT_UI_CONTAINER_PANEL_RIGHT_CENTER" ,700 }},
@@ -157,11 +157,11 @@ local function install_module()
157
157
end
158
158
159
159
local function destroy ()
160
- dt .gui .libs [" rename " ].visible = false
160
+ dt .gui .libs [" rename_images " ].visible = false
161
161
end
162
162
163
163
local function restart ()
164
- dt .gui .libs [" rename " ].visible = true
164
+ dt .gui .libs [" rename_images " ].visible = true
165
165
end
166
166
167
167
-- - - - - - - - - - - - - - - - - - - - - - - -
@@ -296,7 +296,7 @@ if dt.gui.current_view().id == "lighttable" then
296
296
else
297
297
if not rename .event_registered then
298
298
dt .register_event (
299
- " rename " , " view-changed" ,
299
+ " rename_images " , " view-changed" ,
300
300
function (event , old_view , new_view )
301
301
if new_view .name == " lighttable" and old_view .name == " darkroom" then
302
302
install_module ()
0 commit comments