# HG changeset patch # User Andre Heinecke # Date 1409661828 -7200 # Node ID 9c4543128666cef120152003792fe06026a09692 # Parent c1f32c87716ac4e5db397435dd74be9f50318eb3 (issue94) Move install / remove labels into ctor and translate them. diff -r c1f32c87716a -r 9c4543128666 ui/certificateitemwidget.cpp --- a/ui/certificateitemwidget.cpp Tue Sep 02 12:18:04 2014 +0200 +++ b/ui/certificateitemwidget.cpp Tue Sep 02 14:43:48 2014 +0200 @@ -21,6 +21,12 @@ mInstallLabel (installLabel), mRemoveLabel (removeLabel) { + if (mInstallLabel.isEmpty()) { + mInstallLabel = tr("Install"); + } + if (mRemoveLabel.isEmpty()) { + mRemoveLabel = tr("Remove"); + } mCertificate = cert; mState = state; mEditable = editable; diff -r c1f32c87716a -r 9c4543128666 ui/certificateitemwidget.h --- a/ui/certificateitemwidget.h Tue Sep 02 12:18:04 2014 +0200 +++ b/ui/certificateitemwidget.h Tue Sep 02 14:43:48 2014 +0200 @@ -38,8 +38,8 @@ const Certificate &cert = Certificate(), bool state = false, bool editable = true, - const QString& installLabel = tr("install"), - const QString& removeLabel = tr("remove")); + const QString& installLabel = QString(), + const QString& removeLabel = QString()); bool state(); void setState(bool state); diff -r c1f32c87716a -r 9c4543128666 ui/certificatelistwidget.h --- a/ui/certificatelistwidget.h Tue Sep 02 12:18:04 2014 +0200 +++ b/ui/certificatelistwidget.h Tue Sep 02 14:43:48 2014 +0200 @@ -32,8 +32,8 @@ void addCertificate(const Certificate &certificate, bool state, bool editable = true, - const QString& installLabel = tr("install"), - const QString& removeLabel = tr("remove")); + const QString& installLabel = QString(), + const QString& removeLabel = QString()); void removeCertificate(const Certificate &cert); void setCertState(bool state, const Certificate &cert); void clear(); diff -r c1f32c87716a -r 9c4543128666 ui/l10n/administrator_de_DE.ts --- a/ui/l10n/administrator_de_DE.ts Tue Sep 02 12:18:04 2014 +0200 +++ b/ui/l10n/administrator_de_DE.ts Tue Sep 02 14:43:48 2014 +0200 @@ -70,116 +70,127 @@ AdministratorWindow - - + + TrustBridge Administration TrustBridge Verwaltung - + Menu Menü - + Create installer ... Installationspaket erstellen ... - + About TrustBridge Über TrustBridge - + + Help + + + + Quit Beenden - + All managed root certificates of the certificate list: The english original should be improved In der Liste enthaltene Zertifikate: - + Select certificate list file Zertifikatsliste auswählen - - - + + + + Error! Fehler! - + Failed to load the certificate list. Fehler beim Laden der Zertifikatsliste. - + Failed to open log file: Fehler beim Öffnen der Log-Datei: - - + + Changes are not logged! Änderungen wurden nicht geloggt! - + Failed to write log file: Fehler beim Schreiben der Log-Datei: - + new certificatelist neue Zertifikatsliste - + based on list from basiert auf der Liste vom - + signing certificate: - + new certificates: - + certificates marked to remove: + + Failed to find the manual + + + signing certificate: - Signaturzertifikat: + Signaturzertifikat: new certificates: - Neue Zertifikate: + Neue Zertifikate: certificates marked to remove: - Zertifikate zum löschen markiert: + Zertifikate zum löschen markiert: @@ -192,27 +203,27 @@ Alle verwalteten Wurzelzertifikate der Zertifikatsliste: - + Management application of the BSI certificate installer Verwaltungsanwendung des BSI-Zertifikatsinstallers - + Save list Liste speichern - + Load list Liste laden - + Add certificate Zertifikat hinzufügen - + Remove certificate Zertifikat entfernen @@ -221,7 +232,7 @@ Zertifikatslistendatei auswählen - + Select certificate Zertifikat auswählen diff -r c1f32c87716a -r 9c4543128666 ui/l10n/trustbridge_de_DE.ts --- a/ui/l10n/trustbridge_de_DE.ts Tue Sep 02 12:18:04 2014 +0200 +++ b/ui/l10n/trustbridge_de_DE.ts Tue Sep 02 14:43:48 2014 +0200 @@ -51,39 +51,57 @@ Fingerabdruck (SHA1): &lt;%1&gt; - + install + Installieren + + + remove + Entfernen + + + + Install + Installieren + + + + Remove + Entfernen + + + Validity: %1 until %2 Gültigkeit: %1 bis %2 - + Fingerprint (SHA1): <code>%1</code> Fingerabdruck (SHA1): <code>%1</code> - - + + This certificate is currently installed. Dieses Zertifikat ist aktuell installiert. - + This certificate is currently not installed. Dieses Zertifikat ist aktuell nicht installiert. - + This certificate was uninstalled. Dieses Zertifikat wurde deinstalliert. - - + + uninstall Deinstallieren - + keep Behalten