-rw-r--r-- | noncore/games/kbill/UI.cpp | 6 | ||||
-rw-r--r-- | noncore/games/kbill/kbill.cpp | 30 |
2 files changed, 18 insertions, 18 deletions
diff --git a/noncore/games/kbill/UI.cpp b/noncore/games/kbill/UI.cpp index fac731a..2afaf9b 100644 --- a/noncore/games/kbill/UI.cpp +++ b/noncore/games/kbill/UI.cpp | |||
@@ -71,13 +71,13 @@ void UI::popup_dialog (int dialog) { | |||
71 | kill_timer(); | 71 | kill_timer(); |
72 | switch (dialog) { | 72 | switch (dialog) { |
73 | case Game::ENDGAME: | 73 | case Game::ENDGAME: |
74 | QMessageBox::message(("Endgame"), (endgamestr)); | 74 | QMessageBox::message(("Endgame"), QT_TR_NOOP(endgamestr)); |
75 | break; | 75 | break; |
76 | case Game::HIGHSCORE: | 76 | case Game::HIGHSCORE: |
77 | //QMessageBox::message(("HighScore"), highscorestr); | 77 | //QMessageBox::message(("HighScore"), highscorestr); |
78 | break; | 78 | break; |
79 | case Game::ENTERNAME: { | 79 | case Game::ENTERNAME: { |
80 | InputBox b(main, 0, ("Enter Name"), (enternamestr)); | 80 | InputBox b(main, 0, ("Enter Name"), QT_TR_NOOP(enternamestr)); |
81 | bool state = b.exec() == 2; | 81 | bool state = b.exec() == 2; |
82 | char str[20], *nl; | 82 | char str[20], *nl; |
83 | strcpy(str, b.getText()); | 83 | strcpy(str, b.getText()); |
@@ -171,5 +171,5 @@ void UI::update_hsbox(char *str) { | |||
171 | } | 171 | } |
172 | 172 | ||
173 | void UI::update_scorebox(int level, int score) { | 173 | void UI::update_scorebox(int level, int score) { |
174 | scorestr.sprintf ("%s %d:\n%s: %d", ("After Level"), level, ("Your score"), score); | 174 | scorestr.sprintf ("%s %d:\n%s: %d", QT_TR_NOOP("After Level"), level, QT_TR_NOOP("Your score"), score); |
175 | } | 175 | } |
diff --git a/noncore/games/kbill/kbill.cpp b/noncore/games/kbill/kbill.cpp index 9fcfd5d..afeaeb5 100644 --- a/noncore/games/kbill/kbill.cpp +++ b/noncore/games/kbill/kbill.cpp | |||
@@ -28,24 +28,24 @@ | |||
28 | #include "Strings.h" | 28 | #include "Strings.h" |
29 | 29 | ||
30 | KBill::KBill() : QMainWindow() { | 30 | KBill::KBill() : QMainWindow() { |
31 | setCaption("kBill"); | 31 | setCaption(tr("kBill")); |
32 | file = new QPopupMenu(); | 32 | file = new QPopupMenu(); |
33 | file->insertItem(("New game"), this, SLOT(NewGame())); | 33 | file->insertItem(tr("New game"), this, SLOT(NewGame())); |
34 | pauseid = file->insertItem(("Pause game"), this, SLOT(Pause())); | 34 | pauseid = file->insertItem(tr("Pause game"), this, SLOT(Pause())); |
35 | //these are dissabled until I fix them | 35 | //these are dissabled until I fix them |
36 | //file->insertItem(("Warp to level..."), this, SLOT(WarpTo())); | 36 | //file->insertItem(tr("Warp to level..."), this, SLOT(WarpTo())); |
37 | //file->insertItem(("View high scores"), this, SLOT(ViewHighScores())); | 37 | //file->insertItem(tr("View high scores"), this, SLOT(ViewHighScores())); |
38 | 38 | ||
39 | 39 | ||
40 | help = new QPopupMenu(); | 40 | help = new QPopupMenu(); |
41 | help->insertItem(("Story of kBill"), this, SLOT(Story())); | 41 | help->insertItem(tr("Story of kBill"), this, SLOT(Story())); |
42 | help->insertItem(("Rules"), this, SLOT(Rules())); | 42 | help->insertItem(tr("Rules"), this, SLOT(Rules())); |
43 | 43 | ||
44 | 44 | ||
45 | menu = new QMenuBar(this); | 45 | menu = new QMenuBar(this); |
46 | menu->insertItem(("&File"), file); | 46 | menu->insertItem(tr("&File"), file); |
47 | menu->insertSeparator(); | 47 | menu->insertSeparator(); |
48 | menu->insertItem(("&Help"), help); | 48 | menu->insertItem(tr("&Help"), help); |
49 | 49 | ||
50 | field = new Field(this); | 50 | field = new Field(this); |
51 | //setView(field); | 51 | //setView(field); |
@@ -85,13 +85,13 @@ void KBill::NewGame() { | |||
85 | 85 | ||
86 | void KBill::Pause() { | 86 | void KBill::Pause() { |
87 | field->stopTimer(); | 87 | field->stopTimer(); |
88 | QMessageBox::message(("Pause Game"), (pausestr), 0); | 88 | QMessageBox::message(tr("Pause Game"), tr(pausestr), 0); |
89 | field->startTimer(); | 89 | field->startTimer(); |
90 | } | 90 | } |
91 | 91 | ||
92 | void KBill::WarpTo() { | 92 | void KBill::WarpTo() { |
93 | /* field->stopTimer(); | 93 | /* field->stopTimer(); |
94 | InputBox b(this, 0, "Warp To Level", warpstr); | 94 | InputBox b(this, 0, "Warp To Level", tr(warpstr)); |
95 | bool status = b.exec() == 1; | 95 | bool status = b.exec() == 1; |
96 | field->startTimer(); | 96 | field->startTimer(); |
97 | if (status) { | 97 | if (status) { |
@@ -112,8 +112,8 @@ void KBill::ViewHighScores() { | |||
112 | void KBill::Story() { | 112 | void KBill::Story() { |
113 | field->stopTimer(); | 113 | field->stopTimer(); |
114 | HelpDialog *stryDialog = new HelpDialog(this,"helpdialog",1); | 114 | HelpDialog *stryDialog = new HelpDialog(this,"helpdialog",1); |
115 | QString stryString = "<b>The Story</b><p>Yet again, the fate of the world rests in your hands! An evil computer hacker, known only by his handle 'Bill', has created the ultimate computer virus. A virus so powerful that it has the power to transmute an ordinary computer into a toaster oven. (oooh!) 'Bill' has cloned himself into a billion-jillion micro-Bills. Their sole purpose is to deliver the nefarious virus, which has been cleverly diguised as a popular operating system. As System Administrator and Exterminator, your job is to keep Bill from succeeding at his task."; | 115 | QString stryString = tr("<b>The Story</b><p>Yet again, the fate of the world rests in your hands! An evil computer hacker, known only by his handle 'Bill', has created the ultimate computer virus. A virus so powerful that it has the power to transmute an ordinary computer into a toaster oven. (oooh!) 'Bill' has cloned himself into a billion-jillion micro-Bills. Their sole purpose is to deliver the nefarious virus, which has been cleverly diguised as a popular operating system. As System Administrator and Exterminator, your job is to keep Bill from succeeding at his task."); |
116 | stryDialog->setCaption("The story of KBill"); | 116 | stryDialog->setCaption(tr("The story of KBill")); |
117 | stryDialog->TextBrowser1->setText(stryString); | 117 | stryDialog->TextBrowser1->setText(stryString); |
118 | stryDialog->resize(200,200); | 118 | stryDialog->resize(200,200); |
119 | stryDialog->show(); | 119 | stryDialog->show(); |
@@ -123,8 +123,8 @@ void KBill::Story() { | |||
123 | void KBill::Rules() { | 123 | void KBill::Rules() { |
124 | field->stopTimer(); | 124 | field->stopTimer(); |
125 | HelpDialog *rulesDialog = new HelpDialog(this,"helpdialog",1); | 125 | HelpDialog *rulesDialog = new HelpDialog(this,"helpdialog",1); |
126 | rulesDialog->setCaption("The rules of KBill"); | 126 | rulesDialog->setCaption(tr("The rules of KBill")); |
127 | QString rulesStr = "<b>The Rules</b><p>kBill has been painstakingly designed and researched in order to make it as easy to use for the whole family as it is for little Sally. Years - nay - days of beta testing and consulting with the cheapest of human interface designers have resulted in a game that is easy to use, yet nothing at all like a Macintosh.<p><UL><LI>Whack the Bills (click)</LI><LI>Restart the computer (click)</LI><LI>Pick up stolen OSes & return (drag) them to their respective computers</LI><LI>Drag the bucket to extinguish sparks</LI><LI>Scoring is based on total uptime, with bonuses for killing Bills.</LI></UL><P>As for the rest, you can probably work it out for yourself. We did, so it can't be too hard"; | 127 | QString rulesStr = tr("<b>The Rules</b><p>kBill has been painstakingly designed and researched in order to make it as easy to use for the whole family as it is for little Sally. Years - nay - days of beta testing and consulting with the cheapest of human interface designers have resulted in a game that is easy to use, yet nothing at all like a Macintosh.<p><UL><LI>Whack the Bills (click)</LI><LI>Restart the computer (click)</LI><LI>Pick up stolen OSes & return (drag) them to their respective computers</LI><LI>Drag the bucket to extinguish sparks</LI><LI>Scoring is based on total uptime, with bonuses for killing Bills.</LI></UL><P>As for the rest, you can probably work it out for yourself. We did, so it can't be too hard"); |
128 | rulesDialog->TextBrowser1->setText(rulesStr); | 128 | rulesDialog->TextBrowser1->setText(rulesStr); |
129 | rulesDialog->resize(200,200); | 129 | rulesDialog->resize(200,200); |
130 | rulesDialog->show(); | 130 | rulesDialog->show(); |