Author: ai0867
Date: Wed Feb 4 12:08:20 2009
New Revision: 32596
URL: http://svn.gna.org/viewcvs/wesnoth?rev=32596&view=rev
Log:
Add a sanity check to pofix, fix a string pair triggering it.
Modified:
trunk/utils/pofix.py
Modified: trunk/utils/pofix.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/pofix.py?rev=32596&r1=32595&r2=32596&view=diff
==============================================================================
--- trunk/utils/pofix.py (original)
+++ trunk/utils/pofix.py Wed Feb 4 12:08:20 2009
@@ -132,7 +132,7 @@
("Shut up you little snot", "Shut up, you little snot"),
("I wasn't talking to you lich", "I wasn't talking to you, lich"),
("I am honored sir", "I am honored, sir"),
-("Rest assured, sir", "Rest assured, sir"),
+("Rest assured sir", "Rest assured, sir"),
("I propose is the creation", "I propose the creation"),
("Heck yeah", "Heck, yeah"),
("Thank you Tallin.", "Thank you, Tallin."),
@@ -164,7 +164,11 @@
after = before
for (domain, fixes) in stringfixes.items():
for (old, new) in fixes:
- if new in after and old in after and old is not new:
+ if old is new:
+ #complain loudly
+ print "pofix: old string\n\t\"%s\"\n equals new
string\n\t\"%s\"\nexiting." % (old, new)
+ sys.exit(1)
+ elif new in after and old in after:
print "pofix: %s has a msgid \n\t\"%s\"\nand a typoed
version \n\t\"%s\"\nthis needs handfixing for now." % (path, old, new)
else:
after = after.replace(old, new)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits