From 5011ca36f000ff346a06c5f963e1c960f1f738f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 29 Sep 2020 13:00:36 +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 (cherry picked from commit 75cc3e6aa607d9b9671efd2aad3882c5ed317bc3) --- CMakeLists.txt | 2 +- src/CMakeL10n.txt | 2 +- translations/CMakeLists.txt | 1 + translations/messages/CMakeLists.txt | 14 ++ translations/messages/de.po | 192 ++++++++++++++++++++++++ translations/messages/kerberostray.pot | 194 +++++++++++++++++++++++++ 6 files changed, 403 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/kerberostray.pot diff --git a/CMakeLists.txt b/CMakeLists.txt index d82103a..b48cfde 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### directories add_subdirectory( src ) -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 ecdd8da..8907ff8 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,3 @@ ##### create translation templates ############## -tde_l10n_create_template( "kerberostray" ) +tde_l10n_create_template( "messages/kerberostray" ) 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..fbe7def --- /dev/null +++ b/translations/messages/de.po @@ -0,0 +1,192 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +# +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: 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 "" + +#: configdlg.cpp:39 +msgid "Kerberos Ticket Manager Configuration" +msgstr "" + +#: main.cpp:30 +msgid "TDE utility for managing Kerberos tickets" +msgstr "" + +#: main.cpp:36 +msgid "Kerberos Ticket Manager" +msgstr "" + +#: toplevel.cpp:69 +msgid "&Obtain New Ticket Granting Ticket" +msgstr "" + +#: toplevel.cpp:70 +msgid "&Obtain New Primary Service Ticket" +msgstr "" + +#: toplevel.cpp:71 +msgid "&Obtain Authenticated Service Ticket" +msgstr "" + +#: toplevel.cpp:72 +msgid "&Destroy All Tickets" +msgstr "" + +#: toplevel.cpp:73 +msgid "&Configure..." +msgstr "" + +#: toplevel.cpp:200 +msgid "No Kerberos Tickets Available" +msgstr "" + +#: toplevel.cpp:211 +msgid "(Active)" +msgstr "" + +#: toplevel.cpp:214 +msgid "(Expired)" +msgstr "" + +#: toplevel.cpp:234 +msgid "Please provide Kerberos credentials" +msgstr "" + +#: toplevel.cpp:242 +msgid "Failed to obtain ticket

%1" +msgstr "" + +#: toplevel.cpp:242 +msgid "Failed to obtain Kerberos ticket" +msgstr "" + +#: toplevel.cpp:262 +msgid "Enter the name of the Kerberos service principal you wish to obtain" +msgstr "" + +#: toplevel.cpp:265 +msgid "Failed to obtain service ticket

%1" +msgstr "" + +#: toplevel.cpp:265 +msgid "Failed to obtain Kerberos service ticket" +msgstr "" + +#: toplevel.cpp:272 +msgid "Unable to destroy tickets!" +msgstr "" + +#: toplevel.cpp:272 +msgid "Internal Error" +msgstr "" + +#: toplevel.cpp:304 +msgid "%1 Kerberos ticket(s) listed for principal %2" +msgstr "" + +#: toplevel.cpp:339 +msgid "All ticket(s) have expired" +msgstr "" + +#: toplevel.cpp:344 +msgid "%1 ticket(s) have expired" +msgstr "" + +#: toplevel.cpp:350 +msgid "" +"All ticket(s) are active\n" +"%1 ticket(s) will expire shortly" +msgstr "" + +#: toplevel.cpp:353 +msgid "All ticket(s) are active" +msgstr "" + +#: toplevel.cpp:359 +msgid "No Kerberos tickets are available" +msgstr "" + +#: toplevel.cpp:379 +msgid "Kerberos Tickets Manager" +msgstr "" + +#: toplevel.cpp:387 +msgid "Server: " +msgstr "" + +#: toplevel.cpp:388 +msgid "Client: " +msgstr "" + +#: toplevel.cpp:389 +msgid "Encryption Type: " +msgstr "" + +#: toplevel.cpp:390 +#, c-format +msgid "Key Version: %1" +msgstr "" + +#: toplevel.cpp:391 +msgid "Authenticated: " +msgstr "" + +#: toplevel.cpp:392 +msgid "Valid After: " +msgstr "" + +#: toplevel.cpp:393 +msgid "Valid Before: " +msgstr "" + +#: toplevel.cpp:410 toplevel.cpp:427 +msgid "Kerberos Ticket %1" +msgstr "" + +#: toplevel.cpp:419 toplevel.cpp:432 +msgid "Kerberos Ticket Information" +msgstr "" + +#: toplevel.cpp:435 +msgid "Failed to destroy ticket
%1

