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/UI.cpp | |
parent | 0559e149a7a07463a5eeab8bc6a5792bba14326b (diff) | |
download | opie-09065b0d3a4ef8c50aa4c06f6cba25f5d6ff7557.zip opie-09065b0d3a4ef8c50aa4c06f6cba25f5d6ff7557.tar.gz opie-09065b0d3a4ef8c50aa4c06f6cba25f5d6ff7557.tar.bz2 |
a few tr() for translating
-rw-r--r-- | noncore/games/kbill/UI.cpp | 6 |
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 | |||
@@ -68,19 +68,19 @@ void UI::make_mainwin() { | |||
68 | } | 68 | } |
69 | 69 | ||
70 | void UI::popup_dialog (int dialog) { | 70 | 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()); |
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'))) |
@@ -168,8 +168,8 @@ int UI::MainLoop() { | |||
168 | 168 | ||
169 | void UI::update_hsbox(char *str) { | 169 | void UI::update_hsbox(char *str) { |
170 | highscorestr = str; | 170 | highscorestr = 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 | } |