- added some missing translatable strings (thanks again uncle)
PublishDisabled= (disabling publish) UnitType=Unit type:
This commit is contained in:
parent
1e2e7a5ef7
commit
0bbe34deee
|
@ -1638,7 +1638,14 @@ void MenuStateCustomGame::update() {
|
||||||
if(EndsWith(masterServererErrorToShow, "wrong router setup") == true) {
|
if(EndsWith(masterServererErrorToShow, "wrong router setup") == true) {
|
||||||
masterServererErrorToShow=lang.get("WrongRouterSetup");
|
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;
|
showMasterserverError=false;
|
||||||
mainMessageBoxState=1;
|
mainMessageBoxState=1;
|
||||||
showMessageBox( masterServererErrorToShow, lang.get("ErrorFromMasterserver"), false);
|
showMessageBox( masterServererErrorToShow, lang.get("ErrorFromMasterserver"), false);
|
||||||
|
|
|
@ -131,7 +131,12 @@ void UnitType::load(int id,const string &dir, const TechTree *techTree,
|
||||||
this->id= id;
|
this->id= id;
|
||||||
|
|
||||||
try {
|
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
|
//file load
|
||||||
checksum->addFile(path);
|
checksum->addFile(path);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user