From 0c8dac16592eb870104ccbcfd429b1987d6b186e Mon Sep 17 00:00:00 2001
From: yanmorin <yanmorin>
Date: Tue, 25 Jul 2006 15:15:13 +0000
Subject: [PATCH] Better label for SIP Account #

---
 src/gui/qt/ConfigurationPanel.ui.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gui/qt/ConfigurationPanel.ui.h b/src/gui/qt/ConfigurationPanel.ui.h
index 09aeca6612..0591eb067a 100644
--- a/src/gui/qt/ConfigurationPanel.ui.h
+++ b/src/gui/qt/ConfigurationPanel.ui.h
@@ -134,9 +134,8 @@ ConfigurationPanel::generate()
   QComboBox* cbo = cboSIPAccount;
   cbo->clear();
   int nbItem = 4;
-  QString accountName;
   for (int iItem = 0; iItem < nbItem; iItem++) {
-    accountName = "SIP" + QString::number(iItem);
+    QString accountName = QObject::tr("SIP Account #%1").arg(iItem+1);
     cbo->insertItem(accountName,iItem);
   }
   loadSIPAccount(0);
@@ -353,10 +352,10 @@ ConfigurationPanel::slotRegisterReturn( bool hasError, QString )
 {
   if (hasError) {
     lblError->setPaletteForegroundColor(red); // red
-    lblError->setText("Register failed");
+    lblError->setText(QObject::tr("Register failed"));
   } else {
     lblError->setPaletteForegroundColor(black); // black
-    lblError->setText("Register Succeed");
+    lblError->setText(QObject::tr("Register Succeed"));
   }
   lblError->show();
 }
@@ -404,11 +403,12 @@ void
 ConfigurationPanel::slotSIPAccountChange(int index) 
 {
   if (lastSIPAccount!=index) {
+    
     QString account = "SIP" + QString::number(index);
     DebugOutput::instance() << "Selecting SIP account " << account << "\n";
 
     saveSIPAccount(lastSIPAccount);
-    loadSIPAccount(index);  
+    loadSIPAccount(index);
     lblError->setText("");
   }
 }
-- 
GitLab