Author: elias
Date: Thu Apr 10 17:53:57 2008
New Revision: 25733

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25733&view=rev
Log:
wmlunits: Display proper translated names for weapon specials.

Modified:
    trunk/data/tools/wmlunits

Modified: trunk/data/tools/wmlunits
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlunits?rev=25733&r1=25732&r2=25733&view=diff
==============================================================================
--- trunk/data/tools/wmlunits (original)
+++ trunk/data/tools/wmlunits Thu Apr 10 17:53:57 2008
@@ -723,7 +723,13 @@
             specials = attack.get_first("specials")
             if specials:
                 for special in specials.children():
-                    s.append(special.name)
+                    sname = special.get_text_val("name")
+                    if sname:
+                        s.append(sname)
+                    else:
+                        sys.stderr.write(
+                            "Warning: Weapon special %s has no name for %s.\n" 
% (
+                            special.name, uid))
             s = "<br/>".join(s)
             write("<td>%s</td>" % s)
             


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to