Have you looked at django-multilingual?

http://code.google.com/p/django-multilingual/

I'm about to have a go at implementing this. It looks great for
multilingual content sites.

On Jul 14, 5:27 pm, Panos Laganakos <[EMAIL PROTECTED]> wrote:
> Using gettext_lazy, is the way to go, for marking models and fields
> fortranslation.
>
> Is there some general suggestion we're to follow, for translating
> values stored in the db?
>
> ie, let's say it's a model:
>
> class Furniture(models.Model):
>     name = models.CharField(_('name'), maxlength=25)
>
> If the app supports more than one language, how are we to get the
> translated versions of a value, ie:
>
> >>> furniture = Furniture.objects.get(id=1)
> >>> car.name
> >>> 'chair'
>
> should I define atranslationvariable so I'll be able to get the
> translated version from the template?
>
> Adding a new field just for name_another_lang, sounds like overkill,
> not extendable.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to