Using gettext_lazy, is the way to go, for marking models and fields
for translation.

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 a translation variable 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