Use tr() properly
authorunc0rr
Mon, 29 Apr 2013 10:01:51 +0400
changeset 8941 bc2957e1980c
parent 8940 181ea27122da
child 8942 5a587c7169f2
Use tr() properly
QTfrontend/ui/widget/mapContainer.cpp
--- a/QTfrontend/ui/widget/mapContainer.cpp	Sat Apr 27 17:02:26 2013 -0400
+++ b/QTfrontend/ui/widget/mapContainer.cpp	Mon Apr 29 10:01:51 2013 +0400
@@ -801,7 +801,7 @@
     btnTheme->setFixedHeight(64);
     btnTheme->setIconSize(iconSize);
     btnTheme->setIcon(icon);
-    btnTheme->setText(tr("Theme: ") + current.data(Qt::DisplayRole).toString());
+    btnTheme->setText(tr("Theme: %1").arg(current.data(Qt::DisplayRole).toString()));
     updateThemeButtonSize();
 }
 
@@ -932,5 +932,5 @@
 
     m_theme = name;
     btnTheme->setIcon(QIcon());
-    btnTheme->setText(tr("Theme: ") + name);
+    btnTheme->setText(tr("Theme: %1").arg(name));
 }