summaryrefslogtreecommitdiff
path: root/noncore
authorllornkcor <llornkcor>2002-04-14 13:09:32 (UTC)
committer llornkcor <llornkcor>2002-04-14 13:09:32 (UTC)
commitac6b7c674438e06fd1c7648aae50539f14a62789 (patch) (unidiff)
tree268edab34cd30dc1bbb6b23bdbd875870abfb1d4 /noncore
parentac3b5af140135bca092bd442a43b110ed8366e67 (diff)
downloadopie-ac6b7c674438e06fd1c7648aae50539f14a62789.zip
opie-ac6b7c674438e06fd1c7648aae50539f14a62789.tar.gz
opie-ac6b7c674438e06fd1c7648aae50539f14a62789.tar.bz2
changed char *'s to QStringList for better internationalization
Diffstat (limited to 'noncore') (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
@@ -18,6 +18,7 @@
18#include <qlayout.h> 18#include <qlayout.h>
19 #include <stdlib.h> // rand() function 19 #include <stdlib.h> // rand() function
20 #include <qdatetime.h> // seed for rand() 20 #include <qdatetime.h> // seed for rand()
21#include <qstringlist.h> //needed for proper internationalization
21 22
22 23
23//*************************************************************************** 24//***************************************************************************
@@ -369,9 +370,12 @@ void TicTacToe::gameOver()
369 370
370void TicTacToe::newState() 371void TicTacToe::newState()
371{ 372{
372 static const char *msg[] = { // TicTacGameBoard::State texts 373 QStringList msg;
373 "Click Play to start", "Make your move", 374 msg << tr( "Click Play to start")
374 "You won!", "Computer won!", "It's a draw" }; 375 << tr("Make your move")
376 << tr("You won!")
377 << tr("Computer won!")
378 << tr("It's a draw");
375 message->setText( msg[board->state()] ); 379 message->setText( msg[board->state()] );
376 return; 380 return;
377} 381}