Move translations to a new directory layout.

Add support for LINGUAS for listing translations to install.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 56a9b6df8f)
r14.0.x
Slávek Banko 4 years ago
parent bc0e1a135a
commit d45f0c5de9
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -72,7 +72,7 @@ add_subdirectory( icon )
add_subdirectory( ${PROJECT_NAME} ) add_subdirectory( ${PROJECT_NAME} )
add_subdirectory( ${PROJECT_NAME}-install ) add_subdirectory( ${PROJECT_NAME}-install )
tde_conditional_add_subdirectory( BUILD_DOC doc ) tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations )
##### write configure files ##### write configure files

@ -1,3 +1,3 @@
##### create translation templates ############## ##### create translation templates ##############
tde_l10n_create_template( "kdpkg-install" ) tde_l10n_create_template( "messages/kdpkg-install/" )

@ -1,3 +1,3 @@
##### create translation templates ############## ##### create translation templates ##############
tde_l10n_create_template( "kdpkg" ) tde_l10n_create_template( "messages/kdpkg/" )

@ -0,0 +1 @@
tde_auto_add_subdirectories()

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

@ -0,0 +1,196 @@
# translation of kdpkg-install.po to
# This file is put in the public domain.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: kdpkg-install\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-11 04:19+0200\n"
"PO-Revision-Date: 2019-11-23 12:55+0000\n"
"Last-Translator: Chris <xchrisx@uber.space>\n"
"Language-Team: German <https://mirror.git.trinitydesktop.org/weblate/"
"projects/applications/kdpkg-install/de/>\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.9.1\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 "Fabian Würtz, 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 "xadras@sidux.com, (Keine Email)"
#: install.cpp:55
msgid "Debian Package (*.deb)"
msgstr "Debian-Paket (*.deb)"
#: install.cpp:55
msgid "Choose a Debian package file to open"
msgstr "Wählen Sie eine Debian-Paketdatei zum Öffnen aus"
#: install.cpp:145
msgid "The following packages will be installed, updated or removed:"
msgstr "Die folgenden Pakete werden installiert, aktualisiert oder entfernt:"
#: install.cpp:150
msgid ""
"The architecture of this package does not match that of your system. You "
"will not be able to install this package!"
msgstr ""
"Die Systemarchitektur des Paketes und des Systems stimmen nicht übereien. "
"Das Paket kann deswegen nicht installiert werden."
#: install.cpp:158
msgid ""
"The package database is in use by another process (e.g Synaptic). Please "
"terminate this process and select Next to try again."
msgstr ""
"Die Paketdatenbank wird von einem anderen Programm verwenden (z.B. "
"Synaptic). Bitte schliessen Sie dieses Programm und drücken Sie weiter."
#: install.cpp:167
msgid "Resynchronize Package Index"
msgstr "Synchronisation des Paketindexes"
#: install.cpp:185
msgid "Install New Package"
msgstr "Neues Paket installieren"
#: install.cpp:211
msgid "Installation process is complete!"
msgstr "Installationsvorgang abgeschlossen."
#: install.cpp:211
msgid "You may now close this window."
msgstr "Sie können das Fenster nun schließen."
#: install.cpp:232
msgid "not installed"
msgstr "nicht installiert"
#: install.cpp:239
msgid "not available"
msgstr "nicht vorhanden"
#: main.cpp:36
msgid "Location to open"
msgstr "Ort zum öffnen"
#: main.cpp:46
msgid "kdpkg-install"
msgstr "kdpkg-install"
#: main.cpp:49
msgid "Frontend for dpkg."
msgstr "Grafische Benutzeroberfläche für dpkg."
#: main.cpp:55 main.cpp:56
msgid "Developer"
msgstr "Entwickler"
#: consoledialog.ui:16
#, no-c-format
msgid "Widget"
msgstr "Widget"
#: installdialog.ui:17
#, no-c-format
msgid "TDE Debian Package Installation Wizard"
msgstr "TDE-Installationsassistent für Debian-Pakete"
#: installdialog.ui:34
#, no-c-format
msgid "Alt+B"
msgstr "Alt+B"
#: installdialog.ui:45
#, no-c-format
msgid "Cl&ose"
msgstr "&Schließen"
#: installdialog.ui:48
#, no-c-format
msgid "Alt+O"
msgstr "Alt+O"
#: installdialog.ui:59
#, no-c-format
msgid "Inst&all"
msgstr "Inst&allieren"
#: installdialog.ui:62
#, no-c-format
msgid "Alt+A"
msgstr "Alt+A"
#: installdialog.ui:106
#, no-c-format
msgid "<b>Package installation</b>"
msgstr "<b>Paketinstallation</b>"
#: installdialog.ui:213
#, no-c-format
msgid "Res&ynchronize the package index files (recommended)"
msgstr "Paketindex &synchronisieren (empfohlen)"
#: installdialog.ui:216
#, no-c-format
msgid "Alt+Y"
msgstr "Alt+Y"
#: installdialog.ui:227
#, no-c-format
msgid "Skip Resynchroni&zation"
msgstr "Synchronisierung überspringen"
#: installdialog.ui:230
#, no-c-format
msgid "Alt+Z"
msgstr "Alt+Z"
#: installdialog.ui:250
#, no-c-format
msgid "Status"
msgstr "Status"
#: installdialog.ui:261
#, no-c-format
msgid "Name"
msgstr "Name"
#: installdialog.ui:272
#, no-c-format
msgid "Version"
msgstr "Version"
#: installdialog.ui:283
#, no-c-format
msgid "Version on System "
msgstr "Vorhandene Version "
#: installdialog.ui:416 installdialog.ui:427
#, no-c-format
msgid "Ne&xt >"
msgstr "&weiter >"
#: installdialog.ui:419 installdialog.ui:430
#, no-c-format
msgid "Alt+X"
msgstr "Alt+X"
#, fuzzy
#~ msgid "A&bout"
#~ msgstr "über KDPKG"
#~ msgid "open file dialog"
#~ msgstr "Öffen-Dateidialog"

