changed translatable strings to lower case

This commit is contained in:
Bill Ferguson
2024-03-29 12:45:28 -04:00
parent 66b33d6f48
commit 05a73d8810
2 changed files with 16 additions and 16 deletions

View File

@@ -129,7 +129,7 @@ if enfuse_installed then
exposure_mu = dt.new_widget("slider")
{
label = "exposure mu",
tooltip = _("center also known as MEAN of Gaussian weighting function (0 <= MEAN <= 1); default: 0.5"),
tooltip = _("center also known as mean of gaussian weighting function (0 <= mean <= 1); default: 0.5"),
hard_min = 0,
hard_max = 1,
value = dt.preferences.read("enfuse", "exposure_mu", "float")
@@ -138,7 +138,7 @@ if enfuse_installed then
exposure_mu = dt.new_widget("slider")
{
label = "exposure optimum",
tooltip = _("optimum exposure value, usually the maximum of the weighting function (0 <= OPTIMUM <=1); default 0.5"),
tooltip = _("optimum exposure value, usually the maximum of the weighting function (0 <= optimum <=1); default 0.5"),
hard_min = 0,
hard_max = 1,
value = dt.preferences.read("enfuse", "exposure_optimum", "float")
@@ -182,7 +182,7 @@ if enfuse_installed then
end
local f = io.open(response_file, "w")
if not f then
dt.print(string.format(_("Error writing to '%s'"), response_file))
dt.print(string.format(_("error writing to '%s'"), response_file))
os.remove(response_file)
return
end
@@ -205,9 +205,9 @@ if enfuse_installed then
if dt.configuration.running_os == "windows" then
tmp_exported = dt.configuration.tmp_dir .. tmp_exported -- windows os.tmpname() defaults to root directory
end
dt.print(string.format(_("Converting raw file '%s' to tiff..."), i.filename))
dt.print(string.format(_("converting raw file '%s' to tiff..."), i.filename))
tiff_exporter:write_image(i, tmp_exported, false)
dt.print_log(string.format("Raw file '%s' converted to '%s'", i.filename, tmp_exported))
dt.print_log(string.format("raw file '%s' converted to '%s'", i.filename, tmp_exported))
cnt = cnt + 1
f:write(tmp_exported.."\n")
@@ -215,14 +215,14 @@ if enfuse_installed then
-- other images will be skipped
else
dt.print(string.format(_("Skipping %s..."), i.filename))
dt.print(string.format(_("skipping %s..."), i.filename))
n_skipped = n_skipped + 1
end
end
f:close()
-- bail out if there is nothing to do
if cnt == 0 then
dt.print(_("No suitable images selected, nothing to do for enfuse"))
dt.print(_("no suitable images selected, nothing to do for enfuse"))
os.remove(response_file)
return
end
@@ -296,7 +296,7 @@ if enfuse_installed then
else
dt.print_error("enfuse executable not found")
error("enfuse executable not found")
dt.print(_("Could not find enfuse executable. Not loading enfuse exporter..."))
dt.print(_("could not find enfuse executable, not loading enfuse exporter..."))
end
script_data.destroy = destroy

View File

@@ -56,15 +56,15 @@ script_data.show = nil -- only required for libs since the destroy_method only h
dt.preferences.register
("selection_to_pdf","Open with","string",
_("a pdf viewer"),
_("Can be an absolute pathname or the tool may be in the PATH"),
_("can be an absolute pathname or the tool may be in the PATH"),
"xdg-open")
local title_widget = dt.new_widget("entry") {
placeholder = _("Title")
placeholder = _("title")
}
local no_of_thumbs_widget = dt.new_widget("slider")
{
label = _("Thumbs per Line"),
label = _("thumbs per line"),
soft_min = 1, -- The soft minimum value for the slider, the slider can't go beyond this point
soft_max = 10, -- The soft maximum value for the slider, the slider can't go beyond this point
hard_min = 1, -- The hard minimum value for the slider, the user can't manually enter a value beyond this point
@@ -73,9 +73,9 @@ local no_of_thumbs_widget = dt.new_widget("slider")
}
local widget = dt.new_widget("box") {
orientation = horizontal,
dt.new_widget("label"){label = _("Title:")},
dt.new_widget("label"){label = _("title:")},
title_widget,
dt.new_widget("label"){label = _("Thumbnails per row:")},
dt.new_widget("label"){label = _("thumbnails per row:")},
no_of_thumbs_widget
}
@@ -122,7 +122,7 @@ local function destroy()
dt.print_log("done destroying")
end
dt.register_storage(_("export_pdf"),_("Export thumbnails to pdf"),
dt.register_storage(_("export_pdf"),_("export thumbnails to pdf"),
nil,
function(storage,image_table)
local my_title = title_widget.text
@@ -169,7 +169,7 @@ dt.register_storage(_("export_pdf"),_("Export thumbnails to pdf"),
local command = "pdflatex -halt-on-error -output-directory "..dir.." "..locfile
local result = dt.control.execute(command)
if result ~= 0 then
dt.print(_("Problem running pdflatex")) -- this one is probably usefull to the user
dt.print(_("problem running pdflatex")) -- this one is probably usefull to the user
error("Problem running "..command)
end
@@ -179,7 +179,7 @@ dt.register_storage(_("export_pdf"),_("Export thumbnails to pdf"),
command = command.." "..pdffile
local result = dt.control.execute(command)
if result ~= 0 then
dt.print(_("Problem running pdf viewer")) -- this one is probably usefull to the user
dt.print(_("problem running pdf viewer")) -- this one is probably usefull to the user
error("Problem running "..command)
end