a few missed areas of translated techtrees

This commit is contained in:
Mark Vejvoda 2013-06-13 20:22:04 +00:00
parent dc716702c4
commit ba1852aa63
3 changed files with 6 additions and 3 deletions

View File

@ -2595,6 +2595,9 @@ void runTechTranslationExtractionForPath(string techPath, string techName,
txFile << "; -----------------" << std::endl;
txFile << "; Types of Factions" << std::endl;
txFile << "FactionName_" << GameConstants::OBSERVER_SLOTNAME << "=" << GameConstants::OBSERVER_SLOTNAME << std::endl;
txFile << "FactionName_" << GameConstants::RANDOMFACTION_SLOTNAME << "=" << GameConstants::RANDOMFACTION_SLOTNAME << std::endl;
for(unsigned int index = 0; index < techtree->getTypeCount(); ++index) {
const FactionType *ft = techtree->getType(index);
txFile << "FactionName_" << ft->getName(false) << "=" << ft->getName(false) << std::endl;

View File

@ -181,7 +181,7 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree, const
//Lang &lang= Lang::getInstance();
char szBuf[8096]="";
snprintf(szBuf,8096,Lang::getInstance().get("LogScreenGameLoadingUnitType","",true).c_str(),formatString(name).c_str());
snprintf(szBuf,8096,Lang::getInstance().get("LogScreenGameLoadingUnitType","",true).c_str(),formatString(this->getName(true)).c_str());
Logger::getInstance().add(szBuf, true);
//file load
@ -613,7 +613,7 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree, const
const XmlNode *skillsNode= unitNode->getChild("skills");
skillTypes.resize(skillsNode->getChildCount());
snprintf(szBuf,8096,Lang::getInstance().get("LogScreenGameLoadingUnitTypeSkills","",true).c_str(),formatString(name).c_str(),skillTypes.size());
snprintf(szBuf,8096,Lang::getInstance().get("LogScreenGameLoadingUnitTypeSkills","",true).c_str(),formatString(this->getName(true)).c_str(),skillTypes.size());
Logger::getInstance().add(szBuf, true);
for(int i = 0; i < skillTypes.size(); ++i) {

View File

@ -585,7 +585,7 @@ void UpgradeType::load(const string &dir, const TechTree *techTree,
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
char szBuf[8096]="";
snprintf(szBuf,8096,Lang::getInstance().get("LogScreenGameLoadingUpgradeType","",true).c_str(),formatString(name).c_str());
snprintf(szBuf,8096,Lang::getInstance().get("LogScreenGameLoadingUpgradeType","",true).c_str(),formatString(this->getName(true)).c_str());
Logger::getInstance().add(szBuf, true);
string currentPath = dir;