Skip to content

Instantly share code, notes, and snippets.

@x746e
Created November 19, 2012 11:03
Show Gist options
  • Save x746e/4110129 to your computer and use it in GitHub Desktop.
Save x746e/4110129 to your computer and use it in GitHub Desktop.
Make web2py drop the habit of rewriting languages files
diff -r ff5196a8c552 gluon/languages.py
--- a/gluon/languages.py Wed Oct 24 14:14:55 2012 +0300
+++ b/gluon/languages.py Mon Nov 19 12:59:57 2012 +0200
@@ -283,6 +283,7 @@
def write_plural_dict(filename, contents):
+ return
if '__corrupted__' in contents:
return
try:
@@ -303,6 +304,7 @@
def write_dict(filename, contents):
+ return
if '__corrupted__' in contents:
return
try:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment