diff --git a/add_lens_info.lua b/add_lens_info.lua index a043428..97b1b86 100644 --- a/add_lens_info.lua +++ b/add_lens_info.lua @@ -73,10 +73,20 @@ du.check_min_api_version("7.0.0", MODULE) -- choose the minimum version that c -- I 1 8 N -- - - - - - - - - - - - - - - - - - - - - - - - - - -local gettext = dt.gettext.gettext +local os_path_seperator = "/" +local scriptfile = debug.getinfo( 1, "S" ) +local localedir = dt.configuration.config_dir..'/lua/locale/' +if scriptfile ~= nil and scriptfile.source ~= nil then + local path = scriptfile.source:match( "[^@].*[/\\]" ) + localedir = path..os_path_seperator..'locale' +end +dt.print_log( "localedir: "..localedir ) + +local gettext = dt.gettext +gettext.bindtextdomain(MODULE, localedir) local function _(msgid) - return gettext(msgid) + return gettext.dgettext(MODULE, msgid) end diff --git a/locale/de_DE/LC_MESSAGES/add_lens_info.mo b/locale/de_DE/LC_MESSAGES/add_lens_info.mo new file mode 100644 index 0000000..cc5f7c6 Binary files /dev/null and b/locale/de_DE/LC_MESSAGES/add_lens_info.mo differ diff --git a/locale/de_DE/LC_MESSAGES/add_lens_info.po b/locale/de_DE/LC_MESSAGES/add_lens_info.po new file mode 100644 index 0000000..8e7c5f5 --- /dev/null +++ b/locale/de_DE/LC_MESSAGES/add_lens_info.po @@ -0,0 +1,66 @@ +# 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. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-05-06 15:01+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: add_lens_info.lua:105 +msgid "add lens info" +msgstr "manuelle Objektive" + +#: add_lens_info.lua:106 +msgid "add user specifed lens information to exif_lens field" +msgstr "fügt dem exif_lens Feld ein vom Benutzer vorgegebenes Objektiv hinzu" + +#: add_lens_info.lua:220 add_lens_info.lua:294 +msgid "add new lens name" +msgstr "Objektiv hinzufügen" + +#: add_lens_info.lua:221 add_lens_info.lua:295 +msgid "select lens name" +msgstr "Objektiv auswählen" + +#: add_lens_info.lua:231 +msgid "lens name/identification" +msgstr "Name und ID des Objektivs" + +#: add_lens_info.lua:236 add_lens_info.lua:256 +msgid "add new lens" +msgstr "Objektiv hinzufügen" + +#: add_lens_info.lua:237 +msgid "add new lens string to choices" +msgstr "Objektiv den Vorgaben hinzufügen" + +#: add_lens_info.lua:262 +msgid "select lens name to apply to images" +msgstr "Objektiv auswählen" + +#: add_lens_info.lua:270 add_lens_info.lua:312 add_lens_info.lua:367 +msgid "apply lens name" +msgstr "Objektiv verwenden" + +#: add_lens_info.lua:271 +msgid "apply lens name to selected images" +msgstr "Objektiv auf ausgewählte Bilder anwenden" + +#: add_lens_info.lua:280 +msgid "select lens name to apply" +msgstr "Objektiv wählen" + +#: add_lens_info.lua:312 +msgid "apply lens name from apply lens info module to selected images" +msgstr "wendet das in 'manuelle Objektive' gewählte Objektiv auf die Auswahl an"