wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src playturn.cpp


From: Cedric Duval
Subject: [Wesnoth-cvs-commits] wesnoth/src playturn.cpp
Date: Wed, 10 Nov 2004 14:26:36 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Cedric Duval <address@hidden>   04/11/10 19:20:21

Modified files:
        src            : playturn.cpp 

Log message:
        Fixed untranslatable strings.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playturn.cpp.diff?tr1=1.284&tr2=1.285&r1=text&r2=text

Patches:
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.284 wesnoth/src/playturn.cpp:1.285
--- wesnoth/src/playturn.cpp:1.284      Mon Nov  1 19:43:06 2004
+++ wesnoth/src/playturn.cpp    Wed Nov 10 19:20:21 2004
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.284 2004/11/01 19:43:06 gruikya Exp $ */
+/* $Id: playturn.cpp,v 1.285 2004/11/10 19:20:21 cedricd Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -591,9 +591,9 @@
                        const battle_stats& st = stats.back();
 
                        const std::string& attack_name = st.attack_name;
-                       const std::string& attack_special = st.attack_special;
+                       const std::string& attack_special = 
st.attack_special.empty() ? "" : gettext(st.attack_special.c_str());
                        const std::string& defend_name = st.defend_name;
-                       const std::string& defend_special = st.defend_special;
+                       const std::string& defend_special = 
st.defend_special.empty() ? "" : gettext(st.defend_special.c_str());
 
                        const std::string& range = gettext(st.range == "Melee" 
? N_("melee") : N_("ranged"));
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]