python - Django - how to permanently set I18N -


i'd set permanently language site in way example .de domain opens in deutch language. have 1 code markets each has own translations.

in other words i'd avoid situation when has os locale set on , can see site in english despite fact he/she connects .de domain.

is there way enforce translation specific language per installation?

django 1.5

thanks b.

i've used langbytldmiddleware in project, worked fine.

upd: might have misunderstood question. middleware useful if serve several domains same filebase, , want set default language basing on site tld. if handle .de domain , want force deutch set languages , language_code in settings.py:

language_code = 'de' languages = (     ('de', u'deutsch'), ) 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -