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
:)
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 -
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(
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
>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
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,