Merge pull request #531 from wpferguson/fix_17699_lua_translation
Lua Translation remaining tasks
This commit is contained in:
@@ -54,7 +54,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "AutoGrouper",
|
||||
name = _("auto group"),
|
||||
purpose = _("automatically group images by time interval"),
|
||||
author = "Kevin Ertel",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/AutoGrouper/"
|
||||
|
||||
@@ -62,7 +62,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "CollectHelper",
|
||||
name = _("collection helper"),
|
||||
purpose = _("add collection helper buttons"),
|
||||
author = "Kevin Ertel",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/CollectHelper/"
|
||||
|
||||
@@ -63,7 +63,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "HDRmerge",
|
||||
name = _("HDR merge"),
|
||||
purpose = _("merge bracketed images into an HDR DNG image"),
|
||||
author = "Kevin Ertel",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/HDRmerge"
|
||||
|
||||
@@ -63,7 +63,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "LabelsToTags",
|
||||
name = _("labels to tags"),
|
||||
purpose = _("allows the mass-application of tags using color labels and ratings as a guide"),
|
||||
author = "August Schwerdfeger (august@schwerdfeger.name)",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/LabelsToTags"
|
||||
|
||||
@@ -65,7 +65,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "OpenInExplorer",
|
||||
name = _("open in explorer"),
|
||||
purpose = _("open a selected file in the system file manager"),
|
||||
author = "Kevin Ertel",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/OpenInExplorer"
|
||||
|
||||
@@ -77,7 +77,7 @@ local function _(msgid)
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "RL_out_sharp",
|
||||
name = _("RL output sharpening"),
|
||||
purpose = _("Richardson-Lucy output sharpening using GMic"),
|
||||
author = "Marco Carrarini <marco.carrarini@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/RL_out_sharp"
|
||||
|
||||
@@ -76,7 +76,7 @@ script_data.restart = nil -- how to restart the (lib) script after it'
|
||||
script_data.show = nil -- only required for libs since the destroy_method only hides them
|
||||
|
||||
script_data.metadata = {
|
||||
name = "auto_snapshot", -- name of script
|
||||
name = _("auto snapshot"), -- name of script
|
||||
purpose = _("automatically take a snapshot when an image is loaded in darkroom"), -- purpose of script
|
||||
author = "Bill Ferguson <wpferguson@gamil.com>", -- your name and optionally e-mail address
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/auto_snapshot/" -- URL to help/documentation
|
||||
|
||||
@@ -54,7 +54,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "autostyle",
|
||||
name = _("auto style"),
|
||||
purpose = _("automatically apply a style based on image EXIF tag"),
|
||||
author = "Marc Cousin <cousinmarc@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/autostyle/"
|
||||
|
||||
@@ -51,7 +51,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "change_group_leader",
|
||||
name = _("change group leader"),
|
||||
purpose = _("automatically change the leader of raw+jpg paired image groups"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/change_group_leader"
|
||||
|
||||
@@ -50,7 +50,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "clear_GPS",
|
||||
name = _("clear GPS info"),
|
||||
purpose = _("remove GPS data from selected image(s)"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/clear_gps/"
|
||||
|
||||
@@ -363,7 +363,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "color_profile_manager",
|
||||
name = _("color profile manager"),
|
||||
purpose = _("manage external darktable color profiles"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/color_profile_manager"
|
||||
|
||||
@@ -53,7 +53,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "copy_attach_detach_tags",
|
||||
name = _("copy attach detach tags"),
|
||||
purpose = _("shortcuts to copy, paste, replace, or remove tags from images"),
|
||||
author = "Christian Kanzian",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/copy_attach_detach_tags"
|
||||
|
||||
@@ -48,7 +48,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "cr2hdr",
|
||||
name = _("cr2hdr"),
|
||||
purpose = _("process Magic Lantern dual ISO images"),
|
||||
author = "Till Theato <theato@ttill.de>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/cr2hdr"
|
||||
|
||||
@@ -71,7 +71,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "cycle_group_leader",
|
||||
name = _("cycle group leader"),
|
||||
purpose = _("change image group leader"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/cycle_group_leader"
|
||||
|
||||
@@ -80,7 +80,7 @@ script_data.restart = nil -- how to restart the (lib) script after it'
|
||||
script_data.show = nil -- only required for libs since the destroy_method only hides them
|
||||
|
||||
script_data.metadata = {
|
||||
name = "dbmaint",
|
||||
name = _("db maintenance"),
|
||||
purpose = _("perform database maintenance"),
|
||||
author = "Bill Ferguson <wpferguson@gamil.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/dbmaint/"
|
||||
|
||||
@@ -79,7 +79,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "enfuseAdvanced",
|
||||
name = _("enfuse advanced"),
|
||||
purpose = _("focus stack or exposure blend images"),
|
||||
author = "Kevin Ertel",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/enfuseAdvanced"
|
||||
|
||||
@@ -44,7 +44,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "exportLUT",
|
||||
name = _("export LUT"),
|
||||
purpose = _("export a style as a LUT"),
|
||||
author = "Noah Clarke",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/exportLUT"
|
||||
|
||||
@@ -87,7 +87,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "ext_editor",
|
||||
name = _("external editors"),
|
||||
purpose = _("edit images with external editors"),
|
||||
author = "Marco Carrarini, marco.carrarini@gmail.com",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/ext_editor"
|
||||
|
||||
@@ -63,7 +63,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "face_recognition",
|
||||
name = _("face recognition"),
|
||||
purpose = _("use facial recognition to tag images"),
|
||||
author = "Sebastian Witt",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/face_recognition"
|
||||
|
||||
@@ -74,7 +74,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "fujifilm_dynamic_range",
|
||||
name = _("fujifilm dynamic range"),
|
||||
purpose = _("compensate for Fujifilm raw files made using \"dynamic range\""),
|
||||
author = "Dan Torop <dant@pnym.net>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/fujifilm_dynamic_range"
|
||||
|
||||
@@ -40,7 +40,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "fujifilm_ratings",
|
||||
name = _("fujifilm ratings"),
|
||||
purpose = _("import Fujifilm in-camera ratings"),
|
||||
author = "Ben Mendis <ben.mendis@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/fujifilm_ratings"
|
||||
|
||||
@@ -49,7 +49,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "geoJSON_export",
|
||||
name = _("geoJSON export"),
|
||||
purpose = _("export a geoJSON file from geo data"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/geoJSON_export"
|
||||
|
||||
@@ -42,7 +42,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "geoToolbox",
|
||||
name = _("geo toolbox"),
|
||||
purpose = _("geodata tools"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/geoToolbox"
|
||||
|
||||
@@ -83,7 +83,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "gimp",
|
||||
name = _("edit with GIMP"),
|
||||
purpose = _("export and edit with GIMP"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/gimp"
|
||||
|
||||
@@ -38,7 +38,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "gpx_export",
|
||||
name = _("gpx export"),
|
||||
purpose = _("export gpx information to a file"),
|
||||
author = "Jannis_V",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/gpx_export"
|
||||
|
||||
@@ -43,7 +43,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "harmonic_armature_guide",
|
||||
name = _("harmonic armature guide"),
|
||||
purpose = _("harmonic artmature guide"),
|
||||
author = "Hubert Kowalski",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/harmonic_armature_guide"
|
||||
|
||||
@@ -75,7 +75,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "hif_group_leader",
|
||||
name = _("HIF group leader"),
|
||||
purpose = _("make hif image group leader"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/hif_group_leader"
|
||||
|
||||
@@ -65,7 +65,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "hugin",
|
||||
name = _("hugin"),
|
||||
purpose = _("stitch images into a panorama"),
|
||||
author = "Wolfgang Goetz",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/hugin"
|
||||
|
||||
@@ -82,7 +82,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "image_stack",
|
||||
name = _("image stack"),
|
||||
purpose = _("process a stack of images"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/image_stack"
|
||||
|
||||
@@ -125,7 +125,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "image_time",
|
||||
name = _("image time"),
|
||||
purpose = _("synchronize image time for images shot with different cameras or adjust or set image time"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/image_time"
|
||||
|
||||
@@ -75,7 +75,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "jpg_group_leader",
|
||||
name = _("JPG group leader"),
|
||||
purpose = _("make jpg image group leader"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/jpg_group_leader"
|
||||
|
||||
@@ -54,7 +54,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "kml_export",
|
||||
name = _("kml export"),
|
||||
purpose = _("export KML/KMZ data to a file"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/kml_export"
|
||||
|
||||
@@ -48,7 +48,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "passport_guide",
|
||||
name = _("passport guide"),
|
||||
purpose = _("guides for cropping passport photos"),
|
||||
author = "Kåre Hampf",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/passport_guide"
|
||||
|
||||
@@ -52,7 +52,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "passport_guide_germany",
|
||||
name = _("passport guide Germany"),
|
||||
purpose = _("guides for cropping passport and ID card (\"Personalausweis\") photos based on the \"Passbild-Schablone\" from the German Federal Ministry of the Interior and Community"),
|
||||
author = "menschmachine",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/passport_guide_germany"
|
||||
|
||||
@@ -60,7 +60,7 @@ du.check_min_api_version("7.0.0", "pdf_slideshow")
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "pdf_slideshow",
|
||||
name = _("PDF slideshow"),
|
||||
purpose = _("generates a PDF slideshow (via Latex) containing all selected images one per slide"),
|
||||
author = "Pascal Obry",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/pdf_slideshow"
|
||||
|
||||
@@ -55,7 +55,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "photils",
|
||||
name = _("photils"),
|
||||
purpose = _("suggest tags based on image classification"),
|
||||
author = "Tobias Scheck",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/photils"
|
||||
|
||||
@@ -60,7 +60,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "quicktag",
|
||||
name = _("quick tag"),
|
||||
purpose = _("use buttons to quickly apply tags assigned to them"),
|
||||
author = "Christian Kanzian",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/quicktag"
|
||||
|
||||
@@ -55,7 +55,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "rate_group",
|
||||
name = _("rate group"),
|
||||
purpose = _("rate all images in a group"),
|
||||
author = "Dom H (dom@hxy.io)",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/rate_group"
|
||||
|
||||
@@ -47,7 +47,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "rename-tags",
|
||||
name = _("rename tags"),
|
||||
purpose = _("rename an existing tag"),
|
||||
author = "Sebastian Witt (se.witt@gmx.net)",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/rename-tags"
|
||||
|
||||
@@ -65,7 +65,7 @@ rename.event_registered = false
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "rename_images",
|
||||
name = _("rename images"),
|
||||
purpose = _("rename an image file or files"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/rename_images"
|
||||
|
||||
@@ -74,7 +74,7 @@ dt.gui.libs.select.register_selection(
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "select_non_existing",
|
||||
name = _("select non existing"),
|
||||
purpose = _("enable selection of non-existing images"),
|
||||
author = "Dirk Dittmar",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/select_non_existing"
|
||||
|
||||
@@ -33,7 +33,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "select_untagged",
|
||||
name = _("select untagged"),
|
||||
purpose = _("enable selection of untagged images"),
|
||||
author = "Jannis_V",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/select_untagged"
|
||||
|
||||
@@ -40,7 +40,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "slideshowMusic",
|
||||
name = _("slideshow music"),
|
||||
purpose = _("play music during a slideshow"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/slideshowMusic"
|
||||
|
||||
@@ -90,7 +90,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "transfer_hierarchy",
|
||||
name = _("transfer hierarchy"),
|
||||
purpose = _("allows the moving or copying of images from one directory tree to another, while preserving the existing hierarchy"),
|
||||
author = "August Schwerdfeger (august@schwerdfeger.name)",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/transfer_hierarchy"
|
||||
|
||||
@@ -50,7 +50,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "video_ffmpeg",
|
||||
name = _("video ffmpeg"),
|
||||
purpose = _("timelapse video plugin based on ffmpeg"),
|
||||
author = "Dominik Markiewicz",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contib/video_ffmpeg"
|
||||
|
||||
@@ -47,7 +47,7 @@ dt.print("API " .. _("version") .. ": " .. result)
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "api_version",
|
||||
name = _("APIversion"),
|
||||
purpose = _("display api_version example"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/api_version"
|
||||
|
||||
@@ -117,7 +117,7 @@ dt.gui.current_view(current_view)
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "darkroom_demo",
|
||||
name = _("darkroom demo"),
|
||||
purpose = _("example demonstrating how to control image display in darkroom mode"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/darkroom_demo"
|
||||
|
||||
@@ -86,7 +86,7 @@ dt.print_error(_("hello world!"))
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "gettextExample",
|
||||
name = _("gettext example"),
|
||||
purpose = _("example of how translations works"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/gettextExample"
|
||||
|
||||
@@ -15,7 +15,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "gui_action",
|
||||
name = _("gui action"),
|
||||
purpose = _("example of how to use darktable.gui.action() calls"),
|
||||
author = "Diederik ter Rahe",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/gui_action"
|
||||
|
||||
@@ -53,7 +53,7 @@ dt.print(_("hello, world"))
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "hello_world",
|
||||
name = _("hello world"),
|
||||
purpose = _("example of how to print a message to the screen"),
|
||||
author = "Tobias Ellinghaus",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/hello_world"
|
||||
|
||||
@@ -218,7 +218,7 @@ current_sort_order = dt.gui.libs.filter.sort_order(current_sort_order)
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "lighttable_demo",
|
||||
name = _("lighttable demo"),
|
||||
purpose = _("example demonstrating how to control lighttable display modes"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/lighttable_demo"
|
||||
|
||||
@@ -47,7 +47,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "moduleExample",
|
||||
name = ("module example"),
|
||||
purpose = _("example of how to create a lighttable module"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/moduleExample"
|
||||
@@ -75,7 +75,7 @@ local function install_module()
|
||||
-- https://www.darktable.org/lua-api/index.html#darktable_register_lib
|
||||
dt.register_lib(
|
||||
"exampleModule", -- Module name
|
||||
"exampleModule", -- name
|
||||
_("example module"), -- name
|
||||
true, -- expandable
|
||||
false, -- resetable
|
||||
{[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 100}}, -- containers
|
||||
|
||||
@@ -260,7 +260,7 @@ dt.register_event(
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "multi_os",
|
||||
name = _("multi OS"),
|
||||
purpose = _("example module thet runs on different operating systems"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/multi_os"
|
||||
|
||||
@@ -146,7 +146,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "panels_demo",
|
||||
name = _("panels demo"),
|
||||
purpose = _("example demonstrating how to contol panel visibility"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/panels_demo"
|
||||
|
||||
@@ -35,7 +35,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "preferenceExamples",
|
||||
name = _("preference examples"),
|
||||
purpose = _("example to show the different preference types that are possible"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/preferenceExamples"
|
||||
|
||||
@@ -58,7 +58,7 @@ dt.print_log("print log")
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "printExamples",
|
||||
name = _("print examples"),
|
||||
purpose = _("example showing the different types of printing messages"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/printExamples"
|
||||
|
||||
@@ -52,7 +52,7 @@ dt.print(string.format(_("you are running: %s"), dt.configuration.running_os))
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "running_os",
|
||||
name = _("running OS"),
|
||||
purpose = _("example of how to determine the operating system being used"),
|
||||
author = "Tobias Jakobs",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/running_os"
|
||||
|
||||
@@ -66,7 +66,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "x-touch",
|
||||
name = _("x-touch"),
|
||||
purpose = _("example of how to control an x-touch midi device"),
|
||||
author = "Diederik ter Rahe",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/examples/x-touch"
|
||||
|
||||
@@ -89,7 +89,7 @@ script_data.restart = nil -- how to restart the (lib) script after it'
|
||||
script_data.show = nil -- only required for libs since the destroy_method only hides them
|
||||
|
||||
script_data.metadata = {
|
||||
name = "apply_camera_style", -- name of script
|
||||
name = _("apply camera style"), -- name of script
|
||||
purpose = _("apply darktable camera style to matching images"), -- purpose of script
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>", -- your name and optionally e-mail address
|
||||
help = "https://docs.darktable.org/lua/development/lua.scripts.manual/scripts/official/apply_camera_style/" -- URL to help/documentation
|
||||
|
||||
@@ -45,7 +45,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "check_for_updates",
|
||||
name = _("check for updates"),
|
||||
purpose = _("check for newer darktable releases"),
|
||||
author = "Tobias Ellinghaus",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/check_for_updates"
|
||||
|
||||
@@ -40,7 +40,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "copy_paste_metadata",
|
||||
name = _("copy paste metadata"),
|
||||
purpose = _("adds keyboard shortcuts and buttons to copy/paste metadata between images"),
|
||||
author = "Tobias Ellinghaus",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/copy_paste_metadata"
|
||||
|
||||
@@ -44,7 +44,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "delete_long_tags",
|
||||
name = _("delete long tags"),
|
||||
purpose = _("delete all tags longer than a set length"),
|
||||
author = "Tobias Ellinghaus",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/delete_long_tags"
|
||||
|
||||
@@ -48,7 +48,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "delete_unused_tags",
|
||||
name = _("delete unused tags"),
|
||||
purpose = _("delete unused tags"),
|
||||
author = "Tobias Ellinghaus",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/delete_unused_tags"
|
||||
|
||||
@@ -52,7 +52,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "enfuse",
|
||||
name = _("enfuse"),
|
||||
purpose = _("exposure blend images"),
|
||||
author = "Tobias Ellinghaus",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/enfuse"
|
||||
@@ -72,7 +72,7 @@ local function install_module()
|
||||
if not enf.module_installed then
|
||||
dt.register_lib(
|
||||
"enfuse", -- plugin name
|
||||
"enfuse", -- name
|
||||
_("enfuse"), -- name
|
||||
true, -- expandable
|
||||
false, -- resetable
|
||||
{[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 100}}, -- containers
|
||||
@@ -135,7 +135,7 @@ if enfuse_installed then
|
||||
if version < "4.2" then
|
||||
exposure_mu = dt.new_widget("slider")
|
||||
{
|
||||
label = "exposure mu",
|
||||
label = _("exposure mu"),
|
||||
tooltip = _("center also known as mean of gaussian weighting function (0 <= mean <= 1); default: 0.5"),
|
||||
hard_min = 0,
|
||||
hard_max = 1,
|
||||
@@ -144,7 +144,7 @@ if enfuse_installed then
|
||||
else
|
||||
exposure_mu = dt.new_widget("slider")
|
||||
{
|
||||
label = "exposure optimum",
|
||||
label = _("exposure optimum"),
|
||||
tooltip = _("optimum exposure value, usually the maximum of the weighting function (0 <= optimum <=1); default 0.5"),
|
||||
hard_min = 0,
|
||||
hard_max = 1,
|
||||
@@ -154,7 +154,7 @@ if enfuse_installed then
|
||||
|
||||
local depth = dt.new_widget("combobox")
|
||||
{
|
||||
label = "depth",
|
||||
label = _("depth"),
|
||||
tooltip = _("the number of bits per channel of the output image"),
|
||||
value = dt.preferences.read("enfuse", "depth", "integer"),
|
||||
changed_callback = function(w) dt.preferences.write("enfuse", "depth", "integer", w.selected) end,
|
||||
@@ -163,7 +163,7 @@ if enfuse_installed then
|
||||
|
||||
local blend_colorspace = dt.new_widget("combobox")
|
||||
{
|
||||
label = "blend colorspace",
|
||||
label = _("blend colorspace"),
|
||||
tooltip = _("force blending in selected colorspace"),
|
||||
changed_callback = function(w) dt.preferences.write("enfuse", "blend_colorspace", "string", w.selected) end,
|
||||
"", "identity", "ciecam"
|
||||
|
||||
@@ -51,7 +51,7 @@ du.check_min_api_version("7.0.0", "generate_image_txt")
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "generate_image_txt",
|
||||
name = _("generate image text"),
|
||||
purpose = _("overlay metadata on the selected image(s)"),
|
||||
author = "Tobias Ellinghaus",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/generate_image_txt"
|
||||
|
||||
@@ -44,7 +44,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "image_path_in_ui",
|
||||
name = _("image path in UI"),
|
||||
purpose = _("print the image path in the UI"),
|
||||
author = "Jérémy Rosen",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/image_path_in_ui"
|
||||
@@ -63,7 +63,7 @@ local main_label = dt.new_widget("label"){selectable = true, ellipsize = "middle
|
||||
|
||||
local function install_module()
|
||||
if not ipiu.module_installed then
|
||||
dt.register_lib("image_path_no_ui","selected images path",true,false,{
|
||||
dt.register_lib("image_path_no_ui",_("selected images path"),true,false,{
|
||||
[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_LEFT_CENTER",300}
|
||||
}, main_label
|
||||
)
|
||||
|
||||
@@ -41,7 +41,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "import_filter_manager",
|
||||
name = _("import filter manager"),
|
||||
purpose = _("manage import filters"),
|
||||
author = "Tobias Ellinghaus",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/import_filter_manager"
|
||||
|
||||
@@ -39,7 +39,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "import_filters",
|
||||
name = _("import filters"),
|
||||
purpose = _("import filtering"),
|
||||
author = "Tobias Ellinghaus & Christian Mandel",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/import_filters"
|
||||
|
||||
@@ -49,7 +49,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "save_selection",
|
||||
name = _("save selection"),
|
||||
purpose = _("shortcuts providing multiple selection buffers"),
|
||||
author = "Jérémy Rosen",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/save_selection"
|
||||
|
||||
@@ -49,7 +49,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "selection_to_pdf",
|
||||
name = _("selection to PDF"),
|
||||
purpose = _("generate a pdf file of selected images"),
|
||||
author = "Jérémy Rosen & Pascal Obry",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/official/selection_to_pdf"
|
||||
|
||||
@@ -46,7 +46,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "executable_manager",
|
||||
name = _("executable manager"),
|
||||
purpose = _("manage the list of external executables used by the lua scripts"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/tools/executable_manager"
|
||||
|
||||
@@ -88,7 +88,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "get_lib_manpages",
|
||||
name = _("get library man pages"),
|
||||
purpose = _("output the internal library documentation as man pages"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/tools/get_lib_manpages"
|
||||
|
||||
@@ -62,7 +62,7 @@ end
|
||||
local script_data = {}
|
||||
|
||||
script_data.metadata = {
|
||||
name = "get_libdoc",
|
||||
name = _("get library docs"),
|
||||
purpose = _("retrieve and print the documentation to the console"),
|
||||
author = "Bill Ferguson <wpferguson@gmail.com>",
|
||||
help = "https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/tools/get_libdoc"
|
||||
|
||||
@@ -132,6 +132,7 @@ sm.event_registered = false
|
||||
|
||||
sm.widgets = {}
|
||||
sm.folders = {}
|
||||
sm.translated_folders = {}
|
||||
|
||||
-- set log level for functions
|
||||
|
||||
@@ -364,8 +365,9 @@ end
|
||||
local function string_trim(str)
|
||||
local old_log_level = set_log_level(sm.log_level)
|
||||
|
||||
local result = string.gsub(str, "^%s+", "")
|
||||
result = string.gsub(result, "%s+$", "")
|
||||
local result = string.gsub(str, "^%s+", "") -- trim leading spaces
|
||||
result = string.gsub(result, "%s+$", "") -- trim trailing spaces
|
||||
result = string.gsub(result, ",?%s+%-%-.+$", "") -- trim trailing comma and comments
|
||||
|
||||
restore_log_level(old_log_level)
|
||||
return result
|
||||
@@ -387,11 +389,42 @@ end
|
||||
-- script handling
|
||||
------------------
|
||||
|
||||
local function is_folder_known(folder_table, name)
|
||||
local match = false
|
||||
|
||||
for _, folder_name in ipairs(folder_table) do
|
||||
if name == folder_name then
|
||||
match = true
|
||||
end
|
||||
end
|
||||
|
||||
return match
|
||||
end
|
||||
|
||||
local function find_translated_name(folder)
|
||||
local translated_name = nil
|
||||
|
||||
if folder == "contrib" then
|
||||
translated_name = _("contributed")
|
||||
elseif folder == "examples" then
|
||||
translated_name = _("examples")
|
||||
elseif folder == "official" then
|
||||
translated_name = _("official")
|
||||
elseif folder == "tools" then
|
||||
translated_name = _("tools")
|
||||
else
|
||||
translated_name = _(folder) -- in case we get lucky and the string got translated elsewhere
|
||||
end
|
||||
|
||||
return translated_name
|
||||
end
|
||||
|
||||
local function add_script_folder(folder)
|
||||
local old_log_level = set_log_level(sm.log_level)
|
||||
|
||||
if #sm.folders == 0 or not string.match(du.join(sm.folders, " "), ds.sanitize_lua(folder)) then
|
||||
if #sm.folders == 0 or not is_folder_known(sm.folders, folder) then
|
||||
table.insert(sm.folders, folder)
|
||||
table.insert(sm.translated_folders, find_translated_name(folder))
|
||||
sm.scripts[folder] = {}
|
||||
log.msg(log.debug, "created folder " .. folder)
|
||||
end
|
||||
@@ -405,8 +438,8 @@ local function get_script_metadata(script)
|
||||
|
||||
log.msg(log.debug, "processing metatdata for " .. script)
|
||||
|
||||
local description = nil
|
||||
local metadata = nil
|
||||
local metadata_block = nil
|
||||
local metadata = {}
|
||||
|
||||
f = io.open(LUA_DIR .. PS .. script .. ".lua")
|
||||
if f then
|
||||
@@ -414,20 +447,20 @@ local function get_script_metadata(script)
|
||||
local content = f:read("*all")
|
||||
f:close()
|
||||
-- grab the script_data.metadata table
|
||||
description = string.match(content, "script_data%.metadata = %{\r?\n(.-)\r?\n%}")
|
||||
metadata_block = string.match(content, "script_data%.metadata = %{\r?\n(.-)\r?\n%}")
|
||||
else
|
||||
log.msg(log.error, "cant read from " .. script)
|
||||
end
|
||||
|
||||
if description then
|
||||
metadata = ""
|
||||
-- format it into a string block for display
|
||||
local lines = du.split(description, "\n")
|
||||
if metadata_block then
|
||||
-- break up the lines into key value pairs
|
||||
local lines = du.split(metadata_block, "\n")
|
||||
log.msg(log.debug, "got " .. #lines .. " lines")
|
||||
local first = 1
|
||||
for i = 1, #lines do
|
||||
log.msg(log.debug, "splitting line " .. lines[i])
|
||||
local parts = du.split(lines[i], " = ")
|
||||
parts[1] = string_trim(parts[1])
|
||||
parts[2] = string_trim(parts[2])
|
||||
log.msg(log.debug, "got value " .. parts[1] .. " and data " .. parts[2])
|
||||
if string.match(parts[2], "%_%(") then
|
||||
parts[2] = _(string_dequote(string_dei18n(parts[2])))
|
||||
@@ -437,14 +470,15 @@ local function get_script_metadata(script)
|
||||
if string.match(parts[2], ",$") then
|
||||
parts[2] = string_chop(parts[2])
|
||||
end
|
||||
metadata = metadata .. string.format("%s%-10s\t%s", first and "" or "\n", parts[1], parts[2])
|
||||
first = nil
|
||||
log.msg(log.debug, "parts 1 is " .. parts[1] .. " and parts 2 is " .. parts[2])
|
||||
metadata[parts[1]] = parts[2]
|
||||
log.msg(log.debug, "metadata " .. parts[1] .. " is " .. metadata[parts[1]])
|
||||
end
|
||||
log.msg(log.debug, "script data is \n" .. metadata)
|
||||
log.msg(log.debug, "script data found for " .. metadata["name"])
|
||||
end
|
||||
|
||||
restore_log_level(old_log_level)
|
||||
return metadata
|
||||
return metadata_block and metadata or nil
|
||||
end
|
||||
|
||||
local function get_script_doc(script)
|
||||
@@ -910,11 +944,11 @@ local function populate_buttons(folder, first, last)
|
||||
end
|
||||
|
||||
button.image = POWER_ICON
|
||||
label.label = script.name
|
||||
label.label = script.metadata and script.metadata.name or script.name
|
||||
label.name = "pb_label"
|
||||
button.ellipsize = "end"
|
||||
button.sensitive = true
|
||||
label.tooltip = script.metadata and script.metadata or script.doc
|
||||
label.tooltip = script.metadata and script.metadata.purpose or script.doc
|
||||
|
||||
button.clicked_callback = function (this)
|
||||
local cb_script = script
|
||||
@@ -1006,7 +1040,7 @@ local function paginate(direction)
|
||||
last = first + sm.page_status.num_buttons - 1
|
||||
end
|
||||
|
||||
sm.widgets.page_status.label = _(string.format("page %d of %d", cur_page, max_pages))
|
||||
sm.widgets.page_status.label = string.format(_("page %d of %d"), cur_page, max_pages)
|
||||
|
||||
populate_buttons(folder, first, last)
|
||||
|
||||
@@ -1378,10 +1412,10 @@ sm.widgets.folder_selector = dt.new_widget("combobox"){
|
||||
changed_callback = function(self)
|
||||
if sm.run then
|
||||
pref_write("folder_selector", "integer", self.selected)
|
||||
change_folder(self.value)
|
||||
change_folder(sm.folders[self.selected])
|
||||
end
|
||||
end,
|
||||
table.unpack(sm.folders),
|
||||
table.unpack(sm.translated_folders),
|
||||
}
|
||||
|
||||
-- a script "button" consists of:
|
||||
|
||||
Reference in New Issue
Block a user