Skip to content

Commit 231e9b3

Browse files
committed
changed translatable strings to lower case
1 parent e47ab34 commit 231e9b3

29 files changed

+172
-172
lines changed

contrib/CollectHelper.lua

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ end
6969
-- FUNCTION --
7070
local function CheckSingleImage(selection)
7171
if #selection ~= 1 then
72-
dt.print(_("Please select a single image"))
72+
dt.print(_("please select a single image"))
7373
return true
7474
end
7575
return false
@@ -202,47 +202,47 @@ end
202202
dt.gui.libs.image.register_action(
203203
"CollectHelper_prev", _("collect: previous"),
204204
function() PreviousCollection() end,
205-
_("Sets the Collect parameters to be the previously active parameters")
205+
_("sets the collect parameters to be the previously active parameters")
206206
)
207207
if dt.preferences.read('module_CollectHelper','folder','bool') then
208208
dt.gui.libs.image.register_action(
209209
"CollectHelper_folder", _("collect: folder"),
210210
function() CollectOnFolder(_ , false) end,
211-
_("Sets the Collect parameters to be the selected images's folder")
211+
_("sets the collect parameters to be the selected images's folder")
212212
)
213213
end
214214
if dt.preferences.read('module_CollectHelper','colors','bool') then
215215
dt.gui.libs.image.register_action(
216216
"CollectHelper_labels", _("collect: color label(s)"),
217217
function() CollectOnColors(_ , false) end,
218-
_("Sets the Collect parameters to be the selected images's color label(s)")
218+
_("sets the collect parameters to be the selected images's color label(s)")
219219
)
220220
end
221221
if dt.preferences.read('module_CollectHelper','all_and','bool') then
222222
dt.gui.libs.image.register_action(
223223
"CollectHelper_and", _("collect: all (AND)"),
224224
function() CollectOnAll_AND() end,
225-
_("Sets the Collect parameters based on all activated CollectHelper options")
225+
_("sets the collect parameters based on all activated CollectHelper options")
226226
)
227227
end
228228

229229
-- PREFERENCES --
230230
dt.preferences.register("module_CollectHelper", "all_and", -- name
231231
"bool", -- type
232-
_('CollectHelper: All'), -- label
233-
_('Will create a collect parameter set that utilizes all enabled CollectHelper types (AND)'), -- tooltip
232+
_('CollectHelper: all'), -- label
233+
_('will create a collect parameter set that utilizes all enabled CollectHelper types (and)'), -- tooltip
234234
true -- default
235235
)
236236
dt.preferences.register("module_CollectHelper", "colors", -- name
237237
"bool", -- type
238-
_('CollectHelper: Color Label(s)'), -- label
239-
_('Enable the button that allows you to swap to a collection based on selected image\'s COLOR LABEL(S)'), -- tooltip
238+
_('CollectHelper: color label(s)'), -- label
239+
_('enable the button that allows you to swap to a collection based on selected image\'s color label(s)'), -- tooltip
240240
true -- default
241241
)
242242
dt.preferences.register("module_CollectHelper", "folder", -- name
243243
"bool", -- type
244-
_('CollectHelper: Folder'), -- label
245-
_('Enable the button that allows you to swap to a collection based on selected image\'s FOLDER location'), -- tooltip
244+
_('CollectHelper: folder'), -- label
245+
_('enable the button that allows you to swap to a collection based on selected image\'s folder location'), -- tooltip
246246
true -- default
247247
)
248248

