From 367631af99c46670d35f47b15291f0ce7c9dceaa Mon Sep 17 00:00:00 2001 From: chrisaga Date: Sun, 3 Jan 2021 20:55:45 +0100 Subject: [PATCH 1/3] copy_attach_detachtags.lua localization --- contrib/copy_attach_detach_tags.lua | 24 ++++--- .../LC_MESSAGES/copy_attach_detach_tags.po | 72 +++++++++++++++++++ 2 files changed, 86 insertions(+), 10 deletions(-) create mode 100644 locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po diff --git a/contrib/copy_attach_detach_tags.lua b/contrib/copy_attach_detach_tags.lua index 43b40e2..8543647 100644 --- a/contrib/copy_attach_detach_tags.lua +++ b/contrib/copy_attach_detach_tags.lua @@ -112,7 +112,7 @@ local function mcopy_tags() local function attach_tags() if next(image_tags) == nil then - dt.print(_('No tags to attached, please copy tags first.')) + dt.print(_('No tag to attach, please copy tags first.')) return true end @@ -163,7 +163,7 @@ end local function install_module() if not cadt.module_installed then - dt.register_lib("tagging_addon","Tagging addon",true,true,{ + dt.register_lib("tagging_addon","tagging addon",true,true,{ [dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER",500} }, dt.new_widget("box") { @@ -194,22 +194,26 @@ local taglabel = dt.new_widget("label") { local box1 = dt.new_widget("box"){ orientation = "horizontal", dt.new_widget("button") { - label = _('multi copy tags'), - clicked_callback = mcopy_tags}, + label = _('multi copy tags'), + tooltip = _('copy tags from selected image(s)'), + clicked_callback = mcopy_tags}, dt.new_widget("button") { - label = _('paste tags'), - clicked_callback = attach_tags} + tooltip = _('paste tags to selected image(s)'), + label = _('paste tags'), + clicked_callback = attach_tags} } local box2 = dt.new_widget("box"){ orientation = "horizontal", dt.new_widget("button") { - label = _('replace tags'), - clicked_callback = replace_tags}, + label = _('replace tags'), + tooltip = _('replace tags from selected image(s)'), + clicked_callback = replace_tags}, dt.new_widget("button") { - label = _('remove all tags'), - clicked_callback = detach_tags} + label = _('remove all tags'), + tooltip = _('remove tags from selected image(s)'), + clicked_callback = detach_tags} } local sep = dt.new_widget("separator"){} diff --git a/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po b/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po new file mode 100644 index 0000000..1cdae08 --- /dev/null +++ b/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po @@ -0,0 +1,72 @@ +msgid "" +msgstr "" +"Project-Id-Version: \n" +"POT-Creation-Date: 2021-01-03 20:18+0100\n" +"PO-Revision-Date: 2021-01-03 20:46+0100\n" +"Last-Translator: Christophe Agathon \n" +"Language-Team: \n" +"Language: fr_FR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.3\n" +"X-Poedit-Basepath: ../../../contrib\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Poedit-KeywordsList: _\n" +"X-Poedit-SearchPath-0: copy_attach_detach_tags.lua\n" + +#: copy_attach_detach_tags.lua:93 +msgid "Image tags copied ..." +msgstr "Mots-clés de l'image copiés ..." + +#: copy_attach_detach_tags.lua:115 +msgid "No tag to attach, please copy tags first." +msgstr "Pas de mot-clé à attacher, veuillez d'abord copier les mots-clés." + +#: copy_attach_detach_tags.lua:139 +msgid "Tags attached ..." +msgstr "Mots-clés attachés ..." + +#: copy_attach_detach_tags.lua:155 +msgid "Tags removed from image(s)." +msgstr "Mots-clés supprimés des images." + +#: copy_attach_detach_tags.lua:161 +msgid "Tags replaced" +msgstr "Mots-clés remplacés" + +#: copy_attach_detach_tags.lua:189 +msgid "tag clipboard" +msgstr "presse-papier des mots-clés" + +#: copy_attach_detach_tags.lua:197 +msgid "multi copy tags" +msgstr "copier mots-clés" + +#: copy_attach_detach_tags.lua:200 +msgid "paste tags" +msgstr "coller mots-clés" + +#: copy_attach_detach_tags.lua:208 +msgid "replace tags" +msgstr "remplacer mots-clés" + +#: copy_attach_detach_tags.lua:211 +msgid "remove all tags" +msgstr "supprimer tous mots-clés" + +#: copy_attach_detach_tags.lua:248 +msgid "copy tags from selected image(s)" +msgstr "copier les mots-clés des images sélectionnnées" + +#: copy_attach_detach_tags.lua:253 +msgid "paste tags to selected image(s)" +msgstr "coller les mots clés dans les images sélectionnées" + +#: copy_attach_detach_tags.lua:258 +msgid "remove tags from selected image(s)" +msgstr "supprimer les mots-clés des images sélectionnées" + +#: copy_attach_detach_tags.lua:263 +msgid "replace tags from selected image(s)" +msgstr "remplacer les mots-clés des images sélectionnées" From a71889021f0fdec82cbd0822f339f29b35b808ec Mon Sep 17 00:00:00 2001 From: chrisaga Date: Sun, 3 Jan 2021 21:02:25 +0100 Subject: [PATCH 2/3] add copy_attach_detachtags.po header --- locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po | 2 ++ 1 file changed, 2 insertions(+) diff --git a/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po b/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po index 1cdae08..ba6d897 100644 --- a/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po +++ b/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po @@ -1,3 +1,5 @@ +# French messages for copy_attach_detach_tags.lua +# Christophe Agathon , 2021 msgid "" msgstr "" "Project-Id-Version: \n" From 359a1fa3a919f1fabe0ee676f00219c537664a1d Mon Sep 17 00:00:00 2001 From: chrisaga Date: Sun, 10 Jan 2021 19:54:10 +0100 Subject: [PATCH 3/3] As discussed, localize module name in GUI --- contrib/copy_attach_detach_tags.lua | 3 +- .../LC_MESSAGES/copy_attach_detach_tags.po | 44 ++++++++++--------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/contrib/copy_attach_detach_tags.lua b/contrib/copy_attach_detach_tags.lua index 8543647..d4ab57d 100644 --- a/contrib/copy_attach_detach_tags.lua +++ b/contrib/copy_attach_detach_tags.lua @@ -163,7 +163,7 @@ end local function install_module() if not cadt.module_installed then - dt.register_lib("tagging_addon","tagging addon",true,true,{ + dt.register_lib("tagging_addon",_('tagging addon'),true,true,{ [dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER",500} }, dt.new_widget("box") { @@ -201,7 +201,6 @@ local box1 = dt.new_widget("box"){ tooltip = _('paste tags to selected image(s)'), label = _('paste tags'), clicked_callback = attach_tags} - } local box2 = dt.new_widget("box"){ diff --git a/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po b/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po index ba6d897..f7ee47e 100644 --- a/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po +++ b/locale/fr_FR/LC_MESSAGES/copy_attach_detach_tags.po @@ -3,8 +3,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2021-01-03 20:18+0100\n" -"PO-Revision-Date: 2021-01-03 20:46+0100\n" +"POT-Creation-Date: 2021-01-10 19:39+0100\n" +"PO-Revision-Date: 2021-01-10 19:43+0100\n" "Last-Translator: Christophe Agathon \n" "Language-Team: \n" "Language: fr_FR\n" @@ -37,6 +37,10 @@ msgstr "Mots-clés supprimés des images." msgid "Tags replaced" msgstr "Mots-clés remplacés" +#: copy_attach_detach_tags.lua:166 +msgid "tagging addon" +msgstr "mots-clés extra" + #: copy_attach_detach_tags.lua:189 msgid "tag clipboard" msgstr "presse-papier des mots-clés" @@ -45,30 +49,30 @@ msgstr "presse-papier des mots-clés" msgid "multi copy tags" msgstr "copier mots-clés" -#: copy_attach_detach_tags.lua:200 -msgid "paste tags" -msgstr "coller mots-clés" - -#: copy_attach_detach_tags.lua:208 -msgid "replace tags" -msgstr "remplacer mots-clés" - -#: copy_attach_detach_tags.lua:211 -msgid "remove all tags" -msgstr "supprimer tous mots-clés" - -#: copy_attach_detach_tags.lua:248 +#: copy_attach_detach_tags.lua:198 copy_attach_detach_tags.lua:252 msgid "copy tags from selected image(s)" msgstr "copier les mots-clés des images sélectionnnées" -#: copy_attach_detach_tags.lua:253 +#: copy_attach_detach_tags.lua:201 copy_attach_detach_tags.lua:257 msgid "paste tags to selected image(s)" msgstr "coller les mots clés dans les images sélectionnées" -#: copy_attach_detach_tags.lua:258 -msgid "remove tags from selected image(s)" -msgstr "supprimer les mots-clés des images sélectionnées" +#: copy_attach_detach_tags.lua:202 +msgid "paste tags" +msgstr "coller mots-clés" -#: copy_attach_detach_tags.lua:263 +#: copy_attach_detach_tags.lua:210 +msgid "replace tags" +msgstr "remplacer mots-clés" + +#: copy_attach_detach_tags.lua:211 copy_attach_detach_tags.lua:267 msgid "replace tags from selected image(s)" msgstr "remplacer les mots-clés des images sélectionnées" + +#: copy_attach_detach_tags.lua:214 +msgid "remove all tags" +msgstr "supprimer tous mots-clés" + +#: copy_attach_detach_tags.lua:215 copy_attach_detach_tags.lua:262 +msgid "remove tags from selected image(s)" +msgstr "supprimer les mots-clés des images sélectionnées"