Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created May 12, 2011 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andymckay/967889 to your computer and use it in GitHub Desktop.
Save andymckay/967889 to your computer and use it in GitHub Desktop.
diff --git a/tower/__init__.py b/tower/__init__.py
index e02ff34..559d504 100644
--- a/tower/__init__.py
+++ b/tower/__init__.py
@@ -135,6 +135,7 @@ def _activate(locale):
pass
django_trans._translations[locale] = t
+ django_trans._translations[t.to_language()] = t
return t
@rtanglao
Copy link

LOL, it always comes down to 1 line of code, eh? #yakshaving !

@andymckay
Copy link
Author

Might just be :) If this fixes it, there should be a bigger change that we need to do to the way tower handles translations imho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment