[PATCH 2 of 5] Add translation for trustbridge

Wald Commits scm-commit at wald.intevation.org
Thu Apr 17 10:55:32 CEST 2014


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1397667908 0
# Node ID 7edfc9b9b360e605244db1f1d32583aee5b2a02b
# Parent  16b6d5686835f6ebd0dbb3f0a414f7bd1ad30d3d
Add translation for trustbridge

diff -r 16b6d5686835 -r 7edfc9b9b360 ui/CMakeLists.txt
--- a/ui/CMakeLists.txt	Wed Apr 16 17:00:59 2014 +0000
+++ b/ui/CMakeLists.txt	Wed Apr 16 17:05:08 2014 +0000
@@ -100,13 +100,6 @@
 # TRUSTBRIDGE_SOURCES in the test subdirectory.
 set(TRUSTBRIDGE_SOURCES_WITH_RESOURCES ${TRUSTBRIDGE_SOURCES})
 qt5_add_resources(TRUSTBRIDGE_SOURCES_WITH_RESOURCES ${TRUSTBRIDGE_RESOURCES})
-add_executable(trustbridge ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES})
-
-target_link_libraries(trustbridge Qt5::Widgets
-   trustbridge_common
-   ${POLARSSL_LIBRARIES}
-   ${EXTRA_STATIC_LIBS}
-   ${PROFILING_LIBS})
 
 set(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_SOURCES})
 qt5_add_resources(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_RESOURCES})
@@ -124,9 +117,20 @@
       ${ADMINISTRATOR_L10N}
       ${ADMINISTRATOR_TRANSLATION}
       )
+
+   configure_file(l10n/trustbridge.qrc.in trustbridge.qrc)
+   qt5_add_resources(TRUSTBRIDGE_L10N ${CMAKE_CURRENT_BINARY_DIR}/trustbridge.qrc)
+   qt5_create_translation(TRUSTBRIDGE_TRANSLATION ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}
+      ${CMAKE_CURRENT_SOURCE_DIR}/l10n/trustbridge_de_DE.ts)
+   add_executable(trustbridge ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}
+      ${TRUSTBRIDGE_L10N}
+      ${TRUSTBRIDGE_TRANSLATION}
+      )
+
 else()
-  message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.")
-  add_executable(administrator ${ADMINSTRATOR_SOURCES_WITH_RESOURCES})
+   message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.")
+   add_executable(administrator ${ADMINSTRATOR_SOURCES_WITH_RESOURCES})
+   add_executable(trustbridge ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES})
 endif()
 
 target_link_libraries(administrator Qt5::Widgets
@@ -135,6 +139,13 @@
    ${EXTRA_STATIC_LIBS}
    ${PROFILING_LIBS})
 
+target_link_libraries(trustbridge Qt5::Widgets
+   trustbridge_common
+   ${POLARSSL_LIBRARIES}
+   ${EXTRA_STATIC_LIBS}
+   ${PROFILING_LIBS})
+
+
 # Tests
 add_subdirectory(tests)
 
diff -r 16b6d5686835 -r 7edfc9b9b360 ui/l10n/trustbridge.qrc.in
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/l10n/trustbridge.qrc.in	Wed Apr 16 17:05:08 2014 +0000
@@ -0,0 +1,5 @@
+<!DOCTYPE RCC><RCC version="1.0">
+<qresource prefix="/l10n">
+    <file alias="trustbridge_de_DE.qm">@CMAKE_CURRENT_BINARY_DIR@/trustbridge_de_DE.qm</file>
+</qresource>
+</RCC>
diff -r 16b6d5686835 -r 7edfc9b9b360 ui/l10n/trustbridge_de_DE.ts
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/l10n/trustbridge_de_DE.ts	Wed Apr 16 17:05:08 2014 +0000
@@ -0,0 +1,279 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="de_DE">
+<context>
+    <name>AboutDialog</name>
+    <message>
+        <location filename="../aboutdialog.cpp" line="25"/>
+        <source>This dialog contains some text about the application</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../aboutdialog.cpp" line="28"/>
+        <source>Close</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>Downloader</name>
+    <message>
+        <location filename="../downloader.cpp" line="80"/>
+        <source>Invalid response</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../downloader.cpp" line="115"/>
+        <location filename="../downloader.cpp" line="123"/>
+        <location filename="../downloader.cpp" line="162"/>
+        <location filename="../downloader.cpp" line="174"/>
+        <source>Connection lost</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../downloader.cpp" line="137"/>
+        <source>Invalid response from the server</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../downloader.cpp" line="200"/>
+        <source>Failed to initialize SSL Module.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../downloader.cpp" line="207"/>
+        <source>Failed to connect.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../downloader.cpp" line="212"/>
+        <source>Connected</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../downloader.cpp" line="262"/>
+        <source>Closing</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>HelpDialog</name>
+    <message>
+        <location filename="../helpdialog.cpp" line="25"/>
+        <source>This dialog contains some text to help the user.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../helpdialog.cpp" line="28"/>
+        <source>Close</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>InstallWrapper</name>
+    <message>
+        <location filename="../installwrapper.cpp" line="70"/>
+        <source>Could not find certificate installation process.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../installwrapper.cpp" line="75"/>
+        <source>Failed to write temporary file.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../installwrapper.cpp" line="108"/>
+        <source>Error executing process: %1</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../installwrapper.cpp" line="119"/>
+        <source>Error monitoring process: %1</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../installwrapper.cpp" line="122"/>
+        <source>Certificate installation timed out.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../installwrapper.cpp" line="135"/>
+        <source>Failed to check process status: %1</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../installwrapper.cpp" line="143"/>
+        <source>The process failed with return code. %1</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../installwrapper.cpp" line="160"/>
+        <source>Failed to start installer process.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../installwrapper.cpp" line="168"/>
+        <location filename="../installwrapper.cpp" line="173"/>
+        <source>Failed to complete installation.</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>MainWindow</name>
+    <message>
+        <location filename="../mainwindow.cpp" line="165"/>
+        <source>An updated certificate list is available. Click here to install.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="173"/>
+        <source>An update for %1 is available. Click here to install.</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="229"/>
+        <source>Check for Updates</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="231"/>
+        <location filename="../mainwindow.cpp" line="266"/>
+        <location filename="../mainwindow.cpp" line="325"/>
+        <source>Quit</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="249"/>
+        <source>TrustBridge</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="257"/>
+        <source>Menu</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="259"/>
+        <source>Force Update</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="260"/>
+        <source>Settings</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="261"/>
+        <source>Statusdialog</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="263"/>
+        <source>Help</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="264"/>
+        <source>About</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="292"/>
+        <source>Managed Certificates</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="315"/>
+        <source>autoupdate</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="321"/>
+        <source>Install selected</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="335"/>
+        <source>Details</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="457"/>
+        <source>Error executing update</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../mainwindow.cpp" line="499"/>
+        <source>Installing certificates...</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>QObject</name>
+    <message>
+        <location filename="../certificate.cpp" line="75"/>
+        <source>Certificate:
+    <bold>%1</bold>
+    %2, %3
+
+Serial number:
+%4
+Valid from: <bold>%5</bold> to <bold>%6</bold>
+
+Issued by: ..</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../certificate.cpp" line="129"/>
+        <source>Failed to parse certificate</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../main.cpp" line="44"/>
+        <source>Couldn't detect any system tray on this system. This software can only be used in a desktop environment.</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+<context>
+    <name>StatusDialog</name>
+    <message>
+        <location filename="../statusdialog.cpp" line="25"/>
+        <source>The following certificates are successfully installed:
</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../statusdialog.cpp" line="26"/>
+        <source>* Email CA 2013
</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../statusdialog.cpp" line="27"/>
+        <source>* Server CA 2010
</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../statusdialog.cpp" line="28"/>
+        <source>
The following certificates are successfully removed:
</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../statusdialog.cpp" line="29"/>
+        <source>* Email CA 2010
</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../statusdialog.cpp" line="30"/>
+        <source>
Errors while processing certificates:
</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../statusdialog.cpp" line="31"/>
+        <source>* PCA-1-Verwaltung-08
</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../statusdialog.cpp" line="35"/>
+        <source>Close</source>
+        <translation type="unfinished"></translation>
+    </message>
+</context>
+</TS>


More information about the Trustbridge-commits mailing list