author | cniehaus <cniehaus> | 2002-09-03 19:00:18 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-03 19:00:18 (UTC) |
commit | cf317ab123c51fb957ec35d44431e77a8b76c279 (patch) (unidiff) | |
tree | cb81fa703851995a6beb2c8b562da4d2344da47b /noncore/games/kpacman/painter.cpp | |
parent | d9186e958c93df6d6363e2dc0af704e93eb0c06e (diff) | |
download | opie-cf317ab123c51fb957ec35d44431e77a8b76c279.zip opie-cf317ab123c51fb957ec35d44431e77a8b76c279.tar.gz opie-cf317ab123c51fb957ec35d44431e77a8b76c279.tar.bz2 |
As KPacman didn't use tr() but KDE's i18n() is did a simple
perl -pi~ -e 's/i18n/tr/g' *.cpp
Diffstat (limited to 'noncore/games/kpacman/painter.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/kpacman/painter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/games/kpacman/painter.cpp b/noncore/games/kpacman/painter.cpp index 16fed55..80aeab0 100644 --- a/noncore/games/kpacman/painter.cpp +++ b/noncore/games/kpacman/painter.cpp | |||
@@ -71,17 +71,17 @@ QList<QPixmap> *Painter::loadPixmap(QWidget*, QString pixmapName, | |||
71 | 71 | ||
72 | if (!pixmaps->isEmpty()) | 72 | if (!pixmaps->isEmpty()) |
73 | pixmaps->clear(); | 73 | pixmaps->clear(); |
74 | 74 | ||
75 | QPixmap PIXMAP(pixmapName); | 75 | QPixmap PIXMAP(pixmapName); |
76 | if (PIXMAP.isNull() || PIXMAP.mask() == NULL) { | 76 | if (PIXMAP.isNull() || PIXMAP.mask() == NULL) { |
77 | QString msg = i18n("The pixmap could not be contructed.\n\n" | 77 | QString msg = "The pixmap could not be contructed.\n\n" |
78 | "The file '@PIXMAPNAME@' does not exist,\n" | 78 | "The file '@PIXMAPNAME@' does not exist,\n" |
79 | "or is of an unknown format."); | 79 | "or is of an unknown format."; |
80 | msg.replace(QRegExp("@PIXMAPNAME@"), pixmapName); | 80 | msg.replace(QRegExp("@PIXMAPNAME@"), pixmapName); |
81 | // QMessageBox::critical(parent, i18n("Initialization Error"), msg); | 81 | // QMessageBox::critical(parent, tr("Initialization Error"), msg); |
82 | printf("%s\n", msg.data()); | 82 | printf("%s\n", msg.data()); |
83 | return 0; | 83 | return 0; |
84 | } | 84 | } |
85 | 85 | ||
86 | int height = PIXMAP.height(); | 86 | int height = PIXMAP.height(); |
87 | int width = (height == 0) ? 0 : PIXMAP.width()/(PIXMAP.width()/height); | 87 | int width = (height == 0) ? 0 : PIXMAP.width()/(PIXMAP.width()/height); |