From a8134d5a80bfca5eef9a1cad91835a93d0205dbd Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 5 Mar 2021 10:58:33 +0900 Subject: Copy translations to a new directory layout. Signed-off-by: Michele Calgaro (cherry picked from commit 5167e4b9373acab2e0dae17d5ca1e1592b31fff6) --- CMakeLists.txt | 2 +- src/CMakeL10n.txt | 2 +- translations/CMakeLists.txt | 1 + translations/messages/CMakeLists.txt | 14 +++ translations/messages/de.po | 199 +++++++++++++++++++++++++++++++ translations/messages/kstreamripper.pot | 201 ++++++++++++++++++++++++++++++++ 6 files changed, 417 insertions(+), 2 deletions(-) create mode 100644 translations/CMakeLists.txt create mode 100644 translations/messages/CMakeLists.txt create mode 100644 translations/messages/de.po create mode 100644 translations/messages/kstreamripper.pot diff --git a/CMakeLists.txt b/CMakeLists.txt index 542bfe1..0855761 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( src ) 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/src/CMakeL10n.txt b/src/CMakeL10n.txt index 3aee1c7..5c4271b 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,3 @@ ##### create translation templates ############## -tde_l10n_create_template( "kstreamripper" ) +tde_l10n_create_template( "messages/kstreamripper" ) 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/messages/CMakeLists.txt b/translations/messages/CMakeLists.txt new file mode 100644 index 0000000..75c89f8 --- /dev/null +++ b/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/translations/messages/de.po b/translations/messages/de.po new file mode 100644 index 0000000..513f81e --- /dev/null +++ b/translations/messages/de.po @@ -0,0 +1,199 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2020-05-11 04:27+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 "" + +#: kstreamripper.cpp:197 +msgid "found by Zeroconf" +msgstr "" + +#: main.cpp:30 +msgid "KStreamRipper" +msgstr "" + +#: addnewstream.ui:16 +#, no-c-format +msgid "Add Stream...." +msgstr "" + +#: addnewstream.ui:44 +#, no-c-format +msgid "Name:" +msgstr "" + +#: addnewstream.ui:52 kstreamripperbase.ui:310 +#, no-c-format +msgid "Description:" +msgstr "" + +#: addnewstream.ui:75 +#, no-c-format +msgid "Url of Stream:" +msgstr "" + +#: addnewstream.ui:88 +#, no-c-format +msgid "&Ok" +msgstr "" + +#: addnewstream.ui:91 +#, no-c-format +msgid "Alt+O" +msgstr "" + +#: addnewstream.ui:102 +#, no-c-format +msgid "Alt+C" +msgstr "" + +#: kstreamripperbase.ui:16 +#, no-c-format +msgid "KStreamRipper V. 0.3.4" +msgstr "" + +#: kstreamripperbase.ui:44 +#, no-c-format +msgid "Your Radio Streams:" +msgstr "" + +#: kstreamripperbase.ui:103 +#, no-c-format +msgid "Stream Options" +msgstr "" + +#: kstreamripperbase.ui:114 +#, no-c-format +msgid "&Add Stream" +msgstr "" + +#: kstreamripperbase.ui:117 +#, no-c-format +msgid "Alt+A" +msgstr "" + +#: kstreamripperbase.ui:128 +#, no-c-format +msgid "&Delete Stream" +msgstr "" + +#: kstreamripperbase.ui:131 +#, no-c-format +msgid "Alt+D" +msgstr "" + +#: kstreamripperbase.ui:142 +#, no-c-format +msgid "&Stop Rip" +msgstr "" + +#: kstreamripperbase.ui:145 +#, no-c-format +msgid "Alt+S" +msgstr "" + +#: kstreamripperbase.ui:159 +#, no-c-format +msgid "&Tune in" +msgstr "" + +#: kstreamripperbase.ui:162 +#, no-c-format +msgid "Alt+T" +msgstr "" + +#: kstreamripperbase.ui:173 +#, no-c-format +msgid "&Rip Stream" +msgstr "" + +#: kstreamripperbase.ui:176 +#, no-c-format +msgid "Alt+R" +msgstr "" + +#: kstreamripperbase.ui:203 +#, no-c-format +msgid "Settings" +msgstr "" + +#: kstreamripperbase.ui:214 +#, no-c-format +msgid "Destination:" +msgstr "" + +#: kstreamripperbase.ui:222 +#, no-c-format +msgid "Time to Rip:" +msgstr "" + +#: kstreamripperbase.ui:230 +#, no-c-format +msgid "Add ID3 Tag:" +msgstr "" + +#: kstreamripperbase.ui:249 +#, no-c-format +msgid "Tune in Command:" +msgstr "" + +#: kstreamripperbase.ui:257 +#, no-c-format +msgid "seconds" +msgstr "" + +#: kstreamripperbase.ui:265 +#, no-c-format +msgid "...." +msgstr "" + +#: kstreamripperbase.ui:273 +#, no-c-format +msgid "xmms " +msgstr "" + +#: kstreamripperbase.ui:281 +#, no-c-format +msgid "0" +msgstr "" + +#: kstreamripperbase.ui:289 +#, no-c-format +msgid "Choose a directory" +msgstr "" + +#: kstreamripperbase.ui:299 +#, no-c-format +msgid "Details" +msgstr "" + +#: kstreamripperbase.ui:318 +#, no-c-format +msgid "URL:" +msgstr "" + +#: kstreamripperui.rc:4 +#, no-c-format +msgid "C&ustom" +msgstr "" diff --git a/translations/messages/kstreamripper.pot b/translations/messages/kstreamripper.pot new file mode 100644 index 0000000..5fd4e14 --- /dev/null +++ b/translations/messages/kstreamripper.pot @@ -0,0 +1,201 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2020-05-11 04:27+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 "" + +#: kstreamripper.cpp:197 +msgid "found by Zeroconf" +msgstr "" + +#: main.cpp:30 +msgid "KStreamRipper" +msgstr "" + +#: addnewstream.ui:16 +#, no-c-format +msgid "Add Stream...." +msgstr "" + +#: addnewstream.ui:44 +#, no-c-format +msgid "Name:" +msgstr "" + +#: addnewstream.ui:52 kstreamripperbase.ui:310 +#, no-c-format +msgid "Description:" +msgstr "" + +#: addnewstream.ui:75 +#, no-c-format +msgid "Url of Stream:" +msgstr "" + +#: addnewstream.ui:88 +#, no-c-format +msgid "&Ok" +msgstr "" + +#: addnewstream.ui:91 +#, no-c-format +msgid "Alt+O" +msgstr "" + +#: addnewstream.ui:102 +#, no-c-format +msgid "Alt+C" +msgstr "" + +#: kstreamripperbase.ui:16 +#, no-c-format +msgid "KStreamRipper V. 0.3.4" +msgstr "" + +#: kstreamripperbase.ui:44 +#, no-c-format +msgid "Your Radio Streams:" +msgstr "" + +#: kstreamripperbase.ui:103 +#, no-c-format +msgid "Stream Options" +msgstr "" + +#: kstreamripperbase.ui:114 +#, no-c-format +msgid "&Add Stream" +msgstr "" + +#: kstreamripperbase.ui:117 +#, no-c-format +msgid "Alt+A" +msgstr "" + +#: kstreamripperbase.ui:128 +#, no-c-format +msgid "&Delete Stream" +msgstr "" + +#: kstreamripperbase.ui:131 +#, no-c-format +msgid "Alt+D" +msgstr "" + +#: kstreamripperbase.ui:142 +#, no-c-format +msgid "&Stop Rip" +msgstr "" + +#: kstreamripperbase.ui:145 +#, no-c-format +msgid "Alt+S" +msgstr "" + +#: kstreamripperbase.ui:159 +#, no-c-format +msgid "&Tune in" +msgstr "" + +#: kstreamripperbase.ui:162 +#, no-c-format +msgid "Alt+T" +msgstr "" + +#: kstreamripperbase.ui:173 +#, no-c-format +msgid "&Rip Stream" +msgstr "" + +#: kstreamripperbase.ui:176 +#, no-c-format +msgid "Alt+R" +msgstr "" + +#: kstreamripperbase.ui:203 +#, no-c-format +msgid "Settings" +msgstr "" + +#: kstreamripperbase.ui:214 +#, no-c-format +msgid "Destination:" +msgstr "" + +#: kstreamripperbase.ui:222 +#, no-c-format +msgid "Time to Rip:" +msgstr "" + +#: kstreamripperbase.ui:230 +#, no-c-format +msgid "Add ID3 Tag:" +msgstr "" + +#: kstreamripperbase.ui:249 +#, no-c-format +msgid "Tune in Command:" +msgstr "" + +#: kstreamripperbase.ui:257 +#, no-c-format +msgid "seconds" +msgstr "" + +#: kstreamripperbase.ui:265 +#, no-c-format +msgid "...." +msgstr "" + +#: kstreamripperbase.ui:273 +#, no-c-format +msgid "xmms " +msgstr "" + +#: kstreamripperbase.ui:281 +#, no-c-format +msgid "0" +msgstr "" + +#: kstreamripperbase.ui:289 +#, no-c-format +msgid "Choose a directory" +msgstr "" + +#: kstreamripperbase.ui:299 +#, no-c-format +msgid "Details" +msgstr "" + +#: kstreamripperbase.ui:318 +#, no-c-format +msgid "URL:" +msgstr "" + +#: kstreamripperui.rc:4 +#, no-c-format +msgid "C&ustom" +msgstr "" -- cgit v1.2.1