Merge pull request #43 from supertobi/master

Translations
This commit is contained in:
houz
2016-02-03 12:26:52 +01:00
10 changed files with 206 additions and 15 deletions

View File

@@ -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"))

View File

@@ -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 <EMAIL@ADDRESS>, 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 <tobias.jakobs@gmail.com>\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 Hilfe des Längen- und Breitengrads in km"

View File

@@ -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 <EMAIL@ADDRESS>, 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 <tobias.jakobs@gmail.com>\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"

View File

@@ -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 <EMAIL@ADDRESS>, 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 <tobias.jakobs@gmail.com>\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"

View File

@@ -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 <EMAIL@ADDRESS>, 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 <tobias.jakobs@gmail.com>\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 zusammenzufü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"

View File

@@ -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 <EMAIL@ADDRESS>, 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 <tobias.jakobs@gmail.com>\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"

View File

@@ -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"))

View File

@@ -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"))

View File

@@ -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

View File

@@ -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)