Skip to content

Commit abdfc9d

Browse files
authored
Merge pull request #510 from wpferguson/transllist
Fix string errors preventing translation
2 parents ac43afd + c65e070 commit abdfc9d

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

contrib/exportLUT.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ local mkdir_command = 'mkdir -p '
7171
if dt.configuration.running_os == 'windows' then mkdir_command = 'mkdir ' end
7272

7373
local file_chooser_button = dt.new_widget("file_chooser_button"){
74-
title = _("identity_file_chooser"),
74+
title = _("choose the identity file"),
7575
value = "",
7676
is_directory = false
7777
}
7878

7979
local export_chooser_button = dt.new_widget("file_chooser_button"){
80-
title = _("export_location_chooser"),
80+
title = _("choose the export location"),
8181
value = "",
8282
is_directory = true
8383
}

contrib/geoJSON_export.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,19 +315,19 @@ end
315315
dt.preferences.register("geoJSON_export",
316316
"CreateMapBoxHTMLFile",
317317
"bool",
318-
_("geoJSON export: Create an additional HTML file"),
318+
"geoJSON export: ".._("Create an additional HTML file"),
319319
_("creates an HTML file that loads the geoJSON file. (needs a MapBox key"),
320320
false )
321321
dt.preferences.register("geoJSON_export",
322322
"mapBoxKey",
323323
"string",
324-
_("geoJSON export: MapBox key"),
324+
"geoJSON export: MapBox " .. _("key"),
325325
"https://www.mapbox.com/studio/account/tokens",
326326
'' )
327327
dt.preferences.register("geoJSON_export",
328328
"OpengeoJSONFile",
329329
"bool",
330-
_("geoJSON export: open geoJSON file after export"),
330+
"geoJSON export: " .. _("open geoJSON file after export"),
331331
_("opens the geoJSON file after the export with the standard program for geoJSON files"),
332332
false )
333333

contrib/geoToolbox.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ labelDistance.label = _("distance:")
6767

6868
local label_copy_gps_lat = dt.new_widget("check_button")
6969
{
70-
label = _("latitude:"),
70+
label = _("latitude: "),
7171
value = true
7272
}
7373
local label_copy_gps_lon = dt.new_widget("check_button")
7474
{
75-
label = _("longitude:"),
75+
label = _("longitude: "),
7676
value = true
7777
}
7878
local label_copy_gps_ele = dt.new_widget("check_button")
@@ -307,9 +307,9 @@ local function copy_gps()
307307
end
308308
end
309309

310-
label_copy_gps_lat.label = string.format(_("latitude: "), copy_gps_latitude)
311-
label_copy_gps_lon.label = string.format(_("longitude: "),copy_gps_longitude)
312-
label_copy_gps_ele.label = string.format(_("elevation: "), copy_gps_elevation)
310+
label_copy_gps_lat.label = _("latitude: ") .. copy_gps_latitude
311+
label_copy_gps_lon.label = _("longitude: ") .. copy_gps_longitude
312+
label_copy_gps_ele.label = _("elevation: ") .. copy_gps_elevation
313313

314314
return
315315
end

official/selection_to_pdf.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ local function destroy()
129129
dt.print_log("done destroying")
130130
end
131131

132-
dt.register_storage(_("export_pdf"),_("export thumbnails to pdf"),
132+
dt.register_storage("export_pdf", _("export thumbnails to pdf"),
133133
nil,
134134
function(storage,image_table)
135135
local my_title = title_widget.text

tools/script_manager.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ sm.widgets.disable_scripts = dt.new_widget("button"){
13531353

13541354
sm.widgets.install_update = dt.new_widget("box"){
13551355
orientation = "vertical",
1356-
dt.new_widget("section_label"){label = _(" ")},
1356+
dt.new_widget("section_label"){label = " "},
13571357
dt.new_widget("label"){label = " "},
13581358
dt.new_widget("label"){label = _("update scripts")},
13591359
dt.new_widget("label"){label = " "},

0 commit comments

Comments
 (0)