From 0bbe34deeee1a304856a48355e21c5e9900b2642 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 2 Sep 2011 16:18:37 +0000 Subject: [PATCH] - added some missing translatable strings (thanks again uncle) PublishDisabled= (disabling publish) UnitType=Unit type: --- source/glest_game/menu/menu_state_custom_game.cpp | 9 ++++++++- source/glest_game/types/unit_type.cpp | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index ecd2711a..83500451 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -1638,7 +1638,14 @@ void MenuStateCustomGame::update() { if(EndsWith(masterServererErrorToShow, "wrong router setup") == true) { masterServererErrorToShow=lang.get("WrongRouterSetup"); } - masterServererErrorToShow += " (disabling publish)"; + + Lang &lang= Lang::getInstance(); + string publishText = " (disabling publish)"; + if(lang.hasString("PublishDisabled") == true) { + publishText = lang.get("PublishDisabled"); + } + + masterServererErrorToShow += publishText; showMasterserverError=false; mainMessageBoxState=1; showMessageBox( masterServererErrorToShow, lang.get("ErrorFromMasterserver"), false); diff --git a/source/glest_game/types/unit_type.cpp b/source/glest_game/types/unit_type.cpp index e8bce34e..98725d4e 100644 --- a/source/glest_game/types/unit_type.cpp +++ b/source/glest_game/types/unit_type.cpp @@ -131,7 +131,12 @@ void UnitType::load(int id,const string &dir, const TechTree *techTree, this->id= id; try { - Logger::getInstance().add("Unit type: " + formatString(name), true); + Lang &lang= Lang::getInstance(); + string unitTypeText = "Unit type: "; + if(lang.hasString("UnitType") == true) { + unitTypeText = lang.get("UnitType"); + } + Logger::getInstance().add(unitTypeText + " " + formatString(name), true); //file load checksum->addFile(path);