Author: elias
Date: Mon Apr 27 14:07:46 2009
New Revision: 35255

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35255&view=rev
Log:
Made the python WML parser not choke on inline #textdomain commands.

Modified:
    trunk/data/tools/wesnoth/wmlparser.py

Modified: trunk/data/tools/wesnoth/wmlparser.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmlparser.py?rev=35255&r1=35254&r2=35255&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmlparser.py (original)
+++ trunk/data/tools/wesnoth/wmlparser.py Mon Apr 27 14:07:46 2009
@@ -544,8 +544,14 @@
             elif c == "\n":
                 break
             elif c == "#":
+                # FIXME
+                # Assume something like:
+                # name="picture.png="+
+                # #textdomain blah
+                # "translateable name"
+                #
+                # For now, we ignore the textdomain...
                 self.read_until("\n")
-                break
             elif c == "+":
                 value = value.rstrip() # remove whitespace before +
                 self.skip_whitespace_inside_statement() # read over newline


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

Reply via email to