Merge pull request #90 from TurboGit/master

general translation reorg.
This commit is contained in:
supertobi
2017-04-11 08:28:47 +02:00
committed by GitHub
30 changed files with 211 additions and 143 deletions

View File

@@ -46,7 +46,7 @@ dt.configuration.check_version(...,{3,0,0},{4,0,0})
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("clear_GPS",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("clear_GPS",dt.configuration.config_dir.."/lua/locale/")
local function _(msgid) local function _(msgid)
return gettext.dgettext("clear_GPS", msgid) return gettext.dgettext("clear_GPS", msgid)

View File

@@ -43,7 +43,7 @@ local gettext = dt.gettext
dt.configuration.check_version(...,{3,0,0},{4,0,0},{5,0,0}) dt.configuration.check_version(...,{3,0,0},{4,0,0},{5,0,0})
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("copy_attach_detach_tags",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("copy_attach_detach_tags",dt.configuration.config_dir.."/lua/locale/")
local function _(msgid) local function _(msgid)
return gettext.dgettext("copy_attach_detach_tags", msgid) return gettext.dgettext("copy_attach_detach_tags", msgid)

View File

@@ -39,7 +39,7 @@ local gettext = dt.gettext
dt.configuration.check_version(...,{3,0,0},{4,0,0}) dt.configuration.check_version(...,{3,0,0},{4,0,0})
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("geoJSON_export",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("geoJSON_export",dt.configuration.config_dir.."/lua/locale/")
local function _(msgid) local function _(msgid)
return gettext.dgettext("geoJSON_export", msgid) return gettext.dgettext("geoJSON_export", msgid)

View File

@@ -32,7 +32,7 @@ local gettext = dt.gettext
dt.configuration.check_version(...,{3,0,0},{4,0,0}) dt.configuration.check_version(...,{3,0,0},{4,0,0})
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("geoToolbox",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("geoToolbox",dt.configuration.config_dir.."/lua/locale/")
local function _(msgid) local function _(msgid)
return gettext.dgettext("geoToolbox", msgid) return gettext.dgettext("geoToolbox", msgid)

View File

@@ -71,7 +71,7 @@ local gettext = dt.gettext
dt.configuration.check_version(...,{3,0,0},{4,0,0},{5,0,0}) dt.configuration.check_version(...,{3,0,0},{4,0,0},{5,0,0})
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("gimp",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("gimp",dt.configuration.config_dir.."/lua/locale/")
local function split_filepath(str) local function split_filepath(str)
local result = {} local result = {}
@@ -315,5 +315,3 @@ end
dt.register_storage("module_gimp", _("Edit with GIMP"), show_status, gimp_edit) dt.register_storage("module_gimp", _("Edit with GIMP"), show_status, gimp_edit)
-- --

View File

@@ -42,7 +42,7 @@ local gettext = dt.gettext
dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0},{5,0,0}) dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0},{5,0,0})
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("hugin",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("hugin",dt.configuration.config_dir.."/lua/locale/")
local function _(msgid) local function _(msgid)
return gettext.dgettext("hugin", msgid) return gettext.dgettext("hugin", msgid)

View File

@@ -43,7 +43,7 @@ local gettext = dt.gettext
dt.configuration.check_version(...,{3,0,0},{4,0,0}) dt.configuration.check_version(...,{3,0,0},{4,0,0})
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("kml_export",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("kml_export",dt.configuration.config_dir.."/lua/locale/")
local function _(msgid) local function _(msgid)
return gettext.dgettext("kml_export", msgid) return gettext.dgettext("kml_export", msgid)

View File

@@ -45,7 +45,7 @@ require "official/yield"
local gettext = dt.gettext local gettext = dt.gettext
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("pdf_slideshow",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("pdf_slideshow",dt.configuration.config_dir.."/lua/locale/")
local function _(msgid) local function _(msgid)
return gettext.dgettext("pdf_slideshow", msgid) return gettext.dgettext("pdf_slideshow", msgid)

View File

@@ -52,7 +52,7 @@ local gettext = dt.gettext
dt.configuration.check_version(...,{3,0,0},{4,0,0},{5,0,0}) dt.configuration.check_version(...,{3,0,0},{4,0,0},{5,0,0})
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("quicktag",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("quicktag",dt.configuration.config_dir.."/lua/locale/")
local function _(msgid) local function _(msgid)
return gettext.dgettext("quicktag", msgid) return gettext.dgettext("quicktag", msgid)

View File

@@ -31,7 +31,7 @@ local gettext = dt.gettext
dt.configuration.check_version(...,{2,0,2},{3,0,0},{4,0,0}) dt.configuration.check_version(...,{2,0,2},{3,0,0},{4,0,0})
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("slideshowMusic",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("slideshowMusic",dt.configuration.config_dir.."/lua/locale/")
local function _(msgid) local function _(msgid)
return gettext.dgettext("slideshowMusic", msgid) return gettext.dgettext("slideshowMusic", msgid)

View File

@@ -64,7 +64,7 @@ dt.print_error(gettext.gettext("image"))
-- Tell gettext where to find the .mo file translating messages for a particular domain -- Tell gettext where to find the .mo file translating messages for a particular domain
gettext.bindtextdomain("gettextExample",dt.configuration.config_dir.."/lua/") gettext.bindtextdomain("gettextExample",dt.configuration.config_dir.."/lua/locale/")
-- Translate a string using the specified textdomain -- Translate a string using the specified textdomain
dt.print_error(gettext.dgettext("gettextExample", 'Hello World!')) dt.print_error(gettext.dgettext("gettextExample", 'Hello World!'))

View File

@@ -0,0 +1,70 @@
# 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: 2017-04-10 09:30+0200\n"
"PO-Revision-Date: 2017-04-10 09:48+0200\n"
"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Pascal Obry <pascal@obry.net>\n"
"Language-Team: \n"
"X-Generator: Poedit 1.8.11\n"
#: pdf_slideshow.lua:55
msgid "pdflatex not found"
msgstr "pdflatex non trouvé"
#: pdf_slideshow.lua:63
msgid "a pdf viewer"
msgstr "lecteur pdf"
#: pdf_slideshow.lua:64
msgid "can be an absolute pathname or the tool may be in the PATH"
msgstr "peut être un chemin absolu où l'outil peut être dans le chemin par défaut"
#: pdf_slideshow.lua:68 pdf_slideshow.lua:95
msgid "slideshow title"
msgstr "titre du diaporama"
#: pdf_slideshow.lua:72
msgid "transition delay (s)"
msgstr "temporisation (s) entre diapositives"
#: pdf_slideshow.lua:83
msgid "include image title"
msgstr "inclus le titre de l'image"
#: pdf_slideshow.lua:85
msgid "whether to include the image title (if defined) into the slide"
msgstr "indique si le titre de l'image (si défini) doit être inclus dans la diapositive"
#: pdf_slideshow.lua:89
msgid "include image author"
msgstr "inclus l'auteur de l'image"
#: pdf_slideshow.lua:91
msgid "whether to include the image author (if defined) into the slide"
msgstr "indique si l'auteur de l'image (si défini) doit être inclus dans la diapositive"
#: pdf_slideshow.lua:167
msgid "pdf slideshow"
msgstr "diaporama pdf"
#: pdf_slideshow.lua:220
msgid "problem running pdflatex"
msgstr "impossible d'exécuter pdflatex"
#: pdf_slideshow.lua:221 pdf_slideshow.lua:231
msgid "problem running "
msgstr "impossible d'exécuter "
#: pdf_slideshow.lua:230
msgid "problem running pdf viewer"
msgstr "impossible d'exécuter le lecteur pdf"