summaryrefslogtreecommitdiff
path: root/noncore/games/kbill/UI.cpp
Unidiff
Diffstat (limited to 'noncore/games/kbill/UI.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kbill/UI.cpp6
1 files changed, 3 insertions, 3 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
@@ -62,31 +62,31 @@ void UI::graph_init() {
62 62
63void UI::make_mainwin() { 63void UI::make_mainwin() {
64 main = new KBill(); 64 main = new KBill();
65 app->showMainWidget(main,true); 65 app->showMainWidget(main,true);
66 main->showMaximized(); 66 main->showMaximized();
67 field = main->getField(); 67 field = main->getField();
68} 68}
69 69
70void UI::popup_dialog (int dialog) { 70void 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());
84 if (!str[0] || state) 84 if (!str[0] || state)
85 strcpy(str, "Anonymous"); 85 strcpy(str, "Anonymous");
86 else if ((nl = strchr(str, '\n'))) 86 else if ((nl = strchr(str, '\n')))
87 *nl = '\0'; 87 *nl = '\0';
88 if (strlen(str) > 20) 88 if (strlen(str) > 20)
89 str[20] = 0; /* truncate string if too long */ 89 str[20] = 0; /* truncate string if too long */
90 // scores.recalc(str); 90 // scores.recalc(str);
91 } 91 }
92 break; 92 break;
@@ -162,14 +162,14 @@ void UI::set_pausebutton (int action) {
162} 162}
163 163
164 164
165int UI::MainLoop() { 165int UI::MainLoop() {
166 return app->exec(); 166 return app->exec();
167} 167}
168 168
169void UI::update_hsbox(char *str) { 169void UI::update_hsbox(char *str) {
170 highscorestr = str; 170 highscorestr = str;
171} 171}
172 172
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}