summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/tictac/tictac.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/games/tictac/tictac.cpp b/noncore/games/tictac/tictac.cpp
index 20cc942..3d727ac 100644
--- a/noncore/games/tictac/tictac.cpp
+++ b/noncore/games/tictac/tictac.cpp
@@ -15,12 +15,13 @@
#include <qcombobox.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qlayout.h>
#include <stdlib.h> // rand() function
#include <qdatetime.h> // seed for rand()
+#include <qstringlist.h> //needed for proper internationalization
//***************************************************************************
//* TicTacButton member functions
//***************************************************************************
@@ -366,12 +367,15 @@ void TicTacToe::gameOver()
// --------------------------------------------------------------------------
// Updates the message to reflect a new state.
//
void TicTacToe::newState()
{
- static const char *msg[] = { // TicTacGameBoard::State texts
- "Click Play to start", "Make your move",
- "You won!", "Computer won!", "It's a draw" };
+ QStringList msg;
+ msg << tr( "Click Play to start")
+ << tr("Make your move")
+ << tr("You won!")
+ << tr("Computer won!")
+ << tr("It's a draw");
message->setText( msg[board->state()] );
return;
}