Author: elias
Date: Sat Nov 12 23:46:30 2011
New Revision: 51963

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51963&view=rev
Log:
[wmlunits] ignore addon units with no name

Modified:
    trunk/data/tools/wmlunits

Modified: trunk/data/tools/wmlunits
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlunits?rev=51963&r1=51962&r2=51963&view=diff
==============================================================================
--- trunk/data/tools/wmlunits (original)
+++ trunk/data/tools/wmlunits Sat Nov 12 23:46:30 2011
@@ -409,6 +409,9 @@
                     link = "../%s/%s.html" % (self.isocode, uid)
                     name = self.wesnoth.get_unit_value(un,
                         "name", translation=self.translation.translate)
+                    if not name:
+                        error_message("Warning: Unit uid=" + uid + " has no 
name.\n")
+                        name = uid
                     write("<a href=\"" + link + "\">" + name + "</a><br />")
 
             if got_menu: write("</div></li>\n")


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

Reply via email to