Hi,

Let's say I want to create yet another blog app, and I want to write
articles in multiple languages - English and Dutch, in this case.

Some articles will be English-only, some will be Dutch-only. Many articles
will be available in both languages.

People browsing in one language should see indexes, lists of articles,
categories, 'newest posts' things etc only for that language.

But it should be easy to connect the same article in both languages - if I'm
looking at an article and switch languages, and if it has a version
in the other language, the result should be to see that page.

I want to have the language code in the URL, because they're separate pages.
e.g. mysite.com/blog/en/2007/12/12/some-slug/ and
mysite.com/blog/nl/2007/12/12/een-of-andere-slug , or at some
other place in the URL (I'm totally undecided, from using the subdomain for
this to having it as the last part of the URL).

Somewhere in the back of my mind is that I might want to add a language
sometime in the future, but it's vague enough and uncertain enough that we
can ignore that possibility for now.

Comments are an issue. In principle I'd want comments to one article also
appear under the other, language doesn't matter. But I'm not sure.

Now, the question. I see two obvious way to model this. Say my blog has an
'Article' model.

Then:

- Either two different versions are separate Articles, the article has a
language code, and it has optional fields 'this_article_in_dutch' and
'this_article_in_english', that lead to the other version, if it exists.

or

- One article holds both versions; they share a creation date, and have
separate fields for 'context_dutch' and 'content_english', same for title
and slug.



I think it should be the first. But I was wondering what other approaches
others have taken, I can't be the first one with this sort of issue.

Greetings,
Remco Gerlich

--~--~---------~--~----~------------~-------~--~----~
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