From ea08557a0e37511262240555ffcb79802f68fbdf Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sun, 8 Sep 2024 22:49:50 -0400 Subject: [PATCH 1/5] tools/script_manager - removed translation of empty string --- tools/script_manager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/script_manager.lua b/tools/script_manager.lua index 0baba48..fe8fa6a 100644 --- a/tools/script_manager.lua +++ b/tools/script_manager.lua @@ -1353,7 +1353,7 @@ sm.widgets.disable_scripts = dt.new_widget("button"){ sm.widgets.install_update = 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 = _("update scripts")}, dt.new_widget("label"){label = " "}, From f0e36278001c04c855898f8b82b4287a892b4ef6 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sun, 8 Sep 2024 22:54:42 -0400 Subject: [PATCH 2/5] contrib/exportLUT - fixed file chooser labels for translation --- contrib/exportLUT.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/exportLUT.lua b/contrib/exportLUT.lua index 0a578a2..be904cd 100644 --- a/contrib/exportLUT.lua +++ b/contrib/exportLUT.lua @@ -71,13 +71,13 @@ local mkdir_command = 'mkdir -p ' if dt.configuration.running_os == 'windows' then mkdir_command = 'mkdir ' end local file_chooser_button = dt.new_widget("file_chooser_button"){ - title = _("identity_file_chooser"), + title = _("choose the identity file"), value = "", is_directory = false } local export_chooser_button = dt.new_widget("file_chooser_button"){ - title = _("export_location_chooser"), + title = _("choose the export location"), value = "", is_directory = true } From 5be3d6986ef1da570908ac1a5f05ba7e55b5f8fb Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sun, 8 Sep 2024 23:24:33 -0400 Subject: [PATCH 3/5] official/selection_to_pdf - dont translate internal module name --- official/selection_to_pdf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/official/selection_to_pdf.lua b/official/selection_to_pdf.lua index 1457a1b..e4f22f5 100644 --- a/official/selection_to_pdf.lua +++ b/official/selection_to_pdf.lua @@ -129,7 +129,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 From 05c57c02477a12d3682ce5d40f0a511d44ce0e75 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sun, 8 Sep 2024 23:42:45 -0400 Subject: [PATCH 4/5] contrib/geoTooxbox - fix latitude and longitude labels --- contrib/geoToolbox.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/geoToolbox.lua b/contrib/geoToolbox.lua index 13a7b5b..677af0a 100644 --- a/contrib/geoToolbox.lua +++ b/contrib/geoToolbox.lua @@ -67,12 +67,12 @@ labelDistance.label = _("distance:") local label_copy_gps_lat = dt.new_widget("check_button") { - label = _("latitude:"), + label = _("latitude: "), value = true } local label_copy_gps_lon = dt.new_widget("check_button") { - label = _("longitude:"), + label = _("longitude: "), value = true } local label_copy_gps_ele = dt.new_widget("check_button") @@ -307,9 +307,9 @@ local function copy_gps() end end - label_copy_gps_lat.label = string.format(_("latitude: "), copy_gps_latitude) - label_copy_gps_lon.label = string.format(_("longitude: "),copy_gps_longitude) - label_copy_gps_ele.label = string.format(_("elevation: "), copy_gps_elevation) + label_copy_gps_lat.label = _("latitude: ") .. copy_gps_latitude + label_copy_gps_lon.label = _("longitude: ") .. copy_gps_longitude + label_copy_gps_ele.label = _("elevation: ") .. copy_gps_elevation return end From c65e070a761c4111bd35107181a0ce58dd26bd8a Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sun, 8 Sep 2024 23:43:39 -0400 Subject: [PATCH 5/5] contrib/geoJSON - don't translate the module name --- contrib/geoJSON_export.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/geoJSON_export.lua b/contrib/geoJSON_export.lua index 7462512..dc336b2 100644 --- a/contrib/geoJSON_export.lua +++ b/contrib/geoJSON_export.lua @@ -315,19 +315,19 @@ end dt.preferences.register("geoJSON_export", "CreateMapBoxHTMLFile", "bool", - _("geoJSON export: Create an additional HTML file"), + "geoJSON export: ".._("Create an additional HTML file"), _("creates an HTML file that loads the geoJSON file. (needs a MapBox key"), false ) dt.preferences.register("geoJSON_export", "mapBoxKey", "string", - _("geoJSON export: MapBox key"), + "geoJSON export: MapBox " .. _("key"), "https://www.mapbox.com/studio/account/tokens", '' ) dt.preferences.register("geoJSON_export", "OpengeoJSONFile", "bool", - _("geoJSON export: open geoJSON file after export"), + "geoJSON export: " .. _("open geoJSON file after export"), _("opens the geoJSON file after the export with the standard program for geoJSON files"), false )