Author: esr
Date: Fri Sep 12 20:15:57 2008
New Revision: 29419

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29419&view=rev
Log:
Fix minor bugs reported by AI0867.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=29419&r1=29418&r2=29419&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Fri Sep 12 20:15:57 2008
@@ -52,8 +52,9 @@
 # or they'll have an incorrect usage=map generated into them.
 #
 # Note: You can shut wmllint up about custom terrains by having a comment
-# on the same line that includes the string "wmllint: ignore".
-# The same magic comment will also disable checking of translation marks.
+# on the same line that includes the string "wmllint: ignore" or
+# "wmllint: noconvert". The same magic comments will also disable checking
+# of translation marks.
 #
 # You can also prevent description insertions with "wmllint: no-icon".
 #
@@ -535,7 +536,7 @@
                 pass
             elif key == 'letter':      # May be led with _s for void 
                 pass
-            elif key == 'name':                # FIXME: check this someday
+            elif key in ('name', 'male_name', 'female_name'):          # 
FIXME: check this someday
                 pass
             elif key in ("message", "name", "description", "story", "note", 
"text", "summary", "caption", "label", "cannot_use_message", "set_description", 
"user_team_name") and not value.startswith("$"):
                 if not has_tr_mark:
@@ -557,7 +558,7 @@
                     elif preamble_seen and not ignore_id and not in_object and 
not value in present:
                         print '"%s", line %d: unknown \'%s\' referred to by 
id' \
                               % (filename, i+1, value)
-                if has_tr_mark and not "wmllint: ignore" in lines[i]:
+                if has_tr_mark and not ("wmllint: ignore" in comment or 
"wmllint: noconvert" in comment):
                     print '"%s", line %d: %s should not have a translation 
mark' \
                               % (filename, i+1, key)                
                     lines[i] = lines[i].replace("_", "", 1)


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

Reply via email to