default values for faction names and techtrees should be "formatted" to avoid confusion in menus

This commit is contained in:
Titus Tscharntke 2013-11-03 21:38:39 +00:00
parent 9a3463330c
commit d3d8623a2d
1 changed files with 6 additions and 1 deletions

View File

@ -73,6 +73,10 @@ string TechTree::getName(bool translatedValue) {
if(foundTranslation == true) {
result = lang.getTechTreeString("TechTreeName",name.c_str());
}
else {
result = formatString(result);
}
//printf("Line: %d Tech [%s] result [%s]\n",__LINE__,name.c_str(),result.c_str());
return result;
@ -141,7 +145,8 @@ string TechTree::getTranslatedFactionName(string techName, string factionName) {
getTranslatedName(techName,false,true);
string result = lang.getTechTreeString("FactionName_" + factionName,factionName.c_str());
string result = lang.getTechTreeString("FactionName_" + factionName,formatString(factionName).c_str());
printf(">>result = %s\n",result.c_str());
translatedTechFactionNames[techName][factionName] = result;
//printf("Line: %d Translated faction for Tech [%s] faction [%s] result [%s]\n",__LINE__,techName.c_str(),factionName.c_str(),result.c_str());