diff --git a/client/windows/CAdvmapInterface.cpp b/client/windows/CAdvmapInterface.cpp index fbf5e9c76..0574ee6b0 100644 --- a/client/windows/CAdvmapInterface.cpp +++ b/client/windows/CAdvmapInterface.cpp @@ -1217,7 +1217,7 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key) if(itr != LOCPLINT->towns.end()) LOCPLINT->showThievesGuildWindow(*itr); else - LOCPLINT->showInfoDialog("No available town with tavern!"); + LOCPLINT->showInfoDialog(CGI->generaltexth->localizedTexts["adventureMap"]["noTownWithTavern"].String()); } return; case SDLK_i: @@ -1249,7 +1249,7 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key) case SDLK_r: if(isActive() && LOCPLINT->ctrlPressed()) { - LOCPLINT->showYesNoDialog("Are you sure you want to restart game?", + LOCPLINT->showYesNoDialog(CGI->generaltexth->localizedTexts["adventureMap"]["confirmRestartGame"].String(), [](){ LOCPLINT->sendCustomEvent(EUserEvent::RESTART_GAME); }, nullptr); } return; @@ -1308,7 +1308,7 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key) if(townWithMarket) //if any town has marketplace, open window GH.pushIntT(townWithMarket); else //if not - complain - LOCPLINT->showInfoDialog("No available marketplace!"); + LOCPLINT->showInfoDialog(CGI->generaltexth->localizedTexts["adventureMap"]["noTownWithMarket"].String()); } else if(isActive()) //no ctrl, advmapint is on the top => switch to town { diff --git a/client/windows/CCastleInterface.cpp b/client/windows/CCastleInterface.cpp index a1797f35e..4de14e4b0 100644 --- a/client/windows/CCastleInterface.cpp +++ b/client/windows/CCastleInterface.cpp @@ -851,7 +851,7 @@ void CCastleBuildings::enterToTheQuickRecruitmentWindow() if(hasSomeoneToRecruit) GH.pushIntT(town, pos); else - CInfoWindow::showInfoDialog("There are no creatures to recruit", {}); + CInfoWindow::showInfoDialog(CGI->generaltexth->localizedTexts["townHall"]["noCreaturesToRecruit"].String(), {}); } void CCastleBuildings::enterFountain(const BuildingID & building, BuildingSubID::EBuildingSubID subID, BuildingID::EBuildingID upgrades) diff --git a/client/windows/CSpellWindow.cpp b/client/windows/CSpellWindow.cpp index 32a68dd07..ad48699e2 100644 --- a/client/windows/CSpellWindow.cpp +++ b/client/windows/CSpellWindow.cpp @@ -562,7 +562,7 @@ void CSpellWindow::SpellArea::clickLeft(tribool down, bool previousState) if(!texts.empty()) owner->myInt->showInfoDialog(texts.front()); else - owner->myInt->showInfoDialog("Unknown problem with this spell, no more information available."); + owner->myInt->showInfoDialog(CGI->generaltexth->localizedTexts["adventureMap"]["spellUnknownProblem"].String()); } } else //adventure spell diff --git a/config/translate.json b/config/translate.json index 0071d4971..2deb170aa 100644 --- a/config/translate.json +++ b/config/translate.json @@ -21,6 +21,10 @@ "Impossible" ] }, + "confirmRestartGame" : "Are you sure you want to restart game?", + "noTownWithMarket": "No available marketplace!", + "noTownWithTavern": "No available town with tavern!", + "spellUnknownProblem": "Unknown problem with this spell, no more information available.", "playerAttacked" : "Player has been attacked: %s" }, "systemOptions" : @@ -44,6 +48,7 @@ "townHall" : { "missingBase" : "Base building %s must be built first", + "noCreaturesToRecruit" : "There are no creatures to recruit!", "greetingManaVortex" : "As you near the %s your body is filled with new energy. You have doubled your normal spell points.", "greetingKnowledge" : "You study the glyphs on the %s and gain insight into the workings of various magics (+1 Knowledge).", "greetingSpellPower" : "The %s teaches you new ways to focus your magical powers (+1 Power).",