Re: Multi-language support in Django

2005-11-25 Thread Nebojša Đorđević - nesh
On 24-11-2005, at 14:02, Krzysztof Drozd wrote: meybe so: if i18n_supprt is True then get_object_list shuld return content (from DB) in only on language, this in request.LANGUAGE ? else this = i18n_default_lang. Here is my example model and helper function to get right translation so you ca

Re: Multi-language support in Django

2005-11-24 Thread Krzysztof Drozd
:) meybe so: if i18n_supprt is True then get_object_list shuld return content (from DB) in only on language, this in request.LANGUAGE ? else this = i18n_default_lang. now i make my code so: http://groups.google.com/group/django-developers/browse_thread/thread/37c0346fb9ba1cf7 #-*- coding: utf-8 -

Re: Multi-language support in Django

2005-11-22 Thread wang bin
Thanks for reply, and hi Krzysztof Drozd I don't understand some code you writed, could you please explain it, thanks. And also my english is not good, if any offend please forgive me :) 2005/11/22, Krzysztof Drozd <[EMAIL PROTECTED]>: > class Publication(meta.Model): > title = meta.CharField(

Re: Multi-language support in Django

2005-11-22 Thread Krzysztof Drozd
i have some idee. my model: from django.core import meta from django.conf.settings import LANGUAGES class Publication(meta.Model): pub_name = meta.CharField(maxlength=16,verbose_name='publication name') class META: admin = meta.Admin() class Site(meta.Model): language = meta

Re: Multi-language support in Django

2005-11-22 Thread hugo
>Currently Django only supports selecting a language based on > the browser's Accept-Language setting. Most web > frameworks allows overriding this setting with a > cookie-based setting, so that you can easily switch the > language without changing the browser settings. Is anyone > working on th

Multi-language support in Django

2005-11-22 Thread wang bin
Currently Django only supports selecting a language based on the browser's Accept-Language setting. Most web frameworks allows overriding this setting with a cookie-based setting, so that you can easily switch the language without changing the browser settings. Is anyone working on this? If not,