contrib/HDRMerge.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ local lbl_import = dt.new_widget('section_label'){
378378
}
379379
GUI.Target.style = dt.new_widget('combobox'){
380380
label = _('apply style on import'),
381-
tooltip = _('Apply selected style on auto-import to newly created image'),
381+
tooltip = _('apply selected style on auto-import to newly created image'),
382382
selected = 1,
383383
_('none'),
384384
changed_callback = function(self)
@@ -407,9 +407,9 @@ GUI.Target.copy_tags = dt.new_widget('check_button'){
407407
temp = dt.preferences.read(mod, 'active_add_tags', 'string')
408408
if temp == '' then temp = nil end
409409
GUI.Target.add_tags = dt.new_widget('entry'){
410-
tooltip = _('Additional tags to be added on import. Seperate with commas, all spaces will be removed'),
410+
tooltip = _('additional tags to be added on import, seperate with commas, all spaces will be removed'),
411411
text = temp,
412-
placeholder = _('Enter tags, seperated by commas'),
412+
placeholder = _('enter tags, seperated by commas'),
413413
editable = true
414414
}
415415
GUI.run = dt.new_widget('button'){
@@ -418,7 +418,7 @@ GUI.run = dt.new_widget('button'){
418418
clicked_callback = function() main() end
419419
}
420420
GUI.exes.HDRMerge = dt.new_widget('file_chooser_button'){
421-
title = _('Select HDRmerge executable'),
421+
title = _('select HDRmerge executable'),
422422
value = df.get_executable_path_preference(HDRM.name),
423423
is_directory = false
424424
}

contrib/LabelsToTags.lua

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,23 @@ end
115115

116116

117117
local initialAvailableMappings = {
118-
[_("Colors")] = { ["+*****"] = { _("Red") },
119-
["*+****"] = { _("Yellow") },
120-
["**+***"] = { _("Green") },
121-
["***+**"] = { _("Blue") },
122-
["****+*"] = { _("Purple") } },
123-
[_("Single colors")] = { ["+----*"] = { _("Red"), _("Only red") },
124-
["-+---*"] = { _("Yellow"), _("Only yellow") },
125-
["--+--*"] = { _("Green"), _("Only green") },
126-
["---+-*"] = { _("Blue"), _("Only blue") },
127-
["----+*"] = { _("Purple"), _("Only purple") } },
128-
[_("Ratings")] = { ["*****0"] = { _("No stars"), _("Not rejected") },
129-
["*****1"] = { _("One star"), _("Not rejected") },
130-
["*****2"] = { _("Two stars"), _("Not rejected") },
131-
["*****3"] = { _("Three stars"), _("Not rejected") },
132-
["*****4"] = { _("Four stars"), _("Not rejected") },
133-
["*****5"] = { _("Five stars"), _("Not rejected") },
134-
["*****R"] = { _("Rejected") } }
118+
[_("colors")] = { ["+*****"] = { _("red") },
119+
["*+****"] = { _("yellow") },
120+
["**+***"] = { _("green") },
121+
["***+**"] = { _("blue") },
122+
["****+*"] = { _("purple") } },
123+
[_("single colors")] = { ["+----*"] = { _("red"), _("only red") },
124+
["-+---*"] = { _("Yellow"), _("only yellow") },
125+
["--+--*"] = { _("Green"), _("only green") },
126+
["---+-*"] = { _("Blue"), _("only blue") },
127+
["----+*"] = { _("Purple"), _("only purple") } },
128+
[_("ratings")] = { ["*****0"] = { _("no stars"), _("not rejected") },
129+
["*****1"] = { _("one star"), _("not rejected") },
130+
["*****2"] = { _("two stars"), _("not rejected") },
131+
["*****3"] = { _("three stars"), _("not rejected") },
132+
["*****4"] = { _("four stars"), _("not rejected") },
133+
["*****5"] = { _("five stars"), _("not rejected") },
134+
["*****R"] = { _("rejected") } }
135135
}
136136

137137
local availableMappings = {}
@@ -146,9 +146,9 @@ end
146146

147147
local function getComboboxTooltip()
148148
if availableMappings == nil or next(availableMappings) == nil then
149-
return(_("No registered mappings -- using defaults"))
149+
return(_("no registered mappings -- using defaults"))
150150
else
151-
return(_("Select a label-to-tag mapping"))
151+
return(_("select a label-to-tag mapping"))
152152
end
153153
end
154154

contrib/OpenInExplorer.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ local PS = act_os == "windows" and "\\" or "/"
7474

7575
--Detect OS and quit if it is not supported.
7676
if act_os ~= "macos" and act_os ~= "windows" and act_os ~= "linux" then
77-
dt.print(_("OpenInExplorer plug-in only supports Linux, macOS, and Windows at this time"))
77+
dt.print(_("OpenInExplorer plug-in only supports linux, macos, and windows at this time"))
7878
dt.print_error("OpenInExplorer plug-in only supports Linux, macOS, and Windows at this time")
7979
return
8080
end
@@ -90,11 +90,11 @@ local function check_if_links_dir_exists()
9090
local dir_exists = true
9191
if not links_dir then
9292
--Just for paranoic reasons. I tried, but I couldn't devise a setting for a nil value.
93-
dt.print(_("No links directory selected.\nPlease check the dt preferences (lua options)"))
93+
dt.print(_("no links directory selected\nplease check the dt preferences (lua options)"))
9494
dt.print_error("OpenInExplorer: No links directory selected")
9595
dir_exists = false
9696
elseif not df.check_if_file_exists(links_dir) then
97-
dt.print(string.format(_("Links directory '%s' not found.\nPlease check the dt preferences (lua options)"), links_dir))
97+
dt.print(string.format(_("links directory '%s' not found\nplease check the dt preferences (lua options)"), links_dir))
9898
dt.print_error(string.format("OpenInExplorer: Links directory '%s' not found", links_dir))
9999
dir_exists = false
100100
end
@@ -151,7 +151,7 @@ local function set_links(selected_images)
151151
end
152152
]]
153153
if dsys.external_command(run_cmd) ~= 0 then
154-
dt.print(_("Failed to create links. Missing rights?"))
154+
dt.print(_("failed to create links, missing rights?"))
155155
dt.print_error("OpenInExplorer: Failed to create links")
156156
return
157157
end
@@ -167,13 +167,13 @@ end
167167
local function open_in_fmanager()
168168
local images = dt.gui.selection()
169169
if #images == 0 then
170-
dt.print(_("Please select an image"))
170+
dt.print(_("please select an image"))
171171
else
172172
if use_links and not check_if_links_dir_exists() then
173173
return
174174
end
175175
if #images > 15 and not use_links then
176-
dt.print(_("Please select fewer images (max. 15)"))
176+
dt.print(_("please select fewer images (max. 15)"))
177177
elseif use_links then
178178
set_links(images)
179179
else
@@ -200,25 +200,25 @@ end
200200
dt.gui.libs.image.register_action(
201201
"OpenInExplorer", _("show in file explorer"),
202202
function() open_in_fmanager() end,
203-
_("Open the file manager at the selected image's location")
203+
_("open the file manager at the selected image's location")
204204
)
205205

206206

207207
if act_os ~= "windows" then
208208
dt.preferences.register("OpenInExplorer", "linked_image_files_dir", -- name
209209
"directory", -- type
210210
_("OpenInExplorer: linked files directory"), -- label
211-
_("Directory to store the links to the file names. Requires restart to take effect"), -- tooltip
211+
_("directory to store the links to the file names, requires restart to take effect"), -- tooltip
212212
"Links to image files", -- default
213213
dt.new_widget("file_chooser_button"){
214-
title = _("Select directory"),
214+
title = _("select directory"),
215215
is_directory = true,
216216
}
217217
)
218218
dt.preferences.register("OpenInExplorer", "use_links", -- name
219219
"bool", -- type
220220
_("OpenInExplorer: use links"), -- label
221-
_("Use links instead of multiple windows. Requires restart to take effect"), -- tooltip
221+
_("use links instead of multiple windows, requires restart to take effect"), -- tooltip
222222
false, -- default
223223
""
224224
)

contrib/autostyle.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ local function autostyle_apply_one_image (image)
9898

9999
-- check they all exist (correct syntax)
100100
if (not tag) then
101-
darktable.print(string.format(_("EXIF TAG not found in %s"), pref))
101+
darktable.print(string.format(_("EXIF tag not found in %s"), pref))
102102
return 0
103103
end
104104
if (not value) then
@@ -110,7 +110,7 @@ local function autostyle_apply_one_image (image)
110110
return 0
111111
end
112112
if not filelib.check_if_bin_exists("exiftool") then
113-
darktable.print(_("Can't find exiftool"))
113+
darktable.print(_("can't find exiftool"))
114114
return 0
115115
end
116116

@@ -133,7 +133,7 @@ local function autostyle_apply_one_image (image)
133133
--darktable.print_error("dr_attr:" .. auto_dr_attr)
134134
-- If the lookup fails, stop here
135135
if (not ok) then
136-
darktable.print(string.format(_("Couldn't get attribute %s from exiftool's output"), auto_dr_attr))
136+
darktable.print(string.format(_("couldn't get attribute %s from exiftool's output"), auto_dr_attr))
137137
return 0
138138
end
139139
if auto_dr_attr == value then
@@ -160,7 +160,7 @@ local function autostyle_apply(shortcut)
160160
images_submitted = images_submitted + 1
161161
images_processed = images_processed + autostyle_apply_one_image(image)
162162
end
163-
darktable.print(string.format(_("Applied auto style to %d out of %d image(s)"), images_processed, images_submitted))
163+
darktable.print(string.format(_("applied auto style to %d out of %d image(s)"), images_processed, images_submitted))
164164
end
165165

166166
local function destroy()
@@ -170,9 +170,9 @@ end
170170

171171
-- Registering events
172172
darktable.register_event("autostyle", "shortcut", autostyle_apply,
173-
_("Apply your chosen style from exiftool tags"))
173+
_("apply your chosen style from exiftool tags"))
174174

