Author: esr
Date: Mon Jun 9 18:48:55 2008
New Revision: 27067
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27067&view=rev
Log:
Tweak the sanity checker so it can handle a special case in UtBS.
Modified:
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/08_Out_of_the_Frying_Pan.cfg
trunk/data/tools/wmllint
Modified:
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/08_Out_of_the_Frying_Pan.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Under_the_Burning_Suns/scenarios/08_Out_of_the_Frying_Pan.cfg?rev=27067&r1=27066&r2=27067&view=diff
==============================================================================
---
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/08_Out_of_the_Frying_Pan.cfg
(original)
+++
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/08_Out_of_the_Frying_Pan.cfg
Mon Jun 9 18:48:55 2008
@@ -619,7 +619,7 @@
[set_variable]
name=intl_ally_name
- value= _ "Grog"
+ value= _ "Grog" # wmllint: ignore
[/set_variable]
[/then]
[/if]
@@ -642,7 +642,7 @@
[set_variable]
name=intl_ally_name
- value= _ "Nog"
+ value= _ "Nog" # wmllint: ignore
[/set_variable]
[/then]
[/if]
@@ -665,7 +665,7 @@
[set_variable]
name=intl_ally_name
- value= _ "Rogrimir"
+ value= _ "Rogrimir" # wmllint: ignore
[/set_variable]
[/then]
[/if]
@@ -688,7 +688,7 @@
[set_variable]
name=intl_ally_name
- value= _ "Jarl"
+ value= _ "Jarl" # wmllint: ignore
[/set_variable]
[/then]
[/if]
Modified: trunk/data/tools/wmllint
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=27067&r1=27066&r2=27067&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Mon Jun 9 18:48:55 2008
@@ -43,6 +43,7 @@
#
# 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.
#
# You can also prevent description insertions with "wmllint: no-icon".
#
@@ -929,7 +930,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:
+ if has_tr_mark and not "wmllint: ignore" in line:
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