%2" +msgstr "" + +#: toplevel.cpp:435 +msgid "Failed to destroy Kerberos ticket" +msgstr "" + +#: configdlgbase.ui:16 +#, no-c-format +msgid "Automatically start the Kerberos Ticket Manager on login" +msgstr "" + +#: configdlgbase.ui:24 +#, no-c-format +msgid "Notify me before my ticket(s) expire" +msgstr "" + +#: configdlgbase.ui:32 +#, no-c-format +msgid "Minutes before expiration:" +msgstr "" diff --git a/translations/messages/kerberostray.pot b/translations/messages/kerberostray.pot new file mode 100644 index 0000000..4bca1ac --- /dev/null +++ b/translations/messages/kerberostray.pot @@ -0,0 +1,194 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , 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 \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 "" + +#: configdlg.cpp:39 +msgid "Kerberos Ticket Manager Configuration" +msgstr "" + +#: main.cpp:30 +msgid "TDE utility for managing Kerberos tickets" +msgstr "" + +#: main.cpp:36 +msgid "Kerberos Ticket Manager" +msgstr "" + +#: toplevel.cpp:69 +msgid "&Obtain New Ticket Granting Ticket" +msgstr "" + +#: toplevel.cpp:70 +msgid "&Obtain New Primary Service Ticket" +msgstr "" + +#: toplevel.cpp:71 +msgid "&Obtain Authenticated Service Ticket" +msgstr "" + +#: toplevel.cpp:72 +msgid "&Destroy All Tickets" +msgstr "" + +#: toplevel.cpp:73 +msgid "&Configure..." +msgstr "" + +#: toplevel.cpp:200 +msgid "No Kerberos Tickets Available" +msgstr "" + +#: toplevel.cpp:211 +msgid "(Active)" +msgstr "" + +#: toplevel.cpp:214 +msgid "(Expired)" +msgstr "" + +#: toplevel.cpp:234 +msgid "Please provide Kerberos credentials" +msgstr "" + +#: toplevel.cpp:242 +msgid "Failed to obtain ticket

%1" +msgstr "" + +#: toplevel.cpp:242 +msgid "Failed to obtain Kerberos ticket" +msgstr "" + +#: toplevel.cpp:262 +msgid "Enter the name of the Kerberos service principal you wish to obtain" +msgstr "" + +#: toplevel.cpp:265 +msgid "Failed to obtain service ticket

%1" +msgstr "" + +#: toplevel.cpp:265 +msgid "Failed to obtain Kerberos service ticket" +msgstr "" + +#: toplevel.cpp:272 +msgid "Unable to destroy tickets!" +msgstr "" + +#: toplevel.cpp:272 +msgid "Internal Error" +msgstr "" + +#: toplevel.cpp:304 +msgid "%1 Kerberos ticket(s) listed for principal %2" +msgstr "" + +#: toplevel.cpp:339 +msgid "All ticket(s) have expired" +msgstr "" + +#: toplevel.cpp:344 +msgid "%1 ticket(s) have expired" +msgstr "" + +#: toplevel.cpp:350 +msgid "" +"All ticket(s) are active\n" +"%1 ticket(s) will expire shortly" +msgstr "" + +#: toplevel.cpp:353 +msgid "All ticket(s) are active" +msgstr "" + +#: toplevel.cpp:359 +msgid "No Kerberos tickets are available" +msgstr "" + +#: toplevel.cpp:379 +msgid "Kerberos Tickets Manager" +msgstr "" + +#: toplevel.cpp:387 +msgid "Server: " +msgstr "" + +#: toplevel.cpp:388 +msgid "Client: " +msgstr "" + +#: toplevel.cpp:389 +msgid "Encryption Type: " +msgstr "" + +#: toplevel.cpp:390 +#, c-format +msgid "Key Version: %1" +msgstr "" + +#: toplevel.cpp:391 +msgid "Authenticated: " +msgstr "" + +#: toplevel.cpp:392 +msgid "Valid After: " +msgstr "" + +#: toplevel.cpp:393 +msgid "Valid Before: " +msgstr "" + +#: toplevel.cpp:410 toplevel.cpp:427 +msgid "Kerberos Ticket %1" +msgstr "" + +#: toplevel.cpp:419 toplevel.cpp:432 +msgid "Kerberos Ticket Information" +msgstr "" + +#: toplevel.cpp:435 +msgid "Failed to destroy ticket
%1

%2" +msgstr "" + +#: toplevel.cpp:435 +msgid "Failed to destroy Kerberos ticket" +msgstr "" + +#: configdlgbase.ui:16 +#, no-c-format +msgid "Automatically start the Kerberos Ticket Manager on login" +msgstr "" + +#: configdlgbase.ui:24 +#, no-c-format +msgid "Notify me before my ticket(s) expire" +msgstr "" + +#: configdlgbase.ui:32 +#, no-c-format +msgid "Minutes before expiration:" +msgstr ""