Ticket #7163: trans_real_v7513v2.diff
File trans_real_v7513v2.diff, 711 bytes (added by , 16 years ago) |
---|
-
django/utils/translation/trans_real.py
161 161 162 162 res = _translation(globalpath) 163 163 164 def _base_lang(lang): 165 try: 166 return lang[:lang.index('-')] 167 except ValueError: 168 return lang 169 170 if _base_lang(lang) in [_base_lang(trans) for trans in _translations]: 171 from copy import deepcopy 172 res = deepcopy(res) 173 164 174 def _merge(path): 165 175 t = _translation(path) 166 176 if t is not None: