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);