- added some missing translatable strings (thanks again uncle)

PublishDisabled= (disabling publish)
UnitType=Unit type:
This commit is contained in:
Mark Vejvoda 2011-09-02 16:18:37 +00:00
parent 1e2e7a5ef7
commit 0bbe34deee
2 changed files with 14 additions and 2 deletions

View File

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

View File

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