wpa_gui: Convert strings to use tr() in user-visible text
[libeap.git] / wpa_supplicant / wpa_gui-qt4 / addinterface.cpp
index 02fecfe..88d4603 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 #include <cstdio>
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 
 #include <QMessageBox>
 
@@ -35,7 +35,7 @@
 AddInterface::AddInterface(WpaGui *_wpagui, QWidget *parent)
        : QDialog(parent), wpagui(_wpagui)
 {
-       setWindowTitle("Select network interface to add");
+       setWindowTitle(tr("Select network interface to add"));
        resize(400, 200);
        vboxLayout = new QVBoxLayout(this);
 
@@ -44,9 +44,9 @@ AddInterface::AddInterface(WpaGui *_wpagui, QWidget *parent)
        interfaceWidget->setUniformRowHeights(true);
        interfaceWidget->setSortingEnabled(true);
        interfaceWidget->setColumnCount(3);
-       interfaceWidget->headerItem()->setText(0, "driver");
-       interfaceWidget->headerItem()->setText(1, "interface");
-       interfaceWidget->headerItem()->setText(2, "description");
+       interfaceWidget->headerItem()->setText(0, tr("driver"));
+       interfaceWidget->headerItem()->setText(1, tr("interface"));
+       interfaceWidget->headerItem()->setText(2, tr("description"));
        interfaceWidget->setItemsExpandable(FALSE);
        interfaceWidget->setRootIsDecorated(FALSE);
        vboxLayout->addWidget(interfaceWidget);
@@ -218,15 +218,15 @@ void AddInterface::interfaceSelected(QTreeWidgetItem *sel)
 
        if (ret < 0) {
                QMessageBox::warning(this, "wpa_gui",
-                                    "Add interface command could not be "
-                                    "completed.");
+                                    tr("Add interface command could not be "
+                                       "completed."));
                return;
        }
 
        buf[len] = '\0';
        if (buf[0] != 'O' || buf[1] != 'K') {
                QMessageBox::warning(this, "wpa_gui",
-                                    "Failed to add the interface.");
+                                    tr("Failed to add the interface."));
                return;
        }
 
@@ -235,8 +235,8 @@ void AddInterface::interfaceSelected(QTreeWidgetItem *sel)
 #ifdef CONFIG_NATIVE_WINDOWS
        if (!addRegistryInterface(sel->text(1))) {
                QMessageBox::information(this, "wpa_gui",
-                                        "Failed to add the interface into "
-                                        "registry.");
+                                        tr("Failed to add the interface into "
+                                           "registry."));
        }
 #endif /* CONFIG_NATIVE_WINDOWS */