Correctly translate weapon name in traits descriptions
This commit is contained in:
parent
9eae2bec19
commit
68262b841c
2 changed files with 4 additions and 4 deletions
|
@ -128,18 +128,18 @@ Units cannot be killed by poison alone. The poison will not reduce it below 1 HP
|
|||
case UNIT_ALIGNMENT: {
|
||||
const std::string& align = unit_type::alignment_description(u->second.type().alignment());
|
||||
const std::string& align_id = unit_type::alignment_id(u->second.type().alignment());
|
||||
return report(align,"",sgettext(string_table[align_id + "_description"].c_str()));
|
||||
return report(align, "", string_table[align_id + "_description"]);
|
||||
}
|
||||
case UNIT_ABILITIES: {
|
||||
report res;
|
||||
std::stringstream tooltip;
|
||||
const std::vector<std::string>& abilities = u->second.type().abilities();
|
||||
for(std::vector<std::string>::const_iterator i = abilities.begin(); i != abilities.end(); ++i) {
|
||||
str << sgettext(i->c_str());
|
||||
str << gettext(i->c_str());
|
||||
if(i+1 != abilities.end())
|
||||
str << ",";
|
||||
|
||||
tooltip << sgettext(string_table[*i + "_description"].c_str());
|
||||
tooltip << string_table[*i + "_description"];
|
||||
res.add_text(str,tooltip);
|
||||
}
|
||||
|
||||
|
|
|
@ -1013,7 +1013,7 @@ void unit::add_modification(const std::string& type,
|
|||
description << "; ";
|
||||
}
|
||||
|
||||
description << string_table[a->name()] << " " << desc;
|
||||
description << gettext(a->name().c_str()) << " " << desc;
|
||||
}
|
||||
}
|
||||
} else if(apply_to == "hitpoints") {
|
||||
|
|
Loading…
Add table
Reference in a new issue