djangosnippets.org: Latest snippets tagged with 'multilingual'http://djangosnippets.org/tags/multilingual/2012-01-07T16:36:32.827050-06:00Multilingual site based on domain - not accept header and django_session
2012-01-07T16:36:32.827050-06:00hermanschttp://djangosnippets.org/snippets/2640/<p>On our site <a href="http://www.fornebuklinikken.no">Fornebuklinikken - A cosmetic surgeon in Norway</a> we also have a domain <a href="http://www.fornebuklinikken.no">http://fornebuklinikken.com</a> which should be using the 'en' language.</p>
<p>We didn't wan't to use the standard locale lib, and wrote our own middleware which lookups the correct language corresponding to the domain (.no or .com)</p>
<p>Any …</p>
Freely redistributableMultilingual Models
2007-02-28T11:34:37.338125-06:00Archatashttp://djangosnippets.org/snippets/51/<p>A way to implement models with translatable content.</p>
<p>The translatable field of the default language has no extension, like "title" and the translations have extensions postfixes "_<two-letter language code>", like "title_la" or "title_mn". Method get_title() in this case returns the translation of the currently chosen language or the title of …</p>
Freely redistributable