Code

Ticket #3907: trans_real.py.diff

File trans_real.py.diff, 581 bytes (added by nmariz@…, 7 years ago)

I think is that you want. Sorry, I'm new to svn.

Line 
1Index: trans_real.py
2===================================================================
3--- trans_real.py       (revision 4921)
4+++ trans_real.py       (working copy)
5@@ -336,6 +336,8 @@
6 
7         for lang, mainlang, order in langs:
8             if lang in supported or mainlang in supported:
9+                if not lang in supported and mainlang in supported:
10+                    lang = mainlang
11                 langfile = gettext_module.find('django', globalpath, [to_locale(lang)])
12                 if langfile:
13                     # reconstruct the actual language from the language