From 89eeb803787a086cf11824974ed260d02d7cd8ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 5 Aug 2020 18:29:57 +0200 Subject: [PATCH] Move translations to a new directory layout. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 2 +- subdirs | 2 +- systemsettings/CMakeL10n.txt | 2 +- translations/CMakeLists.txt | 1 + translations/Makefile.am | 1 + {po => translations/messages}/CMakeLists.txt | 0 {po => translations/messages}/Makefile.am | 0 translations/messages/de.po | 105 ++++++++++++++++++ translations/messages/systemsettings.pot | 107 +++++++++++++++++++ 9 files changed, 217 insertions(+), 3 deletions(-) create mode 100644 translations/CMakeLists.txt create mode 100644 translations/Makefile.am rename {po => translations/messages}/CMakeLists.txt (100%) rename {po => translations/messages}/Makefile.am (100%) create mode 100644 translations/messages/de.po create mode 100644 translations/messages/systemsettings.pot diff --git a/CMakeLists.txt b/CMakeLists.txt index c1cebb5..3f15dff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" add_subdirectory( systemsettings ) tde_conditional_add_subdirectory( BUILD_DOC doc ) -tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) +tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations ) ##### write configure files diff --git a/subdirs b/subdirs index f636017..03d97cd 100644 --- a/subdirs +++ b/subdirs @@ -1,3 +1,3 @@ doc systemsettings -po +translations diff --git a/systemsettings/CMakeL10n.txt b/systemsettings/CMakeL10n.txt index 54510f4..3b2a2d1 100644 --- a/systemsettings/CMakeL10n.txt +++ b/systemsettings/CMakeL10n.txt @@ -1,3 +1,3 @@ ##### create translation templates ############## -tde_l10n_create_template( "systemsettings" ) +tde_l10n_create_template( "messages/systemsettings" ) diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt new file mode 100644 index 0000000..42b186a --- /dev/null +++ b/translations/CMakeLists.txt @@ -0,0 +1 @@ +tde_auto_add_subdirectories() diff --git a/translations/Makefile.am b/translations/Makefile.am new file mode 100644 index 0000000..533bb55 --- /dev/null +++ b/translations/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = messages diff --git a/po/CMakeLists.txt b/translations/messages/CMakeLists.txt similarity index 100% rename from po/CMakeLists.txt rename to translations/messages/CMakeLists.txt diff --git a/po/Makefile.am b/translations/messages/Makefile.am similarity index 100% rename from po/Makefile.am rename to translations/messages/Makefile.am diff --git a/translations/messages/de.po b/translations/messages/de.po new file mode 100644 index 0000000..f8f0a22 --- /dev/null +++ b/translations/messages/de.po @@ -0,0 +1,105 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2020-05-11 04:30+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: de\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). +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). +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "" + +#: kcmultiwidget.cpp:346 +msgid "" +"There are unsaved changes in the active module.\n" +"Do you want to apply the changes or discard them?" +msgstr "" + +#: kcmultiwidget.cpp:348 +msgid "Unsaved Changes" +msgstr "" + +#: main.cpp:31 +msgid "Menu file" +msgstr "" + +#: main.cpp:33 +msgid "Embed windows" +msgstr "" + +#: main.cpp:41 main.cpp:42 +msgid "System Settings" +msgstr "" + +#: main.cpp:44 +msgid "Author & Maintainer" +msgstr "" + +#: mainwindow.cpp:108 +msgid "Undo Changes" +msgstr "" + +#: mainwindow.cpp:112 +msgid "Reset to Defaults" +msgstr "" + +#: mainwindow.cpp:117 +msgid "Overview" +msgstr "" + +#: mainwindow.cpp:122 mainwindow.cpp:314 +msgid "About Current Module" +msgstr "" + +#: mainwindow.cpp:143 mainwindow.cpp:146 +msgid "&Search:" +msgstr "" + +#: mainwindow.cpp:150 +msgid "Search System Settings" +msgstr "" + +#: mainwindow.cpp:154 +msgid "Search Bar

Enter a search term." +msgstr "" + +#: mainwindow.cpp:162 +msgid "" +"Reset Search\n" +"Resets the search so that all items are shown again." +msgstr "" + +#: mainwindow.cpp:303 +#, c-format +msgid "" +"_: Help menu->about \n" +"About %1" +msgstr "" + +#: mainwindow.cpp:354 +msgid "" +"_n: %1 hit in General\n" +"%1 hits in General" +msgstr "" + +#: mainwindow.cpp:358 +msgid "" +"_n: %1 hit in Advanced\n" +"%1 hits in Advanced" +msgstr "" diff --git a/translations/messages/systemsettings.pot b/translations/messages/systemsettings.pot new file mode 100644 index 0000000..aefdb3f --- /dev/null +++ b/translations/messages/systemsettings.pot @@ -0,0 +1,107 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2020-05-11 04:30+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 "" + +#: kcmultiwidget.cpp:346 +msgid "" +"There are unsaved changes in the active module.\n" +"Do you want to apply the changes or discard them?" +msgstr "" + +#: kcmultiwidget.cpp:348 +msgid "Unsaved Changes" +msgstr "" + +#: main.cpp:31 +msgid "Menu file" +msgstr "" + +#: main.cpp:33 +msgid "Embed windows" +msgstr "" + +#: main.cpp:41 main.cpp:42 +msgid "System Settings" +msgstr "" + +#: main.cpp:44 +msgid "Author & Maintainer" +msgstr "" + +#: mainwindow.cpp:108 +msgid "Undo Changes" +msgstr "" + +#: mainwindow.cpp:112 +msgid "Reset to Defaults" +msgstr "" + +#: mainwindow.cpp:117 +msgid "Overview" +msgstr "" + +#: mainwindow.cpp:122 mainwindow.cpp:314 +msgid "About Current Module" +msgstr "" + +#: mainwindow.cpp:143 mainwindow.cpp:146 +msgid "&Search:" +msgstr "" + +#: mainwindow.cpp:150 +msgid "Search System Settings" +msgstr "" + +#: mainwindow.cpp:154 +msgid "Search Bar

Enter a search term." +msgstr "" + +#: mainwindow.cpp:162 +msgid "" +"Reset Search\n" +"Resets the search so that all items are shown again." +msgstr "" + +#: mainwindow.cpp:303 +#, c-format +msgid "" +"_: Help menu->about \n" +"About %1" +msgstr "" + +#: mainwindow.cpp:354 +msgid "" +"_n: %1 hit in General\n" +"%1 hits in General" +msgstr "" + +#: mainwindow.cpp:358 +msgid "" +"_n: %1 hit in Advanced\n" +"%1 hits in Advanced" +msgstr ""