@ -0,0 +1,182 @@
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-05-11 13:14+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""
#: install.cpp:55
msgid "Debian Package (*.deb)"
msgstr ""
#: install.cpp:55
msgid "Choose a Debian package file to open"
msgstr ""
#: install.cpp:145
msgid "The following packages will be installed, updated or removed:"
msgstr ""
#: install.cpp:150
msgid ""
"The architecture of this package does not match that of your system. You "
"will not be able to install this package!"
msgstr ""
#: install.cpp:158
msgid ""
"The package database is in use by another process (e.g Synaptic). Please "
"terminate this process and select Next to try again."
msgstr ""
#: install.cpp:167
msgid "Resynchronize Package Index"
msgstr ""
#: install.cpp:185
msgid "Install New Package"
msgstr ""
#: install.cpp:211
msgid "Installation process is complete!"
msgstr ""
#: install.cpp:211
msgid "You may now close this window."
msgstr ""
#: install.cpp:232
msgid "not installed"
msgstr ""
#: install.cpp:239
msgid "not available"
msgstr ""
#: main.cpp:36
msgid "Location to open"
msgstr ""
#: main.cpp:46
msgid "kdpkg-install"
msgstr ""
#: main.cpp:49
msgid "Frontend for dpkg."
msgstr ""
#: main.cpp:55 main.cpp:56
msgid "Developer"
msgstr ""
#: consoledialog.ui:16
#, no-c-format
msgid "Widget"
msgstr ""
#: installdialog.ui:17
#, no-c-format
msgid "TDE Debian Package Installation Wizard"
msgstr ""
#: installdialog.ui:34
#, no-c-format
msgid "Alt+B"
msgstr ""
#: installdialog.ui:45
#, no-c-format
msgid "Cl&ose"
msgstr ""
#: installdialog.ui:48
#, no-c-format
msgid "Alt+O"
msgstr ""
#: installdialog.ui:59
#, no-c-format
msgid "Inst&all"
msgstr ""
#: installdialog.ui:62
#, no-c-format
msgid "Alt+A"
msgstr ""
#: installdialog.ui:106
#, no-c-format
msgid "<b>Package installation</b>"
msgstr ""
#: installdialog.ui:213
#, no-c-format
msgid "Res&ynchronize the package index files (recommended)"
msgstr ""
#: installdialog.ui:216
#, no-c-format
msgid "Alt+Y"
msgstr ""
#: installdialog.ui:227
#, no-c-format
msgid "Skip Resynchroni&zation"
msgstr ""
#: installdialog.ui:230
#, no-c-format
msgid "Alt+Z"
msgstr ""
#: installdialog.ui:250
#, no-c-format
msgid "Status"
msgstr ""
#: installdialog.ui:261
#, no-c-format
msgid "Name"
msgstr ""
#: installdialog.ui:272
#, no-c-format
msgid "Version"
msgstr ""
#: installdialog.ui:283
#, no-c-format
msgid "Version on System "
msgstr ""
#: installdialog.ui:416 installdialog.ui:427
#, no-c-format
msgid "Ne&xt >"
msgstr ""
#: installdialog.ui:419 installdialog.ui:430
#, no-c-format
msgid "Alt+X"
msgstr ""

