[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src dialogs.cpp
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src dialogs.cpp |
Date: |
Sat, 23 Oct 2004 12:51:01 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <address@hidden> 04/10/23 16:45:26
Modified files:
src : dialogs.cpp
Log message:
Translate the unit preview pane.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/dialogs.cpp.diff?tr1=1.60&tr2=1.61&r1=text&r2=text
Patches:
Index: wesnoth/src/dialogs.cpp
diff -u wesnoth/src/dialogs.cpp:1.60 wesnoth/src/dialogs.cpp:1.61
--- wesnoth/src/dialogs.cpp:1.60 Fri Oct 22 12:34:42 2004
+++ wesnoth/src/dialogs.cpp Sat Oct 23 16:45:26 2004
@@ -1,4 +1,4 @@
-/* $Id: dialogs.cpp,v 1.60 2004/10/22 12:34:42 cedricd Exp $ */
+/* $Id: dialogs.cpp,v 1.61 2004/10/23 16:45:26 silene Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -651,12 +651,12 @@
details << u.type().language_name()
<< "\n" << _("level") << " "
<< u.type().level() << "\n"
- <<
string_table[unit_type::alignment_description(u.type().alignment())] << "\n"
+ <<
unit_type::alignment_description(u.type().alignment()) << "\n"
<< u.traits_description() << " \n";
const std::vector<std::string>& abilities = u.type().abilities();
for(std::vector<std::string>::const_iterator a = abilities.begin(); a
!= abilities.end(); ++a) {
- details << *a;
+ details << gettext(a->c_str());
if(a+1 != abilities.end()) {
details << ",";
}
@@ -696,12 +696,13 @@
at_it != attacks.end(); ++at_it) {
details << "\n"
- << at_it->name() << " (" << at_it->type() <<
")\n"
- << at_it->special() << "\n"
- << at_it->damage() << "-" <<
at_it->num_attacks() << " -- "
- << (at_it->range() == attack_type::SHORT_RANGE ?
- _("melee") :
- _("ranged"));
+ << gettext(at_it->name().c_str())
+ << " (" << gettext(at_it->type().c_str()) <<
")\n";
+ if (!at_it->special().empty())
+ details << gettext(at_it->special().c_str());
+ details << "\n"
+ << at_it->damage() << "-" <<
at_it->num_attacks() << " -- "
+ << (at_it->range() == attack_type::SHORT_RANGE
? _("melee") : _("ranged"));
if(at_it->hexes() > 1) {
details << " (" << at_it->hexes() << ")";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src dialogs.cpp,
Guillaume Melquiond <=