Merge pull request #306 from chrisaga/localize-copy_paste_metadata.lua
Localize copy paste metadata.lua
This commit is contained in:
35
locale/fr_FR/LC_MESSAGES/copy_paste_metadata.po
Normal file
35
locale/fr_FR/LC_MESSAGES/copy_paste_metadata.po
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# French messages for copy_paste_metadata.lua
|
||||||
|
# Christophe Agathon <christophe.agathon@gmail.com>, 2020
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: copy_paste_metadata\n"
|
||||||
|
"POT-Creation-Date: 2020-12-26 12:49+0100\n"
|
||||||
|
"PO-Revision-Date: 2020-12-26 12:52+0100\n"
|
||||||
|
"Last-Translator: Christophe Agathon <christophe.agathon@gmail.com>\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: ../../../official\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||||
|
"X-Poedit-SourceCharset: UTF-8\n"
|
||||||
|
"X-Poedit-KeywordsList: _\n"
|
||||||
|
"X-Poedit-SearchPath-0: copy_paste_metadata.lua\n"
|
||||||
|
|
||||||
|
#: copy_paste_metadata.lua:115
|
||||||
|
msgid "copy metadata"
|
||||||
|
msgstr "copier les métadonnées"
|
||||||
|
|
||||||
|
#: copy_paste_metadata.lua:117
|
||||||
|
msgid "copy metadata of the first selected image"
|
||||||
|
msgstr "copier les métadonnées de la première image sélectionnée"
|
||||||
|
|
||||||
|
#: copy_paste_metadata.lua:121
|
||||||
|
msgid "paste metadata"
|
||||||
|
msgstr "coller les métadonnées"
|
||||||
|
|
||||||
|
#: copy_paste_metadata.lua:123
|
||||||
|
msgid "paste metadata to the selected images"
|
||||||
|
msgstr "coller les métadonnées vers les images sélectionnées"
|
||||||
@@ -27,6 +27,7 @@ USAGE
|
|||||||
|
|
||||||
local dt = require "darktable"
|
local dt = require "darktable"
|
||||||
local du = require "lib/dtutils"
|
local du = require "lib/dtutils"
|
||||||
|
local gettext = dt.gettext
|
||||||
|
|
||||||
du.check_min_api_version("3.0.0", "copy_paste_metadata")
|
du.check_min_api_version("3.0.0", "copy_paste_metadata")
|
||||||
|
|
||||||
@@ -48,6 +49,13 @@ local publisher = ""
|
|||||||
local rights = ""
|
local rights = ""
|
||||||
local tags = {}
|
local tags = {}
|
||||||
|
|
||||||
|
-- Tell gettext where to find the .mo file translating messages for a particular domain
|
||||||
|
gettext.bindtextdomain("copy_paste_metadata",dt.configuration.config_dir.."/lua/locale/")
|
||||||
|
|
||||||
|
local function _(msgid)
|
||||||
|
return gettext.dgettext("copy_paste_metadata", msgid)
|
||||||
|
end
|
||||||
|
|
||||||
local function copy(image)
|
local function copy(image)
|
||||||
if not image then
|
if not image then
|
||||||
have_data = false
|
have_data = false
|
||||||
@@ -105,15 +113,15 @@ local function paste(images)
|
|||||||
end
|
end
|
||||||
|
|
||||||
dt.gui.libs.image.register_action(
|
dt.gui.libs.image.register_action(
|
||||||
"copy metadata",
|
_("copy metadata"),
|
||||||
function(event, images) copy(images[1]) end,
|
function(event, images) copy(images[1]) end,
|
||||||
"copy metadata of the first selected image"
|
_("copy metadata of the first selected image")
|
||||||
)
|
)
|
||||||
|
|
||||||
dt.gui.libs.image.register_action(
|
dt.gui.libs.image.register_action(
|
||||||
"paste metadata",
|
_("paste metadata"),
|
||||||
function(event, images) paste(images) end,
|
function(event, images) paste(images) end,
|
||||||
"paste metadata to the selected images"
|
_("paste metadata to the selected images")
|
||||||
)
|
)
|
||||||
|
|
||||||
dt.register_event(
|
dt.register_event(
|
||||||
|
|||||||
Reference in New Issue
Block a user