Ticket #13575: nb_nn_fix.diff

File nb_nn_fix.diff, 689 bytes (added by oyvind, 14 years ago)

Temporary fix

  • django/utils/translation/trans_real.py

     
    360360
    361361        # 'normalized' is the root name of the locale in POSIX format (which is
    362362        # the format used for the directories holding the MO files).
    363         normalized = locale.locale_alias.get(to_locale(accept_lang, True))
     363        normalized = dict(locale.locale_alias, nb='nb', nn='nn').get(to_locale(accept_lang, True))
    364364        if not normalized:
    365365            continue
    366366        # Remove the default encoding from locale_alias.
Back to Top