@ -0,0 +1,203 @@
# translation of kdpkg.po to
# This file is put in the public domain.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: kdpkg\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-11 04:19+0200\n"
"PO-Revision-Date: 2019-12-21 19:40+0000\n"
"Last-Translator: Chris <xchrisx@uber.space>\n"
"Language-Team: German <https://mirror.git.trinitydesktop.org/weblate/"
"projects/applications/kdpkg/de/>\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.9.1\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 "Fabian Würtz, 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 "xadras@sidux.com"
#: kdpkg.cpp:48
msgid "Debian Package (*.deb)"
msgstr "Debian-Paket (*.deb)"
#: kdpkg.cpp:48
msgid "Choose a Debian package file to open"
msgstr "Wählen Sie eine Debian-Paketdatei zum Öffnen aus"
#: kdpkg.cpp:179
msgid "not installed"
msgstr "nicht installiert"
#: kdpkg.cpp:186
msgid "not available"
msgstr "nicht vorhanden"
#: kdpkg.cpp:214
msgid ""
"The architecture of the package and the system doesn't match! You will not "
"be able to install this package!"
msgstr ""
"Die Systemarchitektur des Paketes und des Systems stimmen nicht überein! Das "
"Paket kann deswegen nicht installiert werden!"
#: main.cpp:36
msgid "Location to open"
msgstr "Ort zum öffnen"
#: main.cpp:46
msgid "kdpkg"
msgstr "kdpkg"
#: main.cpp:49
msgid "Frontend for dpkg."
msgstr "Grafische Benutzeroberfläche für dpkg."
#: main.cpp:55 main.cpp:56
msgid "Developer"
msgstr "Entwickler"
#: kdpkgdialog.ui:17
#, no-c-format
msgid "TDE Debian Package Information"
msgstr "Informationen zum TDE-Debian-Paket"
#: kdpkgdialog.ui:35
#, no-c-format
msgid "Co&mmon"
msgstr "Allgemein"
#: kdpkgdialog.ui:66
#, no-c-format
msgid "<b>Version:</b>"
msgstr "<b>Version:</b>"
#: kdpkgdialog.ui:98
#, no-c-format
msgid "<b>Maintainer:</b>"
msgstr "<b>Verantwortlicher:</b>"
#: kdpkgdialog.ui:130
#, no-c-format
msgid "<b>Section:</b>"
msgstr "<b>Sektion:</b>"
#: kdpkgdialog.ui:162
#, no-c-format
msgid "<b>Size:</b>"
msgstr "<b>Grösse:</b>"
#: kdpkgdialog.ui:194
#, no-c-format
msgid "<b>Name:</b>"
msgstr "<b>Name:</b>"
#: kdpkgdialog.ui:203
#, no-c-format
msgid "Descripti&on"
msgstr "Beschreibung"
#: kdpkgdialog.ui:221
#, no-c-format
msgid "Dependencies"
msgstr "Abhänigkeiten"
#: kdpkgdialog.ui:235
#, no-c-format
msgid "All"
msgstr "Alle"
#: kdpkgdialog.ui:240
#, no-c-format
msgid "Depends"
msgstr "hängt ab von"
#: kdpkgdialog.ui:245
#, no-c-format
msgid "Recommends"
msgstr "empfiehlt"
#: kdpkgdialog.ui:250
#, no-c-format
msgid "Suggests"
msgstr "schlägt vor"
#: kdpkgdialog.ui:255
#, no-c-format
msgid "Enhances"
msgstr "verstärkt"
#: kdpkgdialog.ui:260
#, no-c-format
msgid "Pre-Depends"
msgstr "hängt ab von (vorher)"
#: kdpkgdialog.ui:265
#, no-c-format
msgid "Provides"
msgstr "enthält"
#: kdpkgdialog.ui:270
#, no-c-format
msgid "Conflicts"
msgstr "kollidiert mit"
#: kdpkgdialog.ui:275
#, no-c-format
msgid "Replaces"
msgstr "ersetzt"
#: kdpkgdialog.ui:289
#, no-c-format
msgid "I&ncluded Files"
msgstr "Enthaltende Dateien"
#: kdpkgdialog.ui:311
#, no-c-format
msgid "Alt+A"
msgstr "Alt+A"
#: kdpkgdialog.ui:339
#, no-c-format
msgid "Start Installation Wi&zard"
msgstr "Installations&assistenten starten"
#: kdpkgdialog.ui:342
#, no-c-format
msgid "Alt+Z"
msgstr "Alt+Z"
#: kdpkgdialog.ui:353
#, no-c-format
msgid "Cl&ose"
msgstr "&Schließen"
#: kdpkgdialog.ui:356
#, no-c-format
msgid "Alt+O"
msgstr "Alt+O"
#: kdpkgdialog.ui:403
#, no-c-format
msgid "<b>Package Information</b>"
msgstr "<b>Paketinformationen</b>"
#, fuzzy
#~ msgid "&About"
#~ msgstr "über KDPKG"
#~ msgid "open file dialog"
#~ msgstr "Öffen-Dateidialog"

