On 5/30/06, Kristoffer <[EMAIL PROTECTED]> wrote: > 2. Each article come in two languages. Which would be the best way to > achieve that? > a. /articles/topic/subtopic/article/en > b. /articles/en/topic/subtopic/article > c. /articles/topic/subtopic/article?en
I would prefer a fourth option : d. /articles/topic/subtopic/article/display?lang=en but it highly depends on what you consider the language to be. I consider it as a view parameter : the reader wants to read the article, that why he first type in the path to the article, then the action (display), then the language, as a parameter. This allows the following: * specifying a default action (maybe display is the default action for an article ("/articles/topic/subtopic/article/?lang=en" would display the article in english); * specifying a default language, or guessing the language based on the reader's browser's language, or user preferences, or session variable, and so on ("/article/topic/subtopic/article/" would display the article in english too, or maybe in italian if the reader is italian, or maybe ...) Anyway, as I said earlier, this is highly up to you and how you consider the language to be :) Regards, -- Brice Carpentier aka Br|ce --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---