Author: ai0867
Date: Wed Feb  4 11:21:58 2009
New Revision: 32593

URL: http://svn.gna.org/viewcvs/wesnoth?rev=32593&view=rev
Log:
Build in safeguard for pofix to prevent duplicate msgids.

Modified:
    trunk/utils/pofix.py

Modified: trunk/utils/pofix.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/pofix.py?rev=32593&r1=32592&r2=32593&view=diff
==============================================================================
--- trunk/utils/pofix.py (original)
+++ trunk/utils/pofix.py Wed Feb  4 11:21:58 2009
@@ -164,7 +164,10 @@
             after = before
             for (domain, fixes) in stringfixes.items():
                 for (old, new) in fixes:
-                    after = after.replace(old, new)
+                    if new in after and old in after and old is not new:
+                        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)
             if after != before:
                 print "pofix: %s modified" % path
                 modified += 1


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

Reply via email to