@ -0,0 +1,191 @@
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-05-11 13:14+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""
#: kdpkg.cpp:48
msgid "Debian Package (*.deb)"
msgstr ""
#: kdpkg.cpp:48
msgid "Choose a Debian package file to open"
msgstr ""
#: kdpkg.cpp:179
msgid "not installed"
msgstr ""
#: kdpkg.cpp:186
msgid "not available"
msgstr ""
#: kdpkg.cpp:214
msgid ""
"The architecture of the package and the system doesn't match! You will not "
"be able to install this package!"
msgstr ""
#: main.cpp:36
msgid "Location to open"
msgstr ""
#: main.cpp:46
msgid "kdpkg"
msgstr ""
#: main.cpp:49
msgid "Frontend for dpkg."
msgstr ""
#: main.cpp:55 main.cpp:56
msgid "Developer"
msgstr ""
#: kdpkgdialog.ui:17
#, no-c-format
msgid "TDE Debian Package Information"
msgstr ""
#: kdpkgdialog.ui:35
#, no-c-format
msgid "Co&mmon"
msgstr ""
#: kdpkgdialog.ui:66
#, no-c-format
msgid "<b>Version:</b>"
msgstr ""
#: kdpkgdialog.ui:98
#, no-c-format
msgid "<b>Maintainer:</b>"
msgstr ""
#: kdpkgdialog.ui:130
#, no-c-format
msgid "<b>Section:</b>"
msgstr ""
#: kdpkgdialog.ui:162
#, no-c-format
msgid "<b>Size:</b>"
msgstr ""
#: kdpkgdialog.ui:194
#, no-c-format
msgid "<b>Name:</b>"
msgstr ""
#: kdpkgdialog.ui:203
#, no-c-format
msgid "Descripti&on"
msgstr ""
#: kdpkgdialog.ui:221
#, no-c-format
msgid "Dependencies"
msgstr ""
#: kdpkgdialog.ui:235
#, no-c-format
msgid "All"
msgstr ""
#: kdpkgdialog.ui:240
#, no-c-format
msgid "Depends"
msgstr ""
#: kdpkgdialog.ui:245
#, no-c-format
msgid "Recommends"
msgstr ""
#: kdpkgdialog.ui:250
#, no-c-format
msgid "Suggests"
msgstr ""
#: kdpkgdialog.ui:255
#, no-c-format
msgid "Enhances"
msgstr ""
#: kdpkgdialog.ui:260
#, no-c-format
msgid "Pre-Depends"
msgstr ""
#: kdpkgdialog.ui:265
#, no-c-format
msgid "Provides"
msgstr ""
#: kdpkgdialog.ui:270
#, no-c-format
msgid "Conflicts"
msgstr ""
#: kdpkgdialog.ui:275
#, no-c-format
msgid "Replaces"
msgstr ""
#: kdpkgdialog.ui:289
#, no-c-format
msgid "I&ncluded Files"
msgstr ""
#: kdpkgdialog.ui:311
#, no-c-format
msgid "Alt+A"
msgstr ""
#: kdpkgdialog.ui:339
#, no-c-format
msgid "Start Installation Wi&zard"
msgstr ""
#: kdpkgdialog.ui:342
#, no-c-format
msgid "Alt+Z"
msgstr ""
#: kdpkgdialog.ui:353
#, no-c-format
msgid "Cl&ose"
msgstr ""
#: kdpkgdialog.ui:356
#, no-c-format
msgid "Alt+O"
msgstr ""
#: kdpkgdialog.ui:403
#, no-c-format
msgid "<b>Package Information</b>"
msgstr ""
Loading…
Cancel
Save