Skip to content

fixed translatable strings for inclusion into darktable #498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions contrib/LabelsToTags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ local initialAvailableMappings = {
["***+**"] = { _("blue") },
["****+*"] = { _("purple") } },
[_("single colors")] = { ["+----*"] = { _("red"), _("only red") },
["-+---*"] = { _("Yellow"), _("only yellow") },
["--+--*"] = { _("Green"), _("only green") },
["---+-*"] = { _("Blue"), _("only blue") },
["----+*"] = { _("Purple"), _("only purple") } },
["-+---*"] = { _("yellow"), _("only yellow") },
["--+--*"] = { _("green"), _("only green") },
["---+-*"] = { _("blue"), _("only blue") },
["----+*"] = { _("purple"), _("only purple") } },
[_("ratings")] = { ["*****0"] = { _("no stars"), _("not rejected") },
["*****1"] = { _("one star"), _("not rejected") },
["*****2"] = { _("two stars"), _("not rejected") },
Expand Down
4 changes: 2 additions & 2 deletions contrib/change_group_leader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ end

local function process_image_groups(images)
if #images < 1 then
dt.print(_("o images selected"))
dt.print(_("no images selected"))
dt.print_log(MODULE .. "no images seletected, returning...")
else
local mode = cgl.widgets.mode.value
Expand Down Expand Up @@ -204,4 +204,4 @@ script_data.restart = restart
script_data.destroy_method = "hide"
script_data.show = restart

return script_data
return script_data
2 changes: 1 addition & 1 deletion contrib/geoJSON_export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ dt.preferences.register("geoJSON_export",
"mapBoxKey",
"string",
_("geoJSON export: MapBox key"),
_("https://www.mapbox.com/studio/account/tokens"),
"https://www.mapbox.com/studio/account/tokens",
'' )
dt.preferences.register("geoJSON_export",
"OpengeoJSONFile",
Expand Down
6 changes: 3 additions & 3 deletions contrib/geoToolbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ local function calc_distance()

if (distance < 1) then
distance = distance * 1000
distanceUnit = _("m")
distanceUnit = "m"
else
distanceUnit = _("km")
distanceUnit = "km"
end

return string.format(_("distance: %.2f %s"), distance, distanceUnit)
Expand Down Expand Up @@ -746,7 +746,7 @@ dt.preferences.register("geoToolbox",
"mapBoxKey",
"string",
_("geoToolbox export: MapBox Key"),
_("https://www.mapbox.com/studio/account/tokens"),
"https://www.mapbox.com/studio/account/tokens",
'' )

-- Register
Expand Down
2 changes: 1 addition & 1 deletion contrib/image_time.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ local function _get_windows_image_file_creation_time(image)
end
p:close()
else
dt.print(string.format(_("unable to get information for $s"), image.filename))
dt.print(string.format(_("unable to get information for %s"), image.filename))
datetime = ERROR
end
return datetime
Expand Down
14 changes: 8 additions & 6 deletions contrib/rate_group.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ local function destroy()
dt.destroy_event("rg5", "shortcut")
end

local rate_group = _("rate group")

dt.register_event("rg_reject", "shortcut",
function(event, shortcut)
apply_rating(-1)
Expand All @@ -101,32 +103,32 @@ end, _("reject group"))
dt.register_event("rg0", "shortcut",
function(event, shortcut)
apply_rating(0)
end, _("rate group 0"))
end, rate group .. " 0")

dt.register_event("rg1", "shortcut",
function(event, shortcut)
apply_rating(1)
end, _("rate group 1"))
end, rate group .. " 1")

dt.register_event("rg2", "shortcut",
function(event, shortcut)
apply_rating(2)
end, _("rate group 2"))
end, rate group .. " 2")

dt.register_event("rg3", "shortcut",
function(event, shortcut)
apply_rating(3)
end, _("rate group 3"))
end, rate group .. " 3")

dt.register_event("rg4", "shortcut",
function(event, shortcut)
apply_rating(4)
end, _("rate group 4"))
end, rate group .. " 4")

dt.register_event("rg5", "shortcut",
function(event, shortcut)
apply_rating(5)
end, _("rate group 5"))
end, rate group .. " 5")

script_data.destroy = destroy

Expand Down
4 changes: 2 additions & 2 deletions contrib/transfer_hierarchy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ th.transfer_widget = darktable.new_widget("box") {
},
darktable.new_widget("button") {
label = _("copy"),
tooltip = _("Copy all selected images"),
tooltip = _("copy all selected images"),
clicked_callback = doCopy
}
}
Expand Down Expand Up @@ -406,4 +406,4 @@ script_data.restart = restart
script_data.destroy_method = "hide"
script_data.show = restart

return script_data
return script_data
2 changes: 1 addition & 1 deletion examples/multi_os.lua
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ if dt.configuration.running_os ~= "linux" then
dt.preferences.register("executable_paths", "ufraw-batch", -- name
"file", -- type
_('multi_os: ufraw-batch location'), -- label
_('Installed location of ufraw-batch, requires restart to take effect.'), -- tooltip
_('installed location of ufraw-batch, requires restart to take effect.'), -- tooltip
"ufraw-batch", -- default
ufraw_batch_path_widget
)
Expand Down
4 changes: 2 additions & 2 deletions tools/script_manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ local function install_scripts()
sm.widgets.new_folder.text = ""
sm.widgets.main_menu.selected = 3
else
log.msg(log.screen, _("No scripts found to install"))
log.msg(log.screen, _("no scripts found to install"))
log.msg(log.error, "scan_scripts returned " .. count .. " scripts found. Not adding to folder_selector")
end

Expand Down Expand Up @@ -1436,7 +1436,7 @@ sm.widgets.page_control = dt.new_widget("box"){

sm.widgets.scripts = dt.new_widget("box"){
orientation = vertical,
dt.new_widget("section_label"){label = _(" ")},
dt.new_widget("section_label"){label = " "},
dt.new_widget("label"){label = " "},
dt.new_widget("label"){label = _("scripts")},
sm.widgets.folder_selector,
Expand Down