From 9f51acfc474b16eb04479cea77922b275bcbbf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 28 Jun 2020 10:07:15 +0200 Subject: Move translations to a new directory layout. Add support for LINGUAS for listing translations to install. Use common cmake rules for documentation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- diff_ext_for_kdiff3/CMakeL10n.txt | 4 +- diff_ext_for_kdiff3/translations/CMakeLists.txt | 1 + .../translations/messages/CMakeLists.txt | 14 +++ .../translations/messages/diff_ext/diff_ext.pot | 118 +++++++++++++++++++ .../translations/messages/diff_ext/diff_ext_de.po | 125 +++++++++++++++++++++ 5 files changed, 260 insertions(+), 2 deletions(-) create mode 100644 diff_ext_for_kdiff3/translations/CMakeLists.txt create mode 100644 diff_ext_for_kdiff3/translations/messages/CMakeLists.txt create mode 100644 diff_ext_for_kdiff3/translations/messages/diff_ext/diff_ext.pot create mode 100644 diff_ext_for_kdiff3/translations/messages/diff_ext/diff_ext_de.po (limited to 'diff_ext_for_kdiff3') diff --git a/diff_ext_for_kdiff3/CMakeL10n.txt b/diff_ext_for_kdiff3/CMakeL10n.txt index 9784c39..f1e9dde 100644 --- a/diff_ext_for_kdiff3/CMakeL10n.txt +++ b/diff_ext_for_kdiff3/CMakeL10n.txt @@ -1,6 +1,6 @@ ##### create translation templates ############## tde_l10n_create_template( - CATALOG "diff_ext" - DESTINATION "." + CATALOG "messages/diff_ext/" + DESTINATION "./translations" ) diff --git a/diff_ext_for_kdiff3/translations/CMakeLists.txt b/diff_ext_for_kdiff3/translations/CMakeLists.txt new file mode 100644 index 0000000..42b186a --- /dev/null +++ b/diff_ext_for_kdiff3/translations/CMakeLists.txt @@ -0,0 +1 @@ +tde_auto_add_subdirectories() diff --git a/diff_ext_for_kdiff3/translations/messages/CMakeLists.txt b/diff_ext_for_kdiff3/translations/messages/CMakeLists.txt new file mode 100644 index 0000000..75c89f8 --- /dev/null +++ b/diff_ext_for_kdiff3/translations/messages/CMakeLists.txt @@ -0,0 +1,14 @@ +file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po ) +string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) + +foreach( _po ${po_files} ) + get_filename_component( _lang ${_po} NAME_WE ) + if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" ) + if( "${_po}" MATCHES "^([^/]*)/.*" ) + string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" ) + else( ) + set( _component "${PROJECT_NAME}" ) + endif( ) + tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} ) + endif( ) +endforeach( ) diff --git a/diff_ext_for_kdiff3/translations/messages/diff_ext/diff_ext.pot b/diff_ext_for_kdiff3/translations/messages/diff_ext/diff_ext.pot new file mode 100644 index 0000000..1f46285 --- /dev/null +++ b/diff_ext_for_kdiff3/translations/messages/diff_ext/diff_ext.pot @@ -0,0 +1,118 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2020-05-11 04:19+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Instead of a literal translation, add your name to the end of the list (separated by a comma). +#, ignore-inconsistent +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "" + +#. Instead of a literal translation, add your email to the end of the list (separated by a comma). +#, ignore-inconsistent +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "" + +#: diff_ext.cpp:369 +#, c-format +msgid "Compare with %1" +msgstr "" + +#: diff_ext.cpp:370 +#, c-format +msgid "Merge with %1" +msgstr "" + +#: diff_ext.cpp:386 +msgid "3-way merge with base" +msgstr "" + +#: diff_ext.cpp:389 +msgid "Save '%1' for later" +msgstr "" + +#: diff_ext.cpp:404 +msgid "Compare with ..." +msgstr "" + +#: diff_ext.cpp:407 +msgid "Clear list" +msgstr "" + +#: diff_ext.cpp:412 +msgid "Compare" +msgstr "" + +#: diff_ext.cpp:416 +msgid "3 way comparison" +msgstr "" + +#: diff_ext.cpp:422 +msgid "About Diff-Ext ..." +msgstr "" + +#: diff_ext.cpp:491 +msgid "Diff-Ext Copyright (c) 2003-2006, Sergey Zorin. All rights reserved.\n" +msgstr "" + +#: diff_ext.cpp:492 +msgid "This software is distributable under the BSD license.\n" +msgstr "" + +#: diff_ext.cpp:493 +msgid "Some extensions for KDiff3 by Joachim Eibl.\n" +msgstr "" + +#: diff_ext.cpp:494 +msgid "Homepage for Diff-Ext: http://diff-ext.sourceforge.net\n" +msgstr "" + +#: diff_ext.cpp:495 +msgid "Homepage for KDiff3: http://kdiff3.sourceforge.net" +msgstr "" + +#: diff_ext.cpp:496 +msgid "About Diff-Ext for KDiff3" +msgstr "" + +#: diff_ext.cpp:521 +msgid "Compare selected files" +msgstr "" + +#: diff_ext.cpp:527 diff_ext.cpp:547 +msgid "Compare '%1' with '%2'" +msgstr "" + +#: diff_ext.cpp:533 +msgid "Save '%1' for later operation" +msgstr "" + +#: diff_ext.cpp:585 +msgid "Could not start KDiff3. Please rerun KDiff3 installation." +msgstr "" + +#: diff_ext.cpp:586 +msgid "Command" +msgstr "" + +#: diff_ext.cpp:587 +msgid "CommandLine" +msgstr "" + +#: diff_ext.cpp:588 +msgid "Diff-Ext For KDiff3" +msgstr "" diff --git a/diff_ext_for_kdiff3/translations/messages/diff_ext/diff_ext_de.po b/diff_ext_for_kdiff3/translations/messages/diff_ext/diff_ext_de.po new file mode 100644 index 0000000..fe7f47b --- /dev/null +++ b/diff_ext_for_kdiff3/translations/messages/diff_ext/diff_ext_de.po @@ -0,0 +1,125 @@ +# 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: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-05-11 04:19+0200\n" +"PO-Revision-Date: 2019-08-28 23:45+0000\n" +"Last-Translator: Chris \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.8\n" + +#. Instead of a literal translation, add your name to the end of the list (separated by a comma). +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "Chris (TDE)" + +#. Instead of a literal translation, add your email to the end of the list (separated by a comma). +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "(Keine Email)" + +#: diff_ext.cpp:369 +#, c-format +msgid "Compare with %1" +msgstr "Vergleichen mit %1" + +#: diff_ext.cpp:370 +#, c-format +msgid "Merge with %1" +msgstr "Zusammenführen mit %1" + +#: diff_ext.cpp:386 +msgid "3-way merge with base" +msgstr "3-Wege Zusammenführung mit Basis" + +#: diff_ext.cpp:389 +msgid "Save '%1' for later" +msgstr "Speichere '%1' für später" + +#: diff_ext.cpp:404 +msgid "Compare with ..." +msgstr "Vergleichen mit ..." + +#: diff_ext.cpp:407 +msgid "Clear list" +msgstr "Liste löschen" + +#: diff_ext.cpp:412 +msgid "Compare" +msgstr "Vergleichen" + +#: diff_ext.cpp:416 +msgid "3 way comparison" +msgstr "Vergleiche 3 Dateien" + +#: diff_ext.cpp:422 +msgid "About Diff-Ext ..." +msgstr "Über Diff-Ext ..." + +#: diff_ext.cpp:491 +msgid "Diff-Ext Copyright (c) 2003-2006, Sergey Zorin. All rights reserved.\n" +msgstr "" +"Diff-Ext Copyright (c) 2003-2006, Sergey Zorin. Alle Rechte vorbehalten.\n" + +#: diff_ext.cpp:492 +msgid "This software is distributable under the BSD license.\n" +msgstr "Weitergabe dieses Programms unter den Bedingungen der BSD Lizenz.\n" + +#: diff_ext.cpp:493 +msgid "Some extensions for KDiff3 by Joachim Eibl.\n" +msgstr "Einige Erweiterungen für KDiff3 von Joachim Eibl.\n" + +#: diff_ext.cpp:494 +msgid "Homepage for Diff-Ext: http://diff-ext.sourceforge.net\n" +msgstr "Siehe die Homepage für Diff-Ext: http://diff-ext.sourceforge.net\n" + +#: diff_ext.cpp:495 +msgid "Homepage for KDiff3: http://kdiff3.sourceforge.net" +msgstr "" +"Siehe die Homepage für KDiff3: https://mirror.git.trinitydesktop.org/gitea/" +"TDE/kdiff3" + +#: diff_ext.cpp:496 +msgid "About Diff-Ext for KDiff3" +msgstr "Über Diff-Ext für KDiff3" + +#: diff_ext.cpp:521 +msgid "Compare selected files" +msgstr "Vergleiche markierte Dateien" + +#: diff_ext.cpp:527 diff_ext.cpp:547 +msgid "Compare '%1' with '%2'" +msgstr "Vergleiche '%1' mit '%2'" + +#: diff_ext.cpp:533 +msgid "Save '%1' for later operation" +msgstr "'%1' für spätere Operation speichern" + +#: diff_ext.cpp:585 +msgid "Could not start KDiff3. Please rerun KDiff3 installation." +msgstr "" +"Konnte KDiff3 nicht starten. Bitte wiederholen Sie die KDiff3 Installation." + +#: diff_ext.cpp:586 +msgid "Command" +msgstr "Kommando" + +#: diff_ext.cpp:587 +msgid "CommandLine" +msgstr "Kommandozeile" + +#: diff_ext.cpp:588 +msgid "Diff-Ext For KDiff3" +msgstr "Diff-Ext für KDiff3" -- cgit v1.2.1