diff ui/certificateitemwidget.cpp @ 1011:9c4543128666

(issue94) Move install / remove labels into ctor and translate them.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 02 Sep 2014 14:43:48 +0200
parents bd33c6585cd0
children 2b3526ef2d69
line wrap: on
line diff
--- 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;

http://wald.intevation.org/projects/trustbridge/