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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -