[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src reports.cpp
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src reports.cpp |
Date: |
Sat, 23 Oct 2004 12:49:10 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <address@hidden> 04/10/23 16:43:42
Modified files:
src : reports.cpp
Log message:
Correctly translate weapon name in traits descriptions
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/reports.cpp.diff?tr1=1.49&tr2=1.50&r1=text&r2=text
Patches:
Index: wesnoth/src/reports.cpp
diff -u wesnoth/src/reports.cpp:1.49 wesnoth/src/reports.cpp:1.50
--- wesnoth/src/reports.cpp:1.49 Tue Oct 19 21:29:42 2004
+++ wesnoth/src/reports.cpp Sat Oct 23 16:43:41 2004
@@ -128,18 +128,18 @@
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);
}