summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kbill/UI.cpp6
-rw-r--r--noncore/games/kbill/kbill.cpp30
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
@@ -73,3 +73,3 @@ void UI::popup_dialog (int 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;
@@ -79,3 +79,3 @@ void UI::popup_dialog (int dialog) {
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;
@@ -173,3 +173,3 @@ void UI::update_hsbox(char *str) {
173void UI::update_scorebox(int level, int score) { 173void 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
@@ -30,9 +30,9 @@
30KBill::KBill() : QMainWindow() { 30KBill::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
@@ -40,4 +40,4 @@ KBill::KBill() : QMainWindow() {
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
@@ -45,5 +45,5 @@ KBill::KBill() : QMainWindow() {
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
@@ -87,3 +87,3 @@ 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();
@@ -93,3 +93,3 @@ 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;
@@ -114,4 +114,4 @@ void KBill::Story() {
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);
@@ -125,4 +125,4 @@ void KBill::Rules() {
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);