Am Sonntag, 10. November 2013 um 20:07:38, schrieb Kornel Benko <kor...@lyx.org>
> Hi Tomasso,
> some strings, like "Connected" used in BuddiesUi.ui are not translated.
> 
> You use in src/frontends/qt4/GuiBuddies.cpp:255 tr("Connected"), but
> since tr() is not searched (like e.g. _(), qt_() ...) they don't make it into 
> lyx.pot.
> 

This patch resolved it for me.

        Kornel
diff --git a/src/frontends/qt4/GuiBuddies.cpp b/src/frontends/qt4/GuiBuddies.cpp
index a5e4d03..a31e2d1 100644
--- a/src/frontends/qt4/GuiBuddies.cpp
+++ b/src/frontends/qt4/GuiBuddies.cpp
@@ -115,7 +115,7 @@ GuiBuddiesWidget::GuiBuddiesWidget(GuiView & view)
 		password = toqstr(getPasswordFor(fromqstr(username)));
 		if (password.size() > 0) {
 			theChatMessenger()->connectToServer(username, password);
-			statusLabel->setText(tr("Connecting..."));
+			statusLabel->setText(qt_("Connecting..."));
 		}
 	}
 
@@ -250,11 +250,11 @@ void GuiBuddiesWidget::on_disconnectPB_clicked()
 void GuiBuddiesWidget::onStateChanged(QXmppClient::State state)
 {
   if (state == QXmppClient::DisconnectedState)
-    statusLabel->setText(tr("Disconnected"));
+    statusLabel->setText(qt_("Disconnected"));
   else if (state == QXmppClient::ConnectedState)
-    statusLabel->setText(tr("Connected"));
+    statusLabel->setText(qt_("Connected"));
   else if (state == QXmppClient::ConnectingState)
-    statusLabel->setText(tr("Connecting..."));
+    statusLabel->setText(qt_("Connecting..."));
 }
 
 
@@ -300,7 +300,7 @@ void GuiBuddiesWidget::onItemClicked(QListWidgetItem *)
 void GuiBuddiesWidget::on_addPB_clicked()
 {
   bool ok;
-  QString peername = QInputDialog::getText(this, QString(), tr("Username of buddy to add:"), QLineEdit::Normal, QString(), &ok);
+  QString peername = QInputDialog::getText(this, QString(), qt_("Username of buddy to add:"), QLineEdit::Normal, QString(), &ok);
   if (ok) {
     theChatMessenger()->rosterManager().subscribe(peername);
     theChatMessenger()->rosterManager().addItem(peername);

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to