diff --git a/game/localplayer/CityScreen.cpp b/game/localplayer/CityScreen.cpp index 7380679..d83f9b4 100644 --- a/game/localplayer/CityScreen.cpp +++ b/game/localplayer/CityScreen.cpp @@ -618,7 +618,7 @@ void CityDlg::offscreenPaint() for (int i = 0; i < Term::nCityEventPriority && line < messageCount; ++i) checkMessage(Term::CityEventPriority[static_cast(i)]); } else { - s = QStringLiteral("City management: #%1").arg(optiType); + s = phrases.lookup(QStringLiteral("CITYMANAGETYPE"), optiType); const int j = s.indexOf(QLatin1Char('\\')); if (j < 0) { loweredTextOut(canvas, -1, *MainTexture, xmOpt + 40, ymOpt - 9, s); diff --git a/game/localplayer/Draft.cpp b/game/localplayer/Draft.cpp index 0080d56..000b062 100644 --- a/game/localplayer/Draft.cpp +++ b/game/localplayer/Draft.cpp @@ -80,8 +80,7 @@ QString phrase(const QString &key) QString phraseFeature(int code) { - // Feature names (StringTables.pas) aren't ported. - return QStringLiteral("Feature #%1").arg(code); + return phrases.lookup(QStringLiteral("FEATURES"), code); } QString phraseCostDiff(int difficulty) diff --git a/game/localplayer/Enhance.cpp b/game/localplayer/Enhance.cpp index 8ee8caf..5062610 100644 --- a/game/localplayer/Enhance.cpp +++ b/game/localplayer/Enhance.cpp @@ -32,6 +32,7 @@ #include "Cevo/CevoScreenTools.h" #include "Cevo/CevoTexture.h" #include "ClientTools.h" +#include "Global.h" #include "Help.h" #include "KeyBindings.h" #include "Term.h" @@ -63,7 +64,7 @@ QString phrase(const QString &key) QString terrainName(int terrType) { - return QStringLiteral("Terrain #%1").arg(terrType); + return phrases.lookup(QStringLiteral("TERRAIN"), terrType); } QString enhanceLabel(const QString &terrainLabel, const QString &workTime) diff --git a/game/localplayer/Wonders.cpp b/game/localplayer/Wonders.cpp index 811883c..a56af94 100644 --- a/game/localplayer/Wonders.cpp +++ b/game/localplayer/Wonders.cpp @@ -32,6 +32,7 @@ #include "Cevo/CevoScreenTools.h" #include "Cevo/CevoTexture.h" #include "ClientTools.h" +#include "Global.h" #include "Help.h" #include "Term.h" #include "Tribes.h" @@ -271,7 +272,7 @@ void WondersDlg::vpaint(Dpi::Canvas &canvas) if (selection < 0 || !MainTexture) return; - QString s = QStringLiteral("Wonder #%1").arg(selection); + QString s = phrases.lookup(QStringLiteral("IMPROVEMENTS"), selection); if (ClientTools::myRO->Wonder[selection].CityID != WonderDestroyed) s = QStringLiteral("%1 (%2)").arg(s, Tribes::cityName(ClientTools::myRO->Wonder[selection].CityID)); loweredTextOut(canvas, -1, *MainTexture, (width() - biColorTextWidth(canvas, s)) / 2, height() - 3 - 36 - 10, s);