From 2ef235dddd5b23b5442522530f63a564daf62105 Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:19:30 +0100 Subject: [PATCH 01/14] Create calcDistance.po --- contrib/de_DE/LC_MESSAGES/calcDistance.po | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 contrib/de_DE/LC_MESSAGES/calcDistance.po diff --git a/contrib/de_DE/LC_MESSAGES/calcDistance.po b/contrib/de_DE/LC_MESSAGES/calcDistance.po new file mode 100644 index 0000000..289f676 --- /dev/null +++ b/contrib/de_DE/LC_MESSAGES/calcDistance.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-31 22:57+0100\n" +"PO-Revision-Date: 2016-01-31 23:02+0100\n" +"Language: de_DE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Last-Translator: Tobias Jakobs \n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.4\n" + +#: calcDistance.lua:93 +msgid "Calculate the distance from latitude and longitude in km" +msgstr "Errechne die Entfernung mit mit Hilfe des Längen- und Breitengrads in km" From 07318eb7aa65633784eef22a440ee93cf138c9b0 Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:20:27 +0100 Subject: [PATCH 02/14] Create geo_uri.po --- contrib/de_DE/LC_MESSAGES/geo_uri.po | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 contrib/de_DE/LC_MESSAGES/geo_uri.po diff --git a/contrib/de_DE/LC_MESSAGES/geo_uri.po b/contrib/de_DE/LC_MESSAGES/geo_uri.po new file mode 100644 index 0000000..e778fa1 --- /dev/null +++ b/contrib/de_DE/LC_MESSAGES/geo_uri.po @@ -0,0 +1,30 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-31 22:58+0100\n" +"PO-Revision-Date: 2016-01-31 23:13+0100\n" +"Language: de_DE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Last-Translator: Tobias Jakobs \n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.4\n" + +#: geo_uri.lua:55 +msgid "gnome-maps not found" +msgstr "gnome-maps wurde nicht gefunden" + +#: geo_uri.lua:81 +msgid "Command failed ..." +msgstr "Aufruf fehlgeschlagen ..." + +#: geo_uri.lua:88 +msgid "Open Location in Gnome Maps" +msgstr "Öffnet den Ort in Gnome Maps" From 96d5c71e0dfdca54b058c28a210b5f6640d8c697 Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:21:51 +0100 Subject: [PATCH 03/14] Create gps_select.po --- contrib/de_DE/LC_MESSAGES/gps_select.po | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 contrib/de_DE/LC_MESSAGES/gps_select.po diff --git a/contrib/de_DE/LC_MESSAGES/gps_select.po b/contrib/de_DE/LC_MESSAGES/gps_select.po new file mode 100644 index 0000000..b1193aa --- /dev/null +++ b/contrib/de_DE/LC_MESSAGES/gps_select.po @@ -0,0 +1,26 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-31 22:58+0100\n" +"PO-Revision-Date: 2016-01-31 23:05+0100\n" +"Language: de_DE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Last-Translator: Tobias Jakobs \n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.4\n" + +#: gps_select.lua:59 +msgid "Select all images with GPS information" +msgstr "Markiert alle Bilder mit GPS Informationen" + +#: gps_select.lua:60 +msgid "Select all images without GPS information" +msgstr "Markiert alle Bilder ohne GPS Informationen" From 71ea05598fea8ebde00787a515f6c42ae1590241 Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:22:45 +0100 Subject: [PATCH 04/14] Create hugin.po --- contrib/de_DE/LC_MESSAGES/hugin.po | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 contrib/de_DE/LC_MESSAGES/hugin.po diff --git a/contrib/de_DE/LC_MESSAGES/hugin.po b/contrib/de_DE/LC_MESSAGES/hugin.po new file mode 100644 index 0000000..467758d --- /dev/null +++ b/contrib/de_DE/LC_MESSAGES/hugin.po @@ -0,0 +1,42 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-31 22:59+0100\n" +"PO-Revision-Date: 2016-01-31 23:09+0100\n" +"Language: de_DE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Last-Translator: Tobias Jakobs \n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.4\n" + +#: hugin.lua:73 +msgid "hugin not found" +msgstr "Hugin wurde nicht gefunden" + +#: hugin.lua:97 +msgid "Will try to stitch now" +msgstr "Versuche Bilder zusammen zu fügen" + +#: hugin.lua:102 +msgid "Creating pto file" +msgstr "Erzeuge pto Datei" + +#: hugin.lua:105 +msgid "Running Assistent" +msgstr "Starte den Assistenten" + +#: hugin.lua:118 +msgid "Command hugin failed ..." +msgstr "Aufruf von hugin fehlgeschlagen ..." + +#: hugin.lua:124 +msgid "Hugin Panorama" +msgstr "Hugin Panorama" From 3ee50a290f64ac96a7bba5977c6ef274d906a98d Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:23:45 +0100 Subject: [PATCH 05/14] Create slideshowMusic.po --- contrib/de_DE/LC_MESSAGES/slideshowMusic.po | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 contrib/de_DE/LC_MESSAGES/slideshowMusic.po diff --git a/contrib/de_DE/LC_MESSAGES/slideshowMusic.po b/contrib/de_DE/LC_MESSAGES/slideshowMusic.po new file mode 100644 index 0000000..6919bba --- /dev/null +++ b/contrib/de_DE/LC_MESSAGES/slideshowMusic.po @@ -0,0 +1,30 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-31 22:59+0100\n" +"PO-Revision-Date: 2016-01-31 23:13+0100\n" +"Language: de_DE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Last-Translator: Tobias Jakobs \n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.4\n" + +#: slideshowMusic.lua:80 +msgid "Slideshow background music file" +msgstr "Diashow Hintergrundmusik-Datei" + +#: slideshowMusic.lua:84 +msgid "Play slideshow background music" +msgstr "Diashow Hintergrundmusik abspielen" + +#: slideshowMusic.lua:85 +msgid "Plays music with rhythmbox if a slideshow starts" +msgstr "Musik mit Rhythmbox abspielen, wenn die Diashow beginnt" From fb8da04a1885c21620462d2bbcb6b6bb9e22e6d3 Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:25:18 +0100 Subject: [PATCH 06/14] Update slideshowMusic.lua translations --- contrib/slideshowMusic.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/contrib/slideshowMusic.lua b/contrib/slideshowMusic.lua index 3ba8944..776c71e 100644 --- a/contrib/slideshowMusic.lua +++ b/contrib/slideshowMusic.lua @@ -25,8 +25,16 @@ USAGE ]] local dt = require "darktable" +local gettext = dt.gettext dt.configuration.check_version(...,{2,0,2},{3,0,0}) +-- Tell gettext where to find the .mo file translating messages for a particular domain +gettext.bindtextdomain("slideshowMusic",dt.configuration.config_dir.."/lua/") + +local function _(msgid) + return gettext.dgettext("slideshowMusic", msgid) +end + local function checkIfBinExists(bin) local handle = io.popen("which "..bin) local result = handle:read() @@ -69,12 +77,12 @@ local function playSlideshowMusic(_, old_view, new_view) end -- Preferences -dt.preferences.register("slideshowMusic", "SlideshowMusic", "file", "Slideshow background music file", "", "") +dt.preferences.register("slideshowMusic", "SlideshowMusic", "file", _("Slideshow background music file"), "", "") dt.preferences.register("slideshowMusic", "PlaySlideshowMusic", "bool", - "Play slideshow background music", - "Plays music with rhythmbox if a slideshow starts", + _("Play slideshow background music"), + _("Plays music with rhythmbox if a slideshow starts"), true) -- Register dt.register_event("view-changed",playSlideshowMusic) From 5ff73657e1c59361e17afd23882a1eeea0b892db Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:25:49 +0100 Subject: [PATCH 07/14] Update hugin.lua translations --- contrib/hugin.lua | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/contrib/hugin.lua b/contrib/hugin.lua index 40c2371..d6f6622 100644 --- a/contrib/hugin.lua +++ b/contrib/hugin.lua @@ -34,10 +34,18 @@ This plugin will add a new storage option and calls hugin after export. ]] local dt = require "darktable" +local gettext = dt.gettext -- works with darktable API version 2.0.0 and 3.0.0 dt.configuration.check_version(...,{2,0,0},{3,0,0}) +-- Tell gettext where to find the .mo file translating messages for a particular domain +gettext.bindtextdomain("hugin",dt.configuration.config_dir.."/lua/") + +local function _(msgid) + return gettext.dgettext("hugin", msgid) +end + local function checkIfBinExists(bin) local handle = io.popen("which "..bin) local result = handle:read() @@ -62,7 +70,7 @@ end local function create_panorama(storage, image_table, extra_data) --finalize if not checkIfBinExists("hugin") then - darktable.print_error("hugin not found") + dt.print_error(_("hugin not found")) return end @@ -86,15 +94,15 @@ local function create_panorama(storage, image_table, extra_data) --finalize img_list = img_list ..v.. " " end - dt.print("Will try to stitch now") + dt.print(_("Will try to stitch now")) local huginStartCommand if (hugin_executor) then huginStartCommand = "pto_gen "..img_list.." -o "..dt.configuration.tmp_dir.."/project.pto" - dt.print("Creating pto file") + dt.print(_("Creating pto file")) coroutine.yield("RUN_COMMAND", huginStartCommand) - dt.print("Running Assistent") + dt.print(_("Running Assistent")) huginStartCommand = "hugin_executor --assistant "..dt.configuration.tmp_dir.."/project.pto" coroutine.yield("RUN_COMMAND", huginStartCommand) @@ -107,13 +115,13 @@ local function create_panorama(storage, image_table, extra_data) --finalize if coroutine.yield("RUN_COMMAND", huginStartCommand) then - dt.print("Command hugin failed ...") + dt.print(_("Command hugin failed ...")) end end -- Register -dt.register_storage("module_hugin", "Hugin Panorama", show_status, create_panorama) +dt.register_storage("module_hugin", _("Hugin Panorama"), show_status, create_panorama) -- -- vim: shiftwidth=2 expandtab tabstop=2 cindent syntax=lua From 19bef607527a913c9c70b00ec3eebd7b778df0d1 Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:26:23 +0100 Subject: [PATCH 08/14] Update gps_select.lua translate --- contrib/gps_select.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/contrib/gps_select.lua b/contrib/gps_select.lua index 6955971..b1c47ca 100644 --- a/contrib/gps_select.lua +++ b/contrib/gps_select.lua @@ -24,7 +24,16 @@ USAGE ]] local dt = require "darktable" +local gettext = dt.gettext dt.configuration.check_version(...,{2,0,1},{3,0,0}) + +-- Tell gettext where to find the .mo file translating messages for a particular domain +gettext.bindtextdomain("gps_select",dt.configuration.config_dir.."/lua/") + +local function _(msgid) + return gettext.dgettext("gps_select", msgid) +end + table = require "table" local function selectWithGPS() @@ -47,5 +56,5 @@ local function selectWithoutGPS() dt.gui.selection(selection) end -dt.register_event("shortcut", selectWithGPS, "Select all images with GPS information") -dt.register_event("shortcut", selectWithoutGPS, "Select all images without GPS information") +dt.register_event("shortcut", selectWithGPS, _("Select all images with GPS information")) +dt.register_event("shortcut", selectWithoutGPS, _("Select all images without GPS information")) From d46f7023d54fb4e4ea0cda76f730145ce5b35938 Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:27:00 +0100 Subject: [PATCH 09/14] Update geo_uri.lua translations --- contrib/geo_uri.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/contrib/geo_uri.lua b/contrib/geo_uri.lua index 34ed1c4..04ad553 100644 --- a/contrib/geo_uri.lua +++ b/contrib/geo_uri.lua @@ -27,8 +27,16 @@ USAGE ]] local dt = require "darktable" +local gettext = dt.gettext dt.configuration.check_version(...,{3,0,0}) +-- Tell gettext where to find the .mo file translating messages for a particular domain +gettext.bindtextdomain("geo_uri",dt.configuration.config_dir.."/lua/") + +local function _(msgid) + return gettext.dgettext("geo_uri", msgid) +end + local function checkIfBinExists(bin) local handle = io.popen("which "..bin) local result = handle:read() @@ -44,7 +52,7 @@ end local function openLocationInGnomeMaps() if not checkIfBinExists("gnome-maps") then - darktable.print_error("gnome-maps not found") + dt.print_error(_("gnome-maps not found")) return end @@ -70,11 +78,11 @@ local function openLocationInGnomeMaps() dt.print_error(startCommand) if coroutine.yield("RUN_COMMAND", startCommand) then - dt.print("Command failed ...") + dt.print(_("Command failed ...")) end end end -- Register -dt.register_event("shortcut", openLocationInGnomeMaps, "Open Location in Gnome Maps") +dt.register_event("shortcut", openLocationInGnomeMaps, _("Open Location in Gnome Maps")) From e47a335deca8b269572216f7ae824250a1b5cb9e Mon Sep 17 00:00:00 2001 From: supertobi Date: Sun, 31 Jan 2016 23:27:34 +0100 Subject: [PATCH 10/14] Update calcDistance.lua translations --- contrib/calcDistance.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/contrib/calcDistance.lua b/contrib/calcDistance.lua index 1c76c72..ea1c4b4 100644 --- a/contrib/calcDistance.lua +++ b/contrib/calcDistance.lua @@ -26,8 +26,16 @@ USAGE ]] local dt = require "darktable" +local gettext = dt.gettext dt.configuration.check_version(...,{3,0,0}) +-- Tell gettext where to find the .mo file translating messages for a particular domain +gettext.bindtextdomain("calcDistance",dt.configuration.config_dir.."/lua/") + +local function _(msgid) + return gettext.dgettext("calcDistance", msgid) +end + local function calcDistance() local sel_images = dt.gui.selection() @@ -82,4 +90,4 @@ local function calcDistance() end -- Register -dt.register_event("shortcut",calcDistance,"Calculate the distance from latitude and longitude in km") +dt.register_event("shortcut",calcDistance,_("Calculate the distance from latitude and longitude in km")) From 9b4e46b625a21666b83e98549d98a8e900fb9a9e Mon Sep 17 00:00:00 2001 From: supertobi Date: Tue, 2 Feb 2016 14:48:17 +0100 Subject: [PATCH 11/14] Update gps_select.po GPS Informationen -> GPS-Informationen --- contrib/de_DE/LC_MESSAGES/gps_select.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/de_DE/LC_MESSAGES/gps_select.po b/contrib/de_DE/LC_MESSAGES/gps_select.po index b1193aa..ad9a5af 100644 --- a/contrib/de_DE/LC_MESSAGES/gps_select.po +++ b/contrib/de_DE/LC_MESSAGES/gps_select.po @@ -23,4 +23,4 @@ msgstr "Markiert alle Bilder mit GPS Informationen" #: gps_select.lua:60 msgid "Select all images without GPS information" -msgstr "Markiert alle Bilder ohne GPS Informationen" +msgstr "Markiert alle Bilder ohne GPS-Informationen" From 24d1a7dd67872191dc163dd5be9f08af8180b90a Mon Sep 17 00:00:00 2001 From: supertobi Date: Tue, 2 Feb 2016 14:48:45 +0100 Subject: [PATCH 12/14] Update calcDistance.po 2x "mit" --- contrib/de_DE/LC_MESSAGES/calcDistance.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/de_DE/LC_MESSAGES/calcDistance.po b/contrib/de_DE/LC_MESSAGES/calcDistance.po index 289f676..b493110 100644 --- a/contrib/de_DE/LC_MESSAGES/calcDistance.po +++ b/contrib/de_DE/LC_MESSAGES/calcDistance.po @@ -19,4 +19,4 @@ msgstr "" #: calcDistance.lua:93 msgid "Calculate the distance from latitude and longitude in km" -msgstr "Errechne die Entfernung mit mit Hilfe des Längen- und Breitengrads in km" +msgstr "Errechne die Entfernung mit Hilfe des Längen- und Breitengrads in km" From e2e63bbfc837d982145d46680c4f09af43bc4c4b Mon Sep 17 00:00:00 2001 From: supertobi Date: Tue, 2 Feb 2016 14:51:19 +0100 Subject: [PATCH 13/14] Update gps_select.po GPS Informationen -> GPS-Informationen --- contrib/de_DE/LC_MESSAGES/gps_select.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/de_DE/LC_MESSAGES/gps_select.po b/contrib/de_DE/LC_MESSAGES/gps_select.po index ad9a5af..1b343c0 100644 --- a/contrib/de_DE/LC_MESSAGES/gps_select.po +++ b/contrib/de_DE/LC_MESSAGES/gps_select.po @@ -19,7 +19,7 @@ msgstr "" #: gps_select.lua:59 msgid "Select all images with GPS information" -msgstr "Markiert alle Bilder mit GPS Informationen" +msgstr "Markiert alle Bilder mit GPS-Informationen" #: gps_select.lua:60 msgid "Select all images without GPS information" From 08205b96cde60d62821a7f7066ee1e933d98c00f Mon Sep 17 00:00:00 2001 From: supertobi Date: Tue, 2 Feb 2016 14:54:09 +0100 Subject: [PATCH 14/14] Update hugin.po MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit zusammenzufügen --- contrib/de_DE/LC_MESSAGES/hugin.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/de_DE/LC_MESSAGES/hugin.po b/contrib/de_DE/LC_MESSAGES/hugin.po index 467758d..bdc8cde 100644 --- a/contrib/de_DE/LC_MESSAGES/hugin.po +++ b/contrib/de_DE/LC_MESSAGES/hugin.po @@ -23,7 +23,7 @@ msgstr "Hugin wurde nicht gefunden" #: hugin.lua:97 msgid "Will try to stitch now" -msgstr "Versuche Bilder zusammen zu fügen" +msgstr "Versuche Bilder zusammenzufügen" #: hugin.lua:102 msgid "Creating pto file"