Re: best practices for translating content

2006-01-11 Thread hugo
>Wouldn't it be a cleaner approach to seperate language dependent >content completely from the actual models. It's more "DRY" because you >only define the text fields on one place. Depends. My idea is to have a situation similar with gettext: you provide default content that can be translated. If

Re: best practices for translating content

2006-01-11 Thread Rudolph
Wouldn't it be a cleaner approach to seperate language dependent content completely from the actual models. It's more "DRY" because you only define the text fields on one place. You could even introduce a site-wide model for all language dependent content like this: class Content(meta.Model):

Re: best practices for translating content

2006-01-11 Thread hugo
>so 'thing' and 'language' will be unique_together. and to actually >do the translation, a form which will give side by side areas, one >displaying the values in 'Thing' and the other giving space to fill >in the values for 'TranslatedThing'. >TranslatedThing would only have those fields in Thing

Re: best practices for translating content

2006-01-10 Thread Kenneth Gonsalves
On Wednesday 11 Jan 2006 12:50 pm, hugo wrote: > class Thing(meta.Model): >    title = ... >    description = ... > > class TranslatedThing(meta.Model): >    thing = ForeignKey(Thing) >    language = CharField(... choices=settings.LANGUAGES) >    title = ... >    description = ... >    class META:

Re: best practices for translating content

2006-01-10 Thread hugo
>what are the best practices for translating content in the database, >and storing that? My current idea runs around just having tables that ForeignKey to the primary table with the primary table carrying the "default language" and the dependent table carrying other translatio

Re: best practices for translating content

2006-01-10 Thread Cheng Zhang
Cheng Zhang On Jan 10, 2006, at 3:00 PM, Kenneth Gonsalves wrote: hi what are the best practices for translating content in the database, and storing that? I feel that for postgres, a separate schema for each language may be good - that way, just something like django-admin.py install new language

Re: best practices for translating content

2006-01-10 Thread Cheng Zhang
Cheng Zhang On Jan 10, 2006, at 3:00 PM, Kenneth Gonsalves wrote: hi what are the best practices for translating content in the database, and storing that? I feel that for postgres, a separate schema for each language may be good - that way, just something like django-admin.py install new language

best practices for translating content

2006-01-09 Thread Kenneth Gonsalves
hi what are the best practices for translating content in the database, and storing that? I feel that for postgres, a separate schema for each language may be good - that way, just something like django-admin.py install new language would just duplicate the necessary tables in a separate