author | fbarros <fbarros> | 2002-07-18 05:04:14 (UTC) |
---|---|---|
committer | fbarros <fbarros> | 2002-07-18 05:04:14 (UTC) |
commit | 09065b0d3a4ef8c50aa4c06f6cba25f5d6ff7557 (patch) (unidiff) | |
tree | c5c8adb63fe657730dd2ae8fbfadfecdc5acd722 /noncore/games/kbill/kbill.cpp | |
parent | 0559e149a7a07463a5eeab8bc6a5792bba14326b (diff) | |
download | opie-09065b0d3a4ef8c50aa4c06f6cba25f5d6ff7557.zip opie-09065b0d3a4ef8c50aa4c06f6cba25f5d6ff7557.tar.gz opie-09065b0d3a4ef8c50aa4c06f6cba25f5d6ff7557.tar.bz2 |
a few tr() for translating
Diffstat (limited to 'noncore/games/kbill/kbill.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kbill/kbill.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
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 | |||
@@ -29,22 +29,22 @@ | |||
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); |
@@ -86,5 +86,5 @@ void KBill::NewGame() { | |||
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 | } |
@@ -92,5 +92,5 @@ void KBill::Pause() { | |||
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(); |
@@ -113,6 +113,6 @@ 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); |
@@ -124,6 +124,6 @@ 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); |