diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ac71d1..8ec225b 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..3378a50 --- /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 04:20+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:74 +msgid "&Obtain New Ticket Granting Ticket" +msgstr "" + +#: toplevel.cpp:75 +msgid "&Obtain New Primary Service Ticket" +msgstr "" + +#: toplevel.cpp:76 +msgid "&Obtain Authenticated Service Ticket" +msgstr "" + +#: toplevel.cpp:77 +msgid "&Destroy All Tickets" +msgstr "" + +#: toplevel.cpp:78 +msgid "&Configure..." +msgstr "" + +#: toplevel.cpp:214 +msgid "No Kerberos Tickets Available" +msgstr "" + +#: toplevel.cpp:225 +msgid "(Active)" +msgstr "" + +#: toplevel.cpp:228 +msgid "(Expired)" +msgstr "" + +#: toplevel.cpp:274 +msgid "Please provide Kerberos credentials" +msgstr "" + +#: toplevel.cpp:282 +msgid "Failed to obtain ticket

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

%1" +msgstr "" + +#: toplevel.cpp:305 +msgid "Failed to obtain Kerberos service ticket" +msgstr "" + +#: toplevel.cpp:312 +msgid "Unable to destroy tickets!" +msgstr "" + +#: toplevel.cpp:312 +msgid "Internal Error" +msgstr "" + +#: toplevel.cpp:344 +msgid "%1 Kerberos ticket(s) listed for principal %2" +msgstr "" + +#: toplevel.cpp:379 +msgid "All ticket(s) have expired" +msgstr "" + +#: toplevel.cpp:384 +msgid "%1 ticket(s) have expired" +msgstr "" + +#: toplevel.cpp:390 +msgid "" +"All ticket(s) are active\n" +"%1 ticket(s) will expire shortly" +msgstr "" + +#: toplevel.cpp:393 +msgid "All ticket(s) are active" +msgstr "" + +#: toplevel.cpp:399 +msgid "No Kerberos tickets are available" +msgstr "" + +#: toplevel.cpp:419 +msgid "Kerberos Tickets Manager" +msgstr "" + +#: toplevel.cpp:427 +msgid "Server: " +msgstr "" + +#: toplevel.cpp:428 +msgid "Client: " +msgstr "" + +#: toplevel.cpp:429 +msgid "Encryption Type: " +msgstr "" + +#: toplevel.cpp:430 +#, c-format +msgid "Key Version: %1" +msgstr "" + +#: toplevel.cpp:431 +msgid "Authenticated: " +msgstr "" + +#: toplevel.cpp:432 +msgid "Valid After: " +msgstr "" + +#: toplevel.cpp:433 +msgid "Valid Before: " +msgstr "" + +#: toplevel.cpp:450 toplevel.cpp:467 +msgid "Kerberos Ticket %1" +msgstr "" + +#: toplevel.cpp:459 toplevel.cpp:472 +msgid "Kerberos Ticket Information" +msgstr "" + +#: toplevel.cpp:475 +msgid "Failed to destroy ticket
%1

%2" +msgstr "" + +#: toplevel.cpp:475 +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..79d3e7e --- /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 04:20+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:74 +msgid "&Obtain New Ticket Granting Ticket" +msgstr "" + +#: toplevel.cpp:75 +msgid "&Obtain New Primary Service Ticket" +msgstr "" + +#: toplevel.cpp:76 +msgid "&Obtain Authenticated Service Ticket" +msgstr "" + +#: toplevel.cpp:77 +msgid "&Destroy All Tickets" +msgstr "" + +#: toplevel.cpp:78 +msgid "&Configure..." +msgstr "" + +#: toplevel.cpp:214 +msgid "No Kerberos Tickets Available" +msgstr "" + +#: toplevel.cpp:225 +msgid "(Active)" +msgstr "" + +#: toplevel.cpp:228 +msgid "(Expired)" +msgstr "" + +#: toplevel.cpp:274 +msgid "Please provide Kerberos credentials" +msgstr "" + +#: toplevel.cpp:282 +msgid "Failed to obtain ticket

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

%1" +msgstr "" + +#: toplevel.cpp:305 +msgid "Failed to obtain Kerberos service ticket" +msgstr "" + +#: toplevel.cpp:312 +msgid "Unable to destroy tickets!" +msgstr "" + +#: toplevel.cpp:312 +msgid "Internal Error" +msgstr "" + +#: toplevel.cpp:344 +msgid "%1 Kerberos ticket(s) listed for principal %2" +msgstr "" + +#: toplevel.cpp:379 +msgid "All ticket(s) have expired" +msgstr "" + +#: toplevel.cpp:384 +msgid "%1 ticket(s) have expired" +msgstr "" + +#: toplevel.cpp:390 +msgid "" +"All ticket(s) are active\n" +"%1 ticket(s) will expire shortly" +msgstr "" + +#: toplevel.cpp:393 +msgid "All ticket(s) are active" +msgstr "" + +#: toplevel.cpp:399 +msgid "No Kerberos tickets are available" +msgstr "" + +#: toplevel.cpp:419 +msgid "Kerberos Tickets Manager" +msgstr "" + +#: toplevel.cpp:427 +msgid "Server: " +msgstr "" + +#: toplevel.cpp:428 +msgid "Client: " +msgstr "" + +#: toplevel.cpp:429 +msgid "Encryption Type: " +msgstr "" + +#: toplevel.cpp:430 +#, c-format +msgid "Key Version: %1" +msgstr "" + +#: toplevel.cpp:431 +msgid "Authenticated: " +msgstr "" + +#: toplevel.cpp:432 +msgid "Valid After: " +msgstr "" + +#: toplevel.cpp:433 +msgid "Valid Before: " +msgstr "" + +#: toplevel.cpp:450 toplevel.cpp:467 +msgid "Kerberos Ticket %1" +msgstr "" + +#: toplevel.cpp:459 toplevel.cpp:472 +msgid "Kerberos Ticket Information" +msgstr "" + +#: toplevel.cpp:475 +msgid "Failed to destroy ticket
%1

%2" +msgstr "" + +#: toplevel.cpp:475 +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 ""