From 1e389ee9838ddf9cdc9fae0df873e74363d7ee41 Mon Sep 17 00:00:00 2001 From: Maurizio Paglia Date: Mon, 18 Dec 2023 21:33:45 +0100 Subject: [PATCH 1/6] Fixed CHARSET wrong parameter --- locale/de_DE/LC_MESSAGES/clear_GPS.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/de_DE/LC_MESSAGES/clear_GPS.po b/locale/de_DE/LC_MESSAGES/clear_GPS.po index ad8960b0..420ec484 100644 --- a/locale/de_DE/LC_MESSAGES/clear_GPS.po +++ b/locale/de_DE/LC_MESSAGES/clear_GPS.po @@ -14,7 +14,7 @@ msgstr "" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" "Language: de_DE\n" From 763962b72bd5e4313fbc541fc6d54424e25c22f2 Mon Sep 17 00:00:00 2001 From: Maurizio Paglia Date: Mon, 18 Dec 2023 21:44:47 +0100 Subject: [PATCH 2/6] Changed config from darktablerc to anselrc --- tools/executable_manager.lua | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tools/executable_manager.lua b/tools/executable_manager.lua index a8690ea8..94dbbdfb 100644 --- a/tools/executable_manager.lua +++ b/tools/executable_manager.lua @@ -1,28 +1,28 @@ --[[ This file is part of darktable, copyright (c) 2018 Bill Ferguson - + darktable is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + darktable is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with darktable. If not, see . ]] --[[ executable_manager.lua - a tool for managing external executables used by darktable lua scripts - executable_manager is a tool for managing the executable preferences stored in the darktablerc file. - On startup the darktablerc file is scanned and a widget is built for each executable path. The user + executable_manager is a tool for managing the executable preferences stored in the anselrc file. + On startup the anselrc file is scanned and a widget is built for each executable path. The user can select the executable from a drop down list and then modify the settings as desired. - Any changes made using executable_manager won't be saved in the darktablerc file until darktable exits, but + Any changes made using executable_manager won't be saved in the anselrc file until darktable exits, but the preference is updated when the change is made so scripts will pick up the changes without restarting darktable. @@ -53,9 +53,9 @@ local exec_man = {} -- our own namespace exec_man.module_installed = false exec_man.event_registered = false --- - - - - - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -- F U N C T I O N S --- - - - - - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - - - - - local function _(msg) return gettext.dgettext("executable_manager", msg) @@ -88,7 +88,7 @@ end local function update_combobox_choices(combobox, choice_table, selected) local items = #combobox local choices = #choice_table - for i, name in ipairs(choice_table) do + for i, name in ipairs(choice_table) do combobox[i] = name end if choices < items then @@ -128,16 +128,16 @@ local function restart() dt.gui.libs["executable_manager"].visible = true end --- - - - - - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -- M A I N P R O G R A M --- - - - - - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -local DARKTABLERC = dt.configuration.config_dir .. PS .. "darktablerc" +local ANSELRC = dt.configuration.config_dir .. PS .. "anselrc" --- grep the executable_paths statements out of the darktablerc file +-- grep the executable_paths statements out of the anselrc file -local matches = grep(DARKTABLERC, "executable_paths") +local matches = grep(ANSELRC, "executable_paths") -- check if we have something to manage and exit if not @@ -160,7 +160,7 @@ local executable_path_widgets = {} local executable_path_values = {} local placeholder_text = dt.configuration.running_os == windows and _("select an executable") or _("search path for executable") -for i,exec in ipairs(exec_table) do +for i,exec in ipairs(exec_table) do executable_path_values[exec] = dt.new_widget("entry"){ text = df.get_executable_path_preference(exec), placeholder = placeholder_text, From 384de6da1e508f04ef2ec242f0c21a2ccb1e13b8 Mon Sep 17 00:00:00 2001 From: Maurizio Paglia Date: Sat, 30 Dec 2023 11:08:19 +0100 Subject: [PATCH 3/6] Added Italian translations --- locale/it_IT/LC_MESSAGES/gimp.po | 45 +++++++++++++++++ locale/it_IT/LC_MESSAGES/photils.po | 75 +++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 locale/it_IT/LC_MESSAGES/gimp.po create mode 100644 locale/it_IT/LC_MESSAGES/photils.po diff --git a/locale/it_IT/LC_MESSAGES/gimp.po b/locale/it_IT/LC_MESSAGES/gimp.po new file mode 100644 index 00000000..85b34e6f --- /dev/null +++ b/locale/it_IT/LC_MESSAGES/gimp.po @@ -0,0 +1,45 @@ +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# SPDX-FileCopyrightText: 2023 Maurizio +msgid "" +msgstr "" +"Project-Id-Version: gimp\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-13 23:50-0400\n" +"PO-Revision-Date: 2023-12-16 18:16+0100\n" +"Last-Translator: Maurizio \n" +"Language-Team: mpaglia0\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 23.08.4\n" +"Language: de_DE\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: gettext;dgettext:2;dcgettext:2ngettext:1,2;dngettext:2," +"3\n" +"X-Poedit-Basepath: .\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: gimp.lua:194 +#, lua-format +msgid "Export Image %i/%i" +msgstr "Esporto l'immagine %i/%i" + +#: gimp.lua:242 +msgid "Unable to move edited file into collection. Leaving it as %s" +msgstr "" +"Impossibile inserire il file modificato nella libreria. Verrà lasciato in %s" + +#: gimp.lua:251 +msgid "GIMP not found" +msgstr "Non trovo GIMP" + +#: gimp.lua:266 +msgid "Launching GIMP..." +msgstr "Avvio GIMP..." + +#: gimp.lua:313 +msgid "Edit with GIMP" +msgstr "Modifica con GIMP" + diff --git a/locale/it_IT/LC_MESSAGES/photils.po b/locale/it_IT/LC_MESSAGES/photils.po new file mode 100644 index 00000000..479ca695 --- /dev/null +++ b/locale/it_IT/LC_MESSAGES/photils.po @@ -0,0 +1,75 @@ +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# SPDX-FileCopyrightText: 2023 Maurizio +msgid "" +msgstr "" +"Project-Id-Version: Lua photils\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-05-12 13:12+0200\n" +"PO-Revision-Date: 2023-12-30 09:34+0100\n" +"Last-Translator: Maurizio \n" +"Language-Team: mpaglia0\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Lokalize 23.08.4\n" + +msgid "get tags" +msgstr "Crea etichette" + +msgid "requires a restart to be applied" +msgstr "Richiede un riavvio per rendere effettive le modifiche" + +msgid "min confidence value" +msgstr "Soglia di affidabilità" + +msgid "" +"The suggested tags were not generated\n" +" for the currently selected image!" +msgstr "" +"Le etichette relative all'immagine\n" +"corrente non sono state create!" + +#, lua-format +msgid " page %s of %s " +msgstr " pagina %s di %s " + +msgid "Tags successfully attached to image" +msgstr "Le etichette sono state correttamente associate all'immagine" + +#, lua-format +msgid "Error writing to `%s`" +msgstr "Errore di scrittura su `%s`" + +#, lua-format +msgid "%s failed, see terminal output for details" +msgstr "" +"%s ha fallito, visualizzare l'output del terminale per ulteriori dettagli" + +#, lua-format +msgid "%s found %d tags for your image" +msgstr "%s ha trovato %d etichetta per questa immagine" + +msgid "No image selected." +msgstr "Nessuna immagine selezionata." + +msgid "This plugin can only handle a single image." +msgstr "Questo plugin può gestire solo una singola immagine per volta" + +#, lua-format +msgid "attach %d tags" +msgstr "%d etichette allegate" + +msgid "photils-cli not found" +msgstr "Non ho trovato photils-cli" + +msgid "" +"Select an image, click \"Get Tags\" and get \n" +"suggestions for tags." +msgstr "" +"Seleziona un'immagine e clicca su \"Crea etichette\"\n" +"per visualizzare le etichette suggerite." + From 18916c218a4061129aef4a6d28af2e03c93d04a3 Mon Sep 17 00:00:00 2001 From: Maurizio Paglia Date: Sat, 6 Jan 2024 19:13:16 +0100 Subject: [PATCH 4/6] Ported from dt to Ansel --- tools/executable_manager.lua | 4 +- tools/gen_i18n_mo.lua | 4 +- tools/script_manager.lua | 86 ++++++++++++++++++------------------ 3 files changed, 47 insertions(+), 47 deletions(-) diff --git a/tools/executable_manager.lua b/tools/executable_manager.lua index 94dbbdfb..3b0519b9 100644 --- a/tools/executable_manager.lua +++ b/tools/executable_manager.lua @@ -103,7 +103,7 @@ local function install_module() if not exec_man.module_installed then dt.register_lib( "executable_manager", -- Module name - "executable manager", -- Visible name + "Executable manager", -- Visible name true, -- expandable false, -- resetable {[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_LEFT_BOTTOM", 600}}, -- containers @@ -187,7 +187,7 @@ exec_man.stack = dt.new_widget("stack"){} -- create a combobox to for indexing into the stack of widgets exec_man.selector = dt.new_widget("combobox"){ - label = "executable", + label = "Executable", tooltip = _("select executable to modify"), value = 1, "placeholder", changed_callback = function(self) diff --git a/tools/gen_i18n_mo.lua b/tools/gen_i18n_mo.lua index 6aa453c2..891205fc 100644 --- a/tools/gen_i18n_mo.lua +++ b/tools/gen_i18n_mo.lua @@ -18,7 +18,7 @@ ]] --[[ gen_i18n_mo - generate translation files from the source and place them in the appropriate locale directory - + gen_i18n_mo finds all the .po files scattered throughout the script tree, compiles them into .mo files and places them in the correct locale directory for use by the gettext tools. @@ -93,7 +93,7 @@ end dt.preferences.register("executable_paths", "msgfmt", -- name "file", -- type 'gen_i18n_mo: msgfmt location', -- label - 'Install location of msgfmt. Requires restart to take effect.', -- tooltip + 'Install location of msgfmt. Requires Ansel restart to take effect.', -- tooltip "msgfmt", -- default dt.new_widget("file_chooser_button"){ title = "Select msgfmt[.exe] file", diff --git a/tools/script_manager.lua b/tools/script_manager.lua index f95401c3..7e577682 100644 --- a/tools/script_manager.lua +++ b/tools/script_manager.lua @@ -1,17 +1,17 @@ --[[ This file is part of darktable, copyright (c) 2018, 2020, 2023 Bill Ferguson - + darktable is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + darktable is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with darktable. If not, see . ]] @@ -22,15 +22,15 @@ manage the lua scripts. On startup script_manager scans the lua scripts directory to see what scripts are present. - Scripts are sorted by 'category' based on what sub-directory they are in. With no + Scripts are sorted by 'category' based on what sub-directory they are in. With no additional script repositories iinstalled, the categories are contrib, examples, official and tools. When a category is selected the buttons show the script name and whether the - script is started or stopped. The button is a toggle, so if the script is stopped click + script is started or stopped. The button is a toggle, so if the script is stopped click the button to start it and vice versa. Features - * the number of script buttons shown can be changed to any number between 5 and 20. The + * the number of script buttons shown can be changed to any number between 5 and 20. The default is 10 buttons. This can be changed in the configuration action. * additional repositories of scripts may be installed using from the install/update action. @@ -40,9 +40,9 @@ * the scripts can be disabled if desired from the install/update action. This can only be reversed manually. To enable the "Disable Scripts" button, check the checkbox to - endable it. This is to prevent accidentally disabling the scripts. Click the + endable it. This is to prevent accidentally disabling the scripts. Click the "Disable Scripts" button and the luarc file is renamed to luarc.disable. If at - a later time you want to enable the scripts again, simply rename the luarc.disabled + a later time you want to enable the scripts again, simply rename the luarc.disabled file to luarc and the scripts will run. ]] @@ -70,9 +70,9 @@ end du.check_min_api_version("5.0.0", "script_manager") --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- C O N S T A N T S --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- path separator local PS = dt.configuration.running_os == "windows" and "\\" or "/" @@ -93,28 +93,28 @@ local LUA_SCRIPT_REPO = "https://github.com/aurelienpierreeng/lua-scripts.git" local LUA_API_VER = "API-" .. dt.configuration.api_version_string --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- P R E F E R E N C E S --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - dt.preferences.register(MODULE, "check_update", "bool", - _("check for updated scripts on start up"), - _("automatically update scripts to correct version"), + _("check for updated scripts on start up"), + _("automatically update scripts to correct version"), true) local check_for_updates = dt.preferences.read(MODULE, "check_update", "bool") --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- L O G L E V E L --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - local old_log_level = log.log_level() log.log_level(DEFAULT_LOG_LEVEL) --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- N A M E S P A C E --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - local script_manager = {} local sm = script_manager @@ -155,7 +155,7 @@ sm.log_level = DEFAULT_LOG_LEVEL path category (folder), path separator, path, name without the lua extension doc the header comments from the script to be used as a tooltip script_name the folder, path separator, and name without the lua extension - running true if running, false if not, hidden if running but the + running true if running, false if not, hidden if running but the lib/storage/action for the script is hidden has_lib true if it creates a module lib_name name of the created lib @@ -168,7 +168,7 @@ sm.log_level = DEFAULT_LOG_LEVEL has_event true if it creates an event handler event_type type of event, shortcut, post-xxx, pre-xxx callback name of the callback routine - initialized all of the above data has been retreived and set. If the + initialized all of the above data has been retreived and set. If the script is unloaded and reloaded we don't have to reparse the file ]] @@ -192,9 +192,9 @@ sm.installed_repositories = { -- don't let it run until everything is in place sm.run = false --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- F U N C T I O N S --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - ------------------- -- helper functions @@ -286,7 +286,7 @@ local function get_repo_branches(repo) end end restore_log_level(old_log_level) - return branches + return branches end local function is_repo_clean(repo_data) @@ -316,7 +316,7 @@ local function update_combobox_choices(combobox, choice_table, selected) local old_log_level = set_log_level(sm.log_level) local items = #combobox local choices = #choice_table - for i, name in ipairs(choice_table) do + for i, name in ipairs(choice_table) do combobox[i] = name end if choices < items then @@ -447,7 +447,7 @@ local function deactivate(script) else script.running = false log.msg(log.info, "setting " .. script.script_name .. " to not start") - log.msg(log.screen, script.name .. _(" will not start when darktable is restarted")) + log.msg(log.screen, script.name .. _(" will not start when Ansel is restarted")) end restore_log_level(old_log_level) end @@ -456,8 +456,8 @@ local function add_script_name(name, path, category) local old_log_level = set_log_level(sm.log_level) log.msg(log.debug, "category is " .. category) log.msg(log.debug, "name is " .. name) - local script = { - name = name, + local script = { + name = name, path = category .. "/" .. path .. name, running = false, doc = get_script_doc(category .. "/" .. path .. name), @@ -480,7 +480,7 @@ local function process_script_data(script_file) -- the following pattern splits the string into category, path, name, fileename, and filetype -- for example contrib/gimp.lua becomes -- category - contrib - -- path - + -- path - -- name - gimp.lua -- filename - gimp -- filetype - lua @@ -741,7 +741,7 @@ local function populate_buttons(category, first, last) script_name, state = string.match(this.label, "(.-) (.+)") end local script = find_script(sm.widgets.category_selector.value, script_name) - if script then + if script then log.msg(log.debug, "found script " .. script.name .. " with path " .. script.path) if script.running == true then log.msg(log.debug, "deactivating " .. script.name .. " on " .. script.path .. " for button " .. this.label) @@ -961,9 +961,9 @@ local function install_module() restore_log_level(old_log_level) end --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- M A I N P R O G R A M --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- ensure shortcuts module knows widgets belong to script_manager @@ -976,14 +976,14 @@ if check_for_updates then local repo = LUA_DIR if current_branch then - if sm.executables.git and clean and + if sm.executables.git and clean and (current_branch == "master" or string.match(current_branch, "^API%-")) then -- only make changes to clean branches local branches = get_repo_branches(LUA_DIR) if current_branch ~= LUA_API_VER and current_branch ~= "master" then -- probably upgraded from an earlier api version so get back to master -- to use the latest version of script_manager to get the proper API checkout_repo_branch(repo, "master") - log.msg(log.screen, "lua API version reset, please restart darktable") + log.msg(log.screen, "lua API version reset, please restart Ansel") elseif LUA_API_VER == current_branch then -- do nothing, we are fine log.msg(log.debug, "took equal branch, doing nothing") @@ -1021,7 +1021,7 @@ if check_for_updates then match = true log.msg(log.info, "checking out repo branch " .. branch) checkout_repo_branch(repo, branch) - log.msg(log.screen, "you must restart darktable to use the correct version of the lua") + log.msg(log.screen, "you must restart Ansel to use the correct version of the lua") end end if not match then @@ -1036,9 +1036,9 @@ scan_scripts(LUA_DIR) log.msg(log.debug, "finished processing scripts") --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- U S E R I N T E R F A C E --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - -- update the scripts @@ -1105,7 +1105,7 @@ sm.widgets.disable_scripts = dt.new_widget("button"){ local LUARC = dt.configuration.config_dir .. PS .. "luarc" df.file_move(LUARC, LUARC .. ".disabled") log.msg(log.info, "lua scripts disabled") - dt.print(_("lua scripts will not run the next time darktable is started")) + dt.print(_("lua scripts will not run the next time Ansel is started")) end } @@ -1137,7 +1137,7 @@ sm.widgets.category_selector = dt.new_widget("combobox"){ } sm.widgets.buttons ={} -for i =1, DEFAULT_BUTTONS_PER_PAGE do +for i =1, DEFAULT_BUTTONS_PER_PAGE do table.insert(sm.widgets.buttons, dt.new_widget("button"){}) sm.page_status.buttons_create = sm.page_status.buttons_created + 1 end @@ -1149,7 +1149,7 @@ sm.widgets.page_status = dt.new_widget("label"){label = _("Page:")} sm.widgets.page_back = dt.new_widget("button"){ label = page_back, clicked_callback = function(this) - if sm.run then + if sm.run then paginate(0) end end @@ -1240,7 +1240,7 @@ sm.widgets.main_menu = dt.new_widget("combobox"){ _("install/update scripts"), _("configure"), _("start/stop scripts") } --- widget for module +-- widget for module sm.widgets.main_box = dt.new_widget("box"){ sm.widgets.main_menu, @@ -1249,9 +1249,9 @@ sm.widgets.main_box = dt.new_widget("box"){ script_manager_running_script = nil --- - - - - - - - - - - - - - - - - - - - - - - - --- D A R K T A B L E I N T E G R A T I O N --- - - - - - - - - - - - - - - - - - - - - - - - +-- - - - - - - - - - - - - - - - - - - - - - - - +-- D A R K T A B L E I N T E G R A T I O N +-- - - - - - - - - - - - - - - - - - - - - - - - if dt.gui.current_view().id == "lighttable" then install_module() From 8282eccd19103b116531b499152e8ba3dcf40d5c Mon Sep 17 00:00:00 2001 From: Maurizio Paglia Date: Sat, 6 Jan 2024 19:13:58 +0100 Subject: [PATCH 5/6] Ported from dt to Ansel --- contrib/gimp.lua | 6 +++--- contrib/photils.lua | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/contrib/gimp.lua b/contrib/gimp.lua index 0b235f92..5ecab099 100644 --- a/contrib/gimp.lua +++ b/contrib/gimp.lua @@ -42,7 +42,7 @@ * select an image or images for editing with GIMP * in the export dialog select "Edit with GIMP" and select the format and bit depth for the exported image. Check the "run_detached" button to run GIMP in detached mode. Images - will not be returned to darktable in this mode, but additional images can be sent to + will not be returned to darktable in this mode, but additional images can be sent to GIMP without stopping it. * Press "export" * Edit the image with GIMP then save the changes with File->Overwrite.... @@ -72,7 +72,7 @@ local dtsys = require "lib/dtutils.system" local gettext = dt.gettext local gimp_widget = nil -du.check_min_api_version("7.0.0", "gimp") +du.check_min_api_version("7.0.0", "gimp") -- return data structure for script_manager @@ -206,7 +206,7 @@ end gimp_widget = dt.new_widget("check_button"){ label = _("run detached"), - tooltip = _("don't import resulting image back into darktable"), + tooltip = _("don't import resulting image back into Ansel"), value = dt.preferences.read("gimp", "run_detached", "bool"), clicked_callback = function(this) dt.preferences.write("gimp", "run_detached", "bool", this.value) diff --git a/contrib/photils.lua b/contrib/photils.lua index b5e99bd8..bc12b679 100644 --- a/contrib/photils.lua +++ b/contrib/photils.lua @@ -29,8 +29,7 @@ USAGE * require this script from your main lua file To do this add this line to the file .config/darktable/luarc: - require "contrib/photils" - * Select an image + require "contrib/photils * Press "get tags" * Select the tags you want from a list of suggestions * Press "Attach .. Tags" to add the selected tags to your image @@ -42,7 +41,7 @@ local df = require "lib/dtutils.file" local dtsys = require "lib/dtutils.system" local MODULE_NAME = "photils" -du.check_min_api_version("7.0.0", MODULE_NAME) +du.check_min_api_version("7.0.0", MODULE_NAME) -- return data structure for script_manager @@ -156,7 +155,7 @@ local GUI = { confidence_slider = dt.new_widget("slider") { step = 1, digits = 0, - value = 90, + value = 96, hard_max = 100, hard_min = 0, soft_max = 100, @@ -430,7 +429,7 @@ if not photils_installed then GUI.warning_label.label = _("photils-cli not found") dt.print_log(_("photils-cli not found")) else - GUI.warning_label.label = _("Select an image, click \"get tags\" and get \nsuggestions for tags.") + GUI.warning_label.label = _("Click \"get tags\" to get suggestions for tags") end GUI.pagination = dt.new_widget("box") { From 0651de9007b8515dbc229ef0e0bda301592cfe1c Mon Sep 17 00:00:00 2001 From: Maurizio Paglia Date: Sat, 6 Jan 2024 19:15:23 +0100 Subject: [PATCH 6/6] Updated strings and translations --- .../it_IT/LC_MESSAGES/delete_unused_tags.po | 27 ++++ .../it_IT/LC_MESSAGES/executable_manager.po | 40 +++-- locale/it_IT/LC_MESSAGES/gimp.po | 35 ++-- locale/it_IT/LC_MESSAGES/photils.po | 80 +++++++-- locale/it_IT/LC_MESSAGES/script_manager.po | 153 +++++++++++------- 5 files changed, 227 insertions(+), 108 deletions(-) create mode 100644 locale/it_IT/LC_MESSAGES/delete_unused_tags.po diff --git a/locale/it_IT/LC_MESSAGES/delete_unused_tags.po b/locale/it_IT/LC_MESSAGES/delete_unused_tags.po new file mode 100644 index 00000000..3f23f0ac --- /dev/null +++ b/locale/it_IT/LC_MESSAGES/delete_unused_tags.po @@ -0,0 +1,27 @@ +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# SPDX-FileCopyrightText: 2023, 2024 Maurizio +msgid "" +msgstr "" +"Project-Id-Version: gimp\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-13 23:50-0400\n" +"PO-Revision-Date: 2024-01-01 17:54+0100\n" +"Last-Translator: Maurizio \n" +"Language-Team: Ansel ITA translation\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 23.08.4\n" +"Language: it_IT\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: gettext;dgettext:2;dcgettext:2ngettext:1,2;dngettext:2," +"3\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: gimp.lua:194 +#, lua-format +msgid "deleting tag `" +msgstr "Cancello etichetta `" + diff --git a/locale/it_IT/LC_MESSAGES/executable_manager.po b/locale/it_IT/LC_MESSAGES/executable_manager.po index 9e31669d..a4cd8658 100644 --- a/locale/it_IT/LC_MESSAGES/executable_manager.po +++ b/locale/it_IT/LC_MESSAGES/executable_manager.po @@ -6,57 +6,63 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-11 22:19+0200\n" +"POT-Creation-Date: 2024-01-06 18:47+0100\n" "PO-Revision-Date: 2022-07-11 22:21+0200\n" "Last-Translator: Maurizio Paglia \n" -"Language-Team: Italian <>\n" -"Language: it\n" +"Language-Team: \n" +"Language: it_IT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 21.12.3\n" -#: executable_manager.lua:144 +#: executable_manager.lua:145 msgid "No executable paths found, exiting..." msgstr "Nessun percorso con eseguibili, esco..." -#: executable_manager.lua:160 +#: executable_manager.lua:161 msgid "select an executable" -msgstr "seleziona un eseguibile" +msgstr "Seleziona un eseguibile" -#: executable_manager.lua:160 +#: executable_manager.lua:161 msgid "search path for executable" -msgstr "cerca il percorso dell'eseguibile" +msgstr "Cerca il percorso dell'eseguibile" -#: executable_manager.lua:169 +#: executable_manager.lua:170 msgid "select " msgstr "seleziona" -#: executable_manager.lua:169 +#: executable_manager.lua:170 msgid " executable" msgstr " eseguibile" -#: executable_manager.lua:190 +#: executable_manager.lua:191 msgid "select executable to modify" msgstr "Seleziona l'eseguibile da modificare" -#: executable_manager.lua:205 +#: executable_manager.lua:206 msgid "current" msgstr "Attuale" -#: executable_manager.lua:207 +#: executable_manager.lua:208 msgid "select" msgstr "Seleziona" -#: executable_manager.lua:209 +#: executable_manager.lua:210 msgid "reset" msgstr "Cancella" #: executable_manager.lua:212 +msgid "clear" +msgstr "Pulisci" + +#: executable_manager.lua:213 msgid "Clear path for " msgstr "Cancella il percorso di " -#: executable_manager.lua:211 -msgid "clear" -msgstr "Pulisci" +#~ msgid "executable manager" +#~ msgstr "Gestione eseguibili" + +#~ msgid "Executable" +#~ msgstr "Eseguibile" diff --git a/locale/it_IT/LC_MESSAGES/gimp.po b/locale/it_IT/LC_MESSAGES/gimp.po index 85b34e6f..9772f63d 100644 --- a/locale/it_IT/LC_MESSAGES/gimp.po +++ b/locale/it_IT/LC_MESSAGES/gimp.po @@ -1,45 +1,54 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # -# SPDX-FileCopyrightText: 2023 Maurizio +# SPDX-FileCopyrightText: 2023, 2024 Maurizio msgid "" msgstr "" "Project-Id-Version: gimp\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-13 23:50-0400\n" -"PO-Revision-Date: 2023-12-16 18:16+0100\n" +"POT-Creation-Date: 2024-01-06 18:55+0100\n" +"PO-Revision-Date: 2024-01-06 19:04+0100\n" "Last-Translator: Maurizio \n" "Language-Team: mpaglia0\n" +"Language: de_DE\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 23.08.4\n" -"Language: de_DE\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: gettext;dgettext:2;dcgettext:2ngettext:1,2;dngettext:2," "3\n" "X-Poedit-Basepath: .\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: gimp.lua:194 +#: gimp.lua:112 #, lua-format msgid "Export Image %i/%i" msgstr "Esporto l'immagine %i/%i" -#: gimp.lua:242 -msgid "Unable to move edited file into collection. Leaving it as %s" -msgstr "" -"Impossibile inserire il file modificato nella libreria. Verrà lasciato in %s" - -#: gimp.lua:251 +#: gimp.lua:122 msgid "GIMP not found" msgstr "Non trovo GIMP" -#: gimp.lua:266 +#: gimp.lua:145 msgid "Launching GIMP..." msgstr "Avvio GIMP..." -#: gimp.lua:313 +#: gimp.lua:208 +msgid "run detached" +msgstr "Esegui separatamente" + +#: gimp.lua:209 +msgid "don't import resulting image back into Ansel" +msgstr "Non importare la nuova immagine in Ansel" + +#: gimp.lua:216 msgid "Edit with GIMP" msgstr "Modifica con GIMP" +#~ msgid "Unable to move edited file into collection. Leaving it as %s" +#~ msgstr "" +#~ "Impossibile inserire il file modificato nella libreria. Verrà lasciato in " +#~ "%s" + + diff --git a/locale/it_IT/LC_MESSAGES/photils.po b/locale/it_IT/LC_MESSAGES/photils.po index 479ca695..be51857b 100644 --- a/locale/it_IT/LC_MESSAGES/photils.po +++ b/locale/it_IT/LC_MESSAGES/photils.po @@ -1,13 +1,13 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # -# SPDX-FileCopyrightText: 2023 Maurizio +# SPDX-FileCopyrightText: 2023, 2024 Maurizio msgid "" msgstr "" "Project-Id-Version: Lua photils\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-05-12 13:12+0200\n" -"PO-Revision-Date: 2023-12-30 09:34+0100\n" +"POT-Creation-Date: 2024-01-06 18:58+0100\n" +"PO-Revision-Date: 2024-01-06 19:02+0100\n" "Last-Translator: Maurizio \n" "Language-Team: mpaglia0\n" "Language: de\n" @@ -17,15 +17,19 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 23.08.4\n" +#: photils.lua:117 msgid "get tags" msgstr "Crea etichette" +#: photils.lua:148 msgid "requires a restart to be applied" msgstr "Richiede un riavvio per rendere effettive le modifiche" +#: photils.lua:163 msgid "min confidence value" msgstr "Soglia di affidabilità" +#: photils.lua:180 msgid "" "The suggested tags were not generated\n" " for the currently selected image!" @@ -33,43 +37,85 @@ msgstr "" "Le etichette relative all'immagine\n" "corrente non sono state create!" +#: photils.lua:186 #, lua-format msgid " page %s of %s " msgstr " pagina %s di %s " +#: photils.lua:237 +msgid "Apply tag to image" +msgstr "Applica etichetta all'immagine" + +#: photils.lua:249 msgid "Tags successfully attached to image" msgstr "Le etichette sono state correttamente associate all'immagine" -#, lua-format -msgid "Error writing to `%s`" -msgstr "Errore di scrittura su `%s`" - -#, lua-format -msgid "%s failed, see terminal output for details" -msgstr "" -"%s ha fallito, visualizzare l'output del terminale per ulteriori dettagli" - +#: photils.lua:299 #, lua-format msgid "%s found %d tags for your image" msgstr "%s ha trovato %d etichetta per questa immagine" +#: photils.lua:315 msgid "No image selected." msgstr "Nessuna immagine selezionata." +#: photils.lua:319 msgid "This plugin can only handle a single image." msgstr "Questo plugin può gestire solo una singola immagine per volta" +#: photils.lua:326 +#, lua-format +msgid "%s failed, see terminal output for details" +msgstr "" +"%s ha fallito, visualizzare l'output del terminale per ulteriori dettagli" + +#: photils.lua:334 +#, lua-format +msgid "no tags where found" +msgstr "Non ho trovato etichette" + +#: photils.lua:365 #, lua-format msgid "attach %d tags" -msgstr "%d etichette allegate" +msgstr "Collega %d etichette" +#: photils.lua:429 photils.lua:430 msgid "photils-cli not found" msgstr "Non ho trovato photils-cli" +#: photils.lua:432 +msgid "Click \"get tags\" to get suggestions for tags" +msgstr "Clicca su \"Crea etichette\" per ottenere le etichette" + +#: photils.lua:467 +msgid "photils: show confidence value" +msgstr "Photils: visualizza soglia di affidabilità" + +#: photils.lua:468 +msgid "if enabled, the confidence value for each tag is displayed" +msgstr "" +"Se abilitata, verrà visualizzata la soglia di affidabilità per ogni etichetta" + +#: photils.lua:474 +msgid "photils: use exported image for tag request" +msgstr "" +"Photils: utilizza l'immagine esportata per la richiesta delle etichette" + +#: photils.lua:475 msgid "" -"Select an image, click \"Get Tags\" and get \n" -"suggestions for tags." +"If enabled, the image passed to photils for tag suggestion is based on the " +"exported, already edited image. Otherwise, the embedded thumbnail of the RAW " +"file will be used for tag suggestion.The embedded thumbnail could speedup " +"the tag suggestion but can fail if the RAW file is not supported." msgstr "" -"Seleziona un'immagine e clicca su \"Crea etichette\"\n" -"per visualizzare le etichette suggerite." +"Se abilitato, l'immagine passata a Photils per il suggerimento delle" +" etichette si basa sull'immagine esportata e già modificata. " +"Altrimenti, per il suggerimento delle etichette viene utilizzata la miniatura" +" incorporata del file RAW. " +"La miniatura incorporata può velocizzare il suggerimento delle etichette, ma" +" può fallire se il file RAW non è supportato." + +#, lua-format +#~ msgid "Error writing to `%s`" +#~ msgstr "Errore di scrittura su `%s`" diff --git a/locale/it_IT/LC_MESSAGES/script_manager.po b/locale/it_IT/LC_MESSAGES/script_manager.po index d0f1ac59..0876eb80 100644 --- a/locale/it_IT/LC_MESSAGES/script_manager.po +++ b/locale/it_IT/LC_MESSAGES/script_manager.po @@ -1,190 +1,221 @@ # French messages for script_manager.lua # Christophe Agathon , 2020. -# Maurizio Paglia , 2021, 2022. +# SPDX-FileCopyrightText: 2021, 2022, 2023, 2024 Maurizio Paglia msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2020-12-28 10:22+0100\n" -"PO-Revision-Date: 2022-07-11 22:03+0200\n" -"Last-Translator: Maurizio Paglia \n" -"Language-Team: Italian <>\n" -"Language: fr_FR\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-01-06 18:51+0100\n" +"PO-Revision-Date: 2024-01-06 18:54+0100\n" +"Last-Translator: Maurizio \n" +"Language-Team: mpaglia0\n" +"Language: it_IT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Lokalize 21.12.3\n" +"X-Generator: Lokalize 23.08.4\n" "X-Poedit-Basepath: ../../../tools\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Poedit-KeywordsList: _\n" "X-Poedit-SearchPath-0: script_manager.lua\n" -#: script_manager.lua:190 +#: script_manager.lua:101 +msgid "check for updated scripts on start up" +msgstr "Verifica script aggiornati all'avvio" + +#: script_manager.lua:102 +msgid "automatically update scripts to correct version" +msgstr "Aggiorna automaticamente gli script alla versione corretta" + +#: script_manager.lua:372 msgid "Cant read from " msgstr "Non posso leggere da " -#: script_manager.lua:204 +#: script_manager.lua:395 msgid "Loaded " -msgstr "Script caricato " +msgstr "Caricato " -#: script_manager.lua:207 +#: script_manager.lua:407 msgid " failed to load" -msgstr "Non riesco a caricare lo script" +msgstr " non caricato" + +# Peut-être que « désactivé » serait mieux, mais ce n'est pas la traduction de « stopped » +#: script_manager.lua:446 script_manager.lua:729 script_manager.lua:752 +msgid " stopped" +msgstr " arrestato" -#: script_manager.lua:223 -msgid " will not start when darktable is restarted" -msgstr " non verrà avviato al riavvio di darktable" +#: script_manager.lua:450 +msgid " will not start when Ansel is restarted" +msgstr " non verrà avviato al riavvio di Ansel" -#: script_manager.lua:281 script_manager.lua:345 +#: script_manager.lua:518 script_manager.lua:592 msgid "find command is " msgstr "Il comando find è " -#: script_manager.lua:321 +#: script_manager.lua:546 script_manager.lua:641 +msgid "" +"ERROR: git not found. Install or specify the location of the git executable." +msgstr "" +"ERRORE: non trovo git. Installalo o specifica il percorso dell'eseguibile di" +" git." + +#: script_manager.lua:560 msgid "lua scripts successfully updated" msgstr "Gli script lua sono stati correttamente aggiornati" -#: script_manager.lua:381 +#: script_manager.lua:630 msgid "category " -msgstr "Categoria" +msgstr "Categoria " -#: script_manager.lua:381 +#: script_manager.lua:630 msgid " is already in use. Please specify a different category name." msgstr " è già utilizzato. Prego specificare un nome differente." -#: script_manager.lua:410 +#: script_manager.lua:661 msgid "scripts successfully installed into category " msgstr "Gli script sono stati installati correttamente nella categoria " -#: script_manager.lua:426 +#: script_manager.lua:677 msgid "No scripts found to install" msgstr "Non trovo script da installare" -#: script_manager.lua:430 +#: script_manager.lua:681 msgid "failed to download scripts" msgstr "Non riesco a scaricare gli script" # Peut-être que « activé » serait mieux, mais ce n'est pas la traduction de « started » -#: script_manager.lua:458 +#: script_manager.lua:722 msgid " started" msgstr " avviato" -# Peut-être que « désactivé » serait mieux, mais ce n'est pas la traduction de « stopped » -#: script_manager.lua:460 -msgid " stopped" -msgstr " bloccato" - -#: script_manager.lua:545 +#: script_manager.lua:829 msgid "Page " -msgstr "Pag." +msgstr "Pag. " -#: script_manager.lua:545 +#: script_manager.lua:829 msgid " of " msgstr " di " -#: script_manager.lua:674 +#: script_manager.lua:1046 msgid "scripts to update" msgstr "Script da aggiornare" -#: script_manager.lua:675 +#: script_manager.lua:1047 msgid "select the scripts installation to update" msgstr "Selezionare l'installazione di script da aggiornare" -#: script_manager.lua:684 script_manager.lua:742 +#: script_manager.lua:1056 script_manager.lua:1114 msgid "update scripts" msgstr "Aggiornare gli script" -#: script_manager.lua:685 +#: script_manager.lua:1057 msgid "update the lua scripts from the repository" msgstr "Aggiornare gli script lua del repo" -#: script_manager.lua:696 +#: script_manager.lua:1068 msgid "" "enter the URL of the git repository containing the scripts you wish to add" msgstr "Immettere l'URL del repo git che contiene gli script da aggiungere" -#: script_manager.lua:701 +#: script_manager.lua:1073 msgid "name of new category" msgstr "Nome della nuova categoria" -#: script_manager.lua:702 +#: script_manager.lua:1074 msgid "enter a category name for the additional scripts" msgstr "Immettere il nome della categoria per altri script" -#: script_manager.lua:707 +#: script_manager.lua:1079 msgid "URL to download additional scripts from" msgstr "URL dal quale scaricare ulteriori script" -#: script_manager.lua:709 +#: script_manager.lua:1081 msgid "new category to place scripts in" msgstr "Nuova categoria che dovrà contenere gli script" -#: script_manager.lua:712 +#: script_manager.lua:1084 msgid "install additional scripts" msgstr "Installare gli script aggiuntivi" -#: script_manager.lua:720 +#: script_manager.lua:1092 msgid "Enable \"Disable Scripts\" button" msgstr "Abilita il pulsante \"Disabilita Script\"" -#: script_manager.lua:730 +#: script_manager.lua:1102 msgid "Disable Scripts" msgstr "Disabilita Script" -#: script_manager.lua:736 -msgid "lua scripts will not run the next time darktable is started" -msgstr "Gli script lua non verranno avviati al prossimo riavvio di darktable" +#: script_manager.lua:1108 +msgid "lua scripts will not run the next time Ansel is started" +msgstr "Gli script Lua non verranno avviati al prossimo avvio di Ansel" -#: script_manager.lua:745 +#: script_manager.lua:1117 msgid "add more scripts" msgstr "Aggiungi altri script" -#: script_manager.lua:747 +#: script_manager.lua:1119 msgid "disable scripts" msgstr "Disabilita script" -#: script_manager.lua:755 +#: script_manager.lua:1127 msgid "category" msgstr "categoria" -#: script_manager.lua:756 +#: script_manager.lua:1128 msgid "select the script category" msgstr "Seleziona la categoria" -#: script_manager.lua:780 +#: script_manager.lua:1148 msgid "Page:" msgstr "Pag.:" -#: script_manager.lua:808 +#: script_manager.lua:1176 msgid "Scripts" msgstr "Scripts" -#: script_manager.lua:817 +#: script_manager.lua:1185 msgid "scripts per page" msgstr "Script per pagina" -#: script_manager.lua:818 +#: script_manager.lua:1186 msgid "select number of start/stop buttons to display" msgstr "Selezionare il numero di pulsanti da visualizzare" -#: script_manager.lua:829 +#: script_manager.lua:1197 msgid "change number of buttons" msgstr "Modifica la quantità di pulsanti" -#: script_manager.lua:837 +#: script_manager.lua:1205 msgid "Configuration" msgstr "Configurazione" -#: script_manager.lua:858 +#: script_manager.lua:1211 +msgid "use color interface?" +msgstr "Interfaccia a colori" + +#: script_manager.lua:1234 msgid "action" msgstr "Azione" -#: script_manager.lua:864 +#: script_manager.lua:1240 msgid "install/update scripts" msgstr "Installa/aggiorna script" -#: script_manager.lua:864 +#: script_manager.lua:1240 msgid "configure" msgstr "Configura" -#: script_manager.lua:864 +#: script_manager.lua:1240 msgid "start/stop scripts" msgstr "Avvia/blocca script" + +#~ msgid " will not start when darktable is restarted" +#~ msgstr " non verrà avviato al riavvio di darktable" + +#~ msgid "lua scripts will not run the next time darktable is started" +#~ msgstr "" +#~ "Gli script lua non verranno avviati al prossimo riavvio di darktable" + +#~ msgid "script manager" +#~ msgstr "Gestione script lua" +