Removed the name of a trait in the tooltip.

It didn't work before due to male and female names being used instead
of name. Description has no gender versions so it was prefixed with a
colon.
This commit is contained in:
Mark de Wever 2007-05-28 10:55:05 +00:00
parent 4efcf5f5ad
commit dabf4d7873

View file

@ -2550,10 +2550,9 @@ void unit::add_modification(const std::string& type, const config& mod,
// Punctuation should be translatable: not all languages use latin punctuation.
// (however, there maybe is a better way to do it)
description += mod["name"];
if (!mod["description"].empty())
description += t_string(N_(": "), "wesnoth") + mod["description"];
description += " ";
if (!mod["description"].empty()) {
description += mod["description"] + " ";
}
if(effects_description.empty() == false) {
description += t_string(N_("("), "wesnoth");