"%1's game" is translateable now. please chose the position of %1 (playername) to ge the correct word-order.

This commit is contained in:
doitux
2007-11-01 18:16:20 +00:00
parent 75071a777c
commit cfdac48500
16 changed files with 1291 additions and 1255 deletions
@@ -134,8 +134,8 @@ void gameLobbyDialogImpl::createGame()
gameData.guiSpeed = myCreateInternetGameDialog->spinBox_gameSpeed->value();
gameData.playerActionTimeoutSec = myCreateInternetGameDialog->spinBox_netTimeOutPlayerAction->value();
QString gameString(tr("game"));
currentGameName = QString::fromUtf8(myConfig->readConfigString("MyName").c_str()) + QString("'s "+ gameString);
QString gameString(tr("%1's game"));
currentGameName = gameString.arg(QString::fromUtf8(myConfig->readConfigString("MyName").c_str()));
hideShowGameDescription(TRUE);
@@ -147,7 +147,7 @@ void gameLobbyDialogImpl::createGame()
label_TimeoutForPlayerAction->setText(QString::number(gameData.playerActionTimeoutSec));
mySession->clientCreateGame(gameData, myConfig->readConfigString("MyName") + "'s "+ gameString.toUtf8().constData(), myCreateInternetGameDialog->lineEdit_Password->text().toUtf8().constData());
mySession->clientCreateGame(gameData, currentGameName.toUtf8().constData(), myCreateInternetGameDialog->lineEdit_Password->text().toUtf8().constData());
}
}