Ticket #7163: trans_real_v7513.diff

File trans_real_v7513.diff, 590 bytes (added by oggy, 7 years ago)
  • django/utils/translation/trans_real.py

     
    160160                return None
    161161
    162162        res = _translation(globalpath)
     163        base_lang = lambda x : x.partition('-')[0]
     164        if base_lang(lang) in [base_lang(trans) for trans in _translations]:
     165            from copy import deepcopy
     166            res = deepcopy(res)
    163167
    164168        def _merge(path):
    165169            t = _translation(path)
Back to Top