Skip to content

Commit 46e729b

Browse files
committed
fixed translatable strings for inclusion into darktable
1 parent cc11c1c commit 46e729b

9 files changed

+24
-22
lines changed

contrib/LabelsToTags.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ local initialAvailableMappings = {
130130
["***+**"] = { _("blue") },
131131
["****+*"] = { _("purple") } },
132132
[_("single colors")] = { ["+----*"] = { _("red"), _("only red") },
133-
["-+---*"] = { _("Yellow"), _("only yellow") },
134-
["--+--*"] = { _("Green"), _("only green") },
135-
["---+-*"] = { _("Blue"), _("only blue") },
136-
["----+*"] = { _("Purple"), _("only purple") } },
133+
["-+---*"] = { _("yellow"), _("only yellow") },
134+
["--+--*"] = { _("green"), _("only green") },
135+
["---+-*"] = { _("blue"), _("only blue") },
136+
["----+*"] = { _("purple"), _("only purple") } },
137137
[_("ratings")] = { ["*****0"] = { _("no stars"), _("not rejected") },
138138
["*****1"] = { _("one star"), _("not rejected") },
139139
["*****2"] = { _("two stars"), _("not rejected") },

contrib/change_group_leader.lua

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

128128
local function process_image_groups(images)
129129
if #images < 1 then
130-
dt.print(_("o images selected"))
130+
dt.print(_("no images selected"))
131131
dt.print_log(MODULE .. "no images seletected, returning...")
132132
else
133133
local mode = cgl.widgets.mode.value
@@ -204,4 +204,4 @@ script_data.restart = restart
204204
script_data.destroy_method = "hide"
205205
script_data.show = restart
206206

207-
return script_data
207+
return script_data

contrib/geoJSON_export.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ dt.preferences.register("geoJSON_export",
322322
"mapBoxKey",
323323
"string",
324324
_("geoJSON export: MapBox key"),
325-
_("https://www.mapbox.com/studio/account/tokens"),
325+
"https://www.mapbox.com/studio/account/tokens",
326326
'' )
327327
dt.preferences.register("geoJSON_export",
328328
"OpengeoJSONFile",

contrib/geoToolbox.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,9 @@ local function calc_distance()
495495

496496
if (distance < 1) then
497497
distance = distance * 1000
498-
distanceUnit = _("m")
498+
distanceUnit = "m"
499499
else
500-
distanceUnit = _("km")
500+
distanceUnit = "km"
501501
end
502502

503503
return string.format(_("distance: %.2f %s"), distance, distanceUnit)
@@ -746,7 +746,7 @@ dt.preferences.register("geoToolbox",
746746
"mapBoxKey",
747747
"string",
748748
_("geoToolbox export: MapBox Key"),
749-
_("https://www.mapbox.com/studio/account/tokens"),
749+
"https://www.mapbox.com/studio/account/tokens",
750750
'' )
751751

752752
-- Register

contrib/image_time.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ local function _get_windows_image_file_creation_time(image)
257257
end
258258
p:close()
259259
else
260-
dt.print(string.format(_("unable to get information for $s"), image.filename))
260+
dt.print(string.format(_("unable to get information for %s"), image.filename))
261261
datetime = ERROR
262262
end
263263
return datetime

contrib/rate_group.lua

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ local function destroy()
9393
dt.destroy_event("rg5", "shortcut")
9494
end
9595

96+
local rate_group = _("rate group")
97+
9698
dt.register_event("rg_reject", "shortcut",
9799
function(event, shortcut)
98100
apply_rating(-1)
@@ -101,32 +103,32 @@ end, _("reject group"))
101103
dt.register_event("rg0", "shortcut",
102104
function(event, shortcut)
103105
apply_rating(0)
104-
end, _("rate group 0"))
106+
end, rate group .. " 0")
105107

106108
dt.register_event("rg1", "shortcut",
107109
function(event, shortcut)
108110
apply_rating(1)
109-
end, _("rate group 1"))
111+
end, rate group .. " 1")
110112

111113
dt.register_event("rg2", "shortcut",
112114
function(event, shortcut)
113115
apply_rating(2)
114-
end, _("rate group 2"))
116+
end, rate group .. " 2")
115117

116118
dt.register_event("rg3", "shortcut",
117119
function(event, shortcut)
118120
apply_rating(3)
119-
end, _("rate group 3"))
121+
end, rate group .. " 3")
120122

121123
dt.register_event("rg4", "shortcut",
122124
function(event, shortcut)
123125
apply_rating(4)
124-
end, _("rate group 4"))
126+
end, rate group .. " 4")
125127

126128
dt.register_event("rg5", "shortcut",
127129
function(event, shortcut)
128130
apply_rating(5)
129-
end, _("rate group 5"))
131+
end, rate group .. " 5")
130132

131133
script_data.destroy = destroy
132134

contrib/transfer_hierarchy.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ th.transfer_widget = darktable.new_widget("box") {
352352
},
353353
darktable.new_widget("button") {
354354
label = _("copy"),
355-
tooltip = _("Copy all selected images"),
355+
tooltip = _("copy all selected images"),
356356
clicked_callback = doCopy
357357
}
358358
}
@@ -406,4 +406,4 @@ script_data.restart = restart
406406
script_data.destroy_method = "hide"
407407
script_data.show = restart
408408

409-
return script_data
409+
return script_data

examples/multi_os.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ if dt.configuration.running_os ~= "linux" then
227227
dt.preferences.register("executable_paths", "ufraw-batch", -- name
228228
"file", -- type
229229
_('multi_os: ufraw-batch location'), -- label
230-
_('Installed location of ufraw-batch, requires restart to take effect.'), -- tooltip
230+
_('installed location of ufraw-batch, requires restart to take effect.'), -- tooltip
231231
"ufraw-batch", -- default
232232
ufraw_batch_path_widget
233233
)

tools/script_manager.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ local function install_scripts()
852852
sm.widgets.new_folder.text = ""
853853
sm.widgets.main_menu.selected = 3
854854
else
855-
log.msg(log.screen, _("No scripts found to install"))
855+
log.msg(log.screen, _("no scripts found to install"))
856856
log.msg(log.error, "scan_scripts returned " .. count .. " scripts found. Not adding to folder_selector")
857857
end
858858

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

14371437
sm.widgets.scripts = dt.new_widget("box"){
14381438
orientation = vertical,
1439-
dt.new_widget("section_label"){label = _(" ")},
1439+
dt.new_widget("section_label"){label = " "},
14401440
dt.new_widget("label"){label = " "},
14411441
dt.new_widget("label"){label = _("scripts")},
14421442
sm.widgets.folder_selector,

0 commit comments

Comments
 (0)