175-
darktable.preferences.register("autostyle", "exif_tag", "string", "Autostyle: EXIF_tag=value=>style", _("apply a style automatically if an EXIF_tag matches value. Find the tag with exiftool"), "")
175+
darktable.preferences.register("autostyle", "exif_tag", "string", "Autostyle: EXIF_tag=value=>style", _("apply a style automatically if an EXIF tag matches value, find the tag with exiftool"), "")
176176

177177
darktable.register_event("autostyle", "post-import-image",
178178
autostyle_apply_one_image_event)

contrib/change_group_leader.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ end
118118

119119
local function process_image_groups(images)
120120
if #images < 1 then
121-
dt.print(_("No images selected."))
121+
dt.print(_("o images selected"))
122122
dt.print_log(MODULE .. "no images seletected, returning...")
123123
else
124124
local mode = cgl.widgets.mode.value
@@ -158,7 +158,7 @@ cgl.widgets.mode = dt.new_widget("combobox"){
158158
}
159159

160160
cgl.widgets.execute = dt.new_widget("button"){
161-
label = _("Execute"),
161+
label = _("execute"),
162162
clicked_callback = function()
163163
process_image_groups(dt.gui.action_images)
164164
end

contrib/clear_GPS.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ script_data.destroy = destroy
7979
dt.gui.libs.image.register_action(
8080
"clear_GPS", _("clear GPS data"),
8181
function(event, images) clear_GPS(images) end,
82-
_("Clear GPS data from selected images")
82+
_("clear GPS data from selected images")
8383
)
8484

8585
dt.register_event(
8686
"clear_GPS", "shortcut",
8787
function(event, shortcut) clear_GPS(dt.gui.action_images) end,
88-
_("Clear GPS data")
88+
_("clear GPS data")
8989
)
9090

9191
return script_data

contrib/copy_attach_detach_tags.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ local function mcopy_tags()
9696
end
9797
end
9898

99-
dt.print(_('Image tags copied ...'))
99+
dt.print(_('image tags copied ...'))
100100

101101
--create UI tag list
102102
local taglist = ""
@@ -118,7 +118,7 @@ local function mcopy_tags()
118118
local function attach_tags()
119119

120120
if next(image_tags) == nil then
121-
dt.print(_('No tag to attach, please copy tags first.'))
121+
dt.print(_('no tag to attach, please copy tags first.'))
122122
return true
123123
end
124124

@@ -142,7 +142,7 @@ local function attach_tags()
142142
end
143143
end
144144
end
145-
dt.print(_('Tags attached ...'))
145+
dt.print(_('tags attached ...'))
146146
end
147147

148148
local function detach_tags()
@@ -158,13 +158,13 @@ local function detach_tags()
158158
end
159159
end
160160
end
161-
dt.print(_('Tags removed from image(s).'))
161+
dt.print(_('tags removed from image(s).'))
162162
end
163163

164164
local function replace_tags()
165165
detach_tags()
166166
attach_tags()
167-
dt.print(_('Tags replaced'))
167+
dt.print(_('tags replaced'))
168168
end
169169

170170
local function install_module()

contrib/cr2hdr.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ end
9393
local function convert_images()
9494
if next(queue) == nil then return end
9595

96-
job = darktable.gui.create_job(_("Dual ISO conversion"), true, stop_conversion)
96+
job = darktable.gui.create_job(_("dual ISO conversion"), true, stop_conversion)
9797
for key,image in pairs(queue) do
9898
if job.valid then
9999
job.percent = (key-1)/#queue
@@ -104,7 +104,7 @@ local function convert_images()
104104
end
105105
local success_count = 0
106106
for _ in pairs(processed_files) do success_count = success_count + 1 end
107-
darktable.print(string.format(_("Dual ISO conversion successful on %d/%d images."), success_count, #queue))
107+
darktable.print(string.format(_("dual ISO conversion successful on %d/%d images."), success_count, #queue))
108108
job.valid = false
109109
processed_files = {}
110110
queue = {}
@@ -128,13 +128,13 @@ local function destroy()
128128
end
129129

130130
darktable.register_event("cr2hdr", "shortcut",
131-
convert_action_images, _("Run cr2hdr (Magic Lantern DualISO converter) on selected images"))
131+
convert_action_images, _("run cr2hdr (Magic Lantern DualISO converter) on selected images"))
132132
darktable.register_event("cr2hdr", "post-import-image",
133133
file_imported)
134134
darktable.register_event("cr2hdr", "post-import-film",
135135
film_imported)
136136

137-
darktable.preferences.register("cr2hdr", "onimport", "bool", _("Invoke on import"), _("If true then cr2hdr will try to proccess every file during importing. Warning: cr2hdr is quite slow even in figuring out on whether the file is Dual ISO or not."), false)
137+
darktable.preferences.register("cr2hdr", "onimport", "bool", _("invoke on import"), _("if true then cr2hdr will try to proccess every file during importing\nwarning: cr2hdr is quite slow even in figuring out on whether the file is dual ISO or not."), false)
138138

139139
script_data.destroy = destroy
140140

0 commit comments

Comments
 (0)