QTfrontend/ui/dialog/bandialog.cpp
branchwebgl
changeset 8444 75db7bb8dce8
parent 8417 790492abc004
child 10079 c88e38a0f478
--- a/QTfrontend/ui/dialog/bandialog.cpp	Wed Jan 02 11:11:49 2013 +0100
+++ b/QTfrontend/ui/dialog/bandialog.cpp	Sun Jan 27 00:28:57 2013 +0100
@@ -6,6 +6,7 @@
 #include <QPushButton>
 #include <QHBoxLayout>
 #include <QMessageBox>
+#include "HWApplication.h"
 
 #include "bandialog.h"
 
@@ -21,15 +22,16 @@
     leReason = new QLineEdit(this);
     cbTime = new QComboBox(this);
 
-    cbTime->addItem(tr("10 minutes"), 5 * 60);
-    cbTime->addItem(tr("30 minutes"), 10 * 60);
-    cbTime->addItem(tr("1 hour"), 60 * 60);
-    cbTime->addItem(tr("3 hours"), 3 * 60 * 60);
-    cbTime->addItem(tr("5 hours"), 5 * 60 * 60);
-    cbTime->addItem(tr("24 hours"), 24 * 60 * 60);
-    cbTime->addItem(tr("3 days"), 72 * 60 * 60);
-    cbTime->addItem(tr("7 days"), 168 * 60 * 60);
-    cbTime->addItem(tr("14 days"), 336 * 60 * 60);
+    cbTime->addItem(HWApplication::tr("%1 minutes", 0, 10).arg("10"), 5 * 60);
+    cbTime->addItem(HWApplication::tr("%1 minutes", 0, 30).arg("30"), 10 * 60);
+    cbTime->addItem(HWApplication::tr("%1 hour", 0, 10).arg("10"), 60 * 60);
+    cbTime->addItem(HWApplication::tr("%1 hours", 0, 3).arg("3"), 3 * 60 * 60);
+    cbTime->addItem(HWApplication::tr("%1 hours", 0, 5).arg("5"), 5 * 60 * 60);
+    cbTime->addItem(HWApplication::tr("%1 hours", 0, 12).arg("12"), 12 * 60 * 60);
+    cbTime->addItem(HWApplication::tr("%1 day", 0, 1).arg("1"), 24 * 60 * 60);
+    cbTime->addItem(HWApplication::tr("%1 days", 0, 3).arg("3"), 72 * 60 * 60);
+    cbTime->addItem(HWApplication::tr("%1 days", 0, 7).arg("7"), 168 * 60 * 60);
+    cbTime->addItem(HWApplication::tr("%1 days", 0, 14).arg("14"), 336 * 60 * 60);
     cbTime->addItem(tr("permanent"), 3650 * 24 * 60 * 60);
     cbTime->setCurrentIndex(0);