From 57a74cbc89fa4de4cecfc6c4be05b122327d19fa Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Mon, 31 Mar 2008 19:37:45 +0200 Subject: [PATCH] More translatable strings. --- src/gui/MainWindow.cpp | 6 +++- src/gui/ui/MainWindow.ui | 10 +++---- src/translations/gomoku3d_en.ts | 61 +++++++++++++++++++++------------------ src/translations/gomoku3d_it.ts | 63 ++++++++++++++++++++++------------------- 4 files changed, 77 insertions(+), 63 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index cbe46fc..cf766fd 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -57,7 +57,10 @@ MainWindow::MainWindow() : QMainWindow(), Ui_MainWindow(*this) _timerDuration = 0; setupUi(this); - menuHelp->addAction(QWhatsThis::createAction(this)); + + QAction *whatsThis = QWhatsThis::createAction(this); + whatsThis->setText(tr("What's This?")); + menuHelp->addAction(whatsThis); _render = new RenderWidget(this); setCentralWidget(_render); @@ -834,6 +837,7 @@ void MainWindow::saveGame() } QXmlStreamWriter xml(&f); + xml.setAutoFormatting(true); xml.writeStartDocument(); xml.writeDefaultNamespace("http://www.itworks.org/GoMoku3D/SavedGame"); xml.writeStartElement("game"); diff --git a/src/gui/ui/MainWindow.ui b/src/gui/ui/MainWindow.ui index f3ad4ec..5609521 100644 --- a/src/gui/ui/MainWindow.ui +++ b/src/gui/ui/MainWindow.ui @@ -41,7 +41,7 @@ 26 - + Game @@ -62,7 +62,7 @@ - + Moves @@ -81,8 +81,8 @@ - - + + @@ -128,7 +128,7 @@ - About + About GoMoku3D diff --git a/src/translations/gomoku3d_en.ts b/src/translations/gomoku3d_en.ts index d469141..5234632 100644 --- a/src/translations/gomoku3d_en.ts +++ b/src/translations/gomoku3d_en.ts @@ -145,43 +145,43 @@ is using an incompatible protocol version. MainWindow - + Players' Info - + History - + Timer - + Chat - + Game Ended - + Timer expired: %1 lost the game. - + Abandon Game? - + If you continue, the current game will be lost. @@ -189,65 +189,65 @@ Are you sure you want to continue? - + And the winner is ... %1! - + Game ended in a draw:%1 - + Forbidden - + You can't go back when it's not your turn. - + Are you sure? - + Do you really want to bring the game in a past situation? - + Error - + %1 Quitting current game. - + Save Game - + Open Saved Game - + Saved game file is corrupted. Cannot load game. - + Load Settings? @@ -322,11 +322,6 @@ Cannot load game. - - About - - - Undo Move @@ -387,21 +382,31 @@ Cannot load game. - + Cannot open selected file. - + File is corrupted. Cannot load game. - + Load color settings from the saved game? + + + What's This? + + + + + About GoMoku3D + + OnlineDialog diff --git a/src/translations/gomoku3d_it.ts b/src/translations/gomoku3d_it.ts index a5b7780..45833be 100644 --- a/src/translations/gomoku3d_it.ts +++ b/src/translations/gomoku3d_it.ts @@ -151,44 +151,44 @@ usa una versione incompatibile del protocollo. MainWindow - + Players' Info Informazioni sui giocatori - + History Storico delle mosse - + Timer Cronometro - + Chat Chat - + Game Ended Partita terminata - + Timer expired: %1 lost the game. Tempo scaduto: %1 ha perso la partita. - + Abandon Game? Abbandonare la partita? - + If you continue, the current game will be lost. @@ -199,68 +199,68 @@ corrente verranno persi. Sei sicuro di voler continuare? - + And the winner is ... %1! Il vincitore è ... %1! - + Game ended in a draw:%1 Partita terminata con un pareggio:%1 - + Forbidden Vietato - + You can't go back when it's not your turn. Non puoi tornare indietro quando non è il tuo turno. - + Are you sure? Sei sicuro? - + Do you really want to bring the game in a past situation? Vuoi veramente ripristinare una situazione precedente della partita? - + Error Errore - + %1 Quitting current game. %1 Terminazione della partita corrente. - + Save Game Salva partita - + Open Saved Game Carica partita salvata - + Saved game file is corrupted. Cannot load game. Il file della partita salvata è corrotto. Non è possibile caricare la partita. - + Load Settings? Caricare le impostazioni? @@ -335,11 +335,6 @@ Non è possibile caricare la partita. Manuale d'uso - - About - Informazioni - - Undo Move Annulla ultima mossa @@ -362,7 +357,7 @@ Non è possibile caricare la partita. About Qt - Informazioni Qt + Informazioni su Qt @@ -400,22 +395,32 @@ Non è possibile caricare la partita. Ctrl+F - + Cannot open selected file. Impossibile aprire il file selezionato. - + File is corrupted. Cannot load game. Il file è corrotto. Non è possibile caricare la partita. - + Load color settings from the saved game? Caricare le impostazioni dei colori dalla partita salvata? + + + What's This? + Che cos'è? + + + + About GoMoku3D + Informazioni su GoMoku3D + OnlineDialog -- 2.11.4.GIT