summaryrefslogtreecommitdiff
path: root/noncore/games/kpacman/kpacman.cpp
Side-by-side diff
Diffstat (limited to 'noncore/games/kpacman/kpacman.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kpacman/kpacman.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/noncore/games/kpacman/kpacman.cpp b/noncore/games/kpacman/kpacman.cpp
index 4077085..7df6ef0 100644
--- a/noncore/games/kpacman/kpacman.cpp
+++ b/noncore/games/kpacman/kpacman.cpp
@@ -84,47 +84,47 @@ Kpacman::~Kpacman()
}
void Kpacman::menu()
{
gamePopup = new QPopupMenu();
CHECK_PTR( gamePopup );
- newID = gamePopup->insertItem(i18n("&New"), this, SLOT(newKpacman()),Key_F2);
- pauseID = gamePopup->insertItem(i18n("&Pause"),
+ newID = gamePopup->insertItem(tr("&New"), this, SLOT(newKpacman()),Key_F2);
+ pauseID = gamePopup->insertItem(tr("&Pause"),
this, SLOT(pauseKpacman()), Key_F3);
- hofID = gamePopup->insertItem(i18n("&Hall of fame"),
+ hofID = gamePopup->insertItem(tr("&Hall of fame"),
this, SLOT(toggleHallOfFame()), Key_F4);
gamePopup->insertSeparator();
- gamePopup->insertItem(i18n("&Quit"), this, SLOT(quitKpacman()), CTRL+Key_Q);
+ gamePopup->insertItem(tr("&Quit"), this, SLOT(quitKpacman()), CTRL+Key_Q);
gamePopup->setCheckable(TRUE);
optionsPopup = new QPopupMenu();
CHECK_PTR(optionsPopup);
modesPopup = new QPopupMenu();
CHECK_PTR(modesPopup);
- hideMouseCursorID = optionsPopup->insertItem(i18n("&Hide Mousecursor"),
+ hideMouseCursorID = optionsPopup->insertItem(tr("&Hide Mousecursor"),
this, SLOT(toggleHideMouseCursor()),
CTRL+Key_H);
optionsPopup->insertSeparator();
if (lookupSchemes() > 0) {
- optionsPopup->insertItem(i18n("&Select graphic scheme"), modesPopup);
+ optionsPopup->insertItem(tr("&Select graphic scheme"), modesPopup);
optionsPopup->insertSeparator();
}
- focusOutPauseID = optionsPopup->insertItem(i18n("&Pause in Background"),
+ focusOutPauseID = optionsPopup->insertItem(tr("&Pause in Background"),
this, SLOT(toggleFocusOutPause()));
- focusInContinueID = optionsPopup->insertItem(i18n("&Continue in Foreground"),
+ focusInContinueID = optionsPopup->insertItem(tr("&Continue in Foreground"),
this, SLOT(toggleFocusInContinue()));
optionsPopup->insertSeparator();
- optionsPopup->insertItem(i18n("Change &keys..."), this, SLOT(confKeys()));
+ optionsPopup->insertItem(tr("Change &keys..."), this, SLOT(confKeys()));
#ifndef QWS
- QString aboutText = i18n("@PACKAGE@ - @VERSION@\n\n"
+ QString aboutText = tr("@PACKAGE@ - @VERSION@\n\n"
"Joerg Thoennissen (joe@dsite.de)\n\n"
"A pacman game for the KDE Desktop\n\n"
"The program based on the source of ksnake\n"
"by Michel Filippi (mfilippi@sade.rhein-main.de).\n"
"The design was strongly influenced by the pacman\n"
"(c) 1980 MIDWAY MFG.CO.\n\n"
@@ -134,31 +134,31 @@ void Kpacman::menu()
aboutText.replace(QRegExp("@VERSION@"), VERSION);
QPopupMenu *helpPopup = helpMenu(aboutText, FALSE);
#endif
//_menuBar = new KMenuBar(this);
//CHECK_PTR( _menuBar );
- //_menuBar->insertItem(i18n("&Game"), gamePopup);
- //_menuBar->insertItem(i18n("&Options"), optionsPopup);
+ //_menuBar->insertItem(tr("&Game"), gamePopup);
+ //_menuBar->insertItem(tr("&Options"), optionsPopup);
//_menuBar->insertSeparator();
#ifndef QWS
- _menuBar->insertItem(i18n("&Help"), helpPopup);
+ _menuBar->insertItem(tr("&Help"), helpPopup);
#endif
}
int Kpacman::lookupSchemes()
{
APP_CONFIG_BEGIN( cfg );
int ModeCount = cfg->readNumEntry("ModeCount", -1);
int Mode = cfg->readNumEntry("Mode", -1);
int SchemeCount = cfg->readNumEntry("SchemeCount");
int Scheme = cfg->readNumEntry("Scheme", -1);
if (SchemeCount == 0 || Scheme == -1) {
- QMessageBox::warning(this, i18n("Configuration Error"),
- i18n("There are no schemes defined,\n"
+ QMessageBox::warning(this, tr("Configuration Error"),
+ tr("There are no schemes defined,\n"
"or no scheme is selected."));
APP_CONFIG_END( cfg );
return 0;
}
connect(modesPopup, SIGNAL(activated(int)), this, SLOT(schemeChecked(int)));