Samizdat - Patches: patch #6171, lang in URL 0.2 [vs 080703-2] -...
You are not allowed to post comments on this tracker with your current authentication level.
patch #6171: lang in URL 0.2 [vs 080703-2] - allows the first preferred language to be set in the URL
Submitter: | Boud Roukema <boud> | ||
Submitted: | Sun 26 Aug 2007 11:14:46 PM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | Done | Privacy: | Public |
Assigned to: | None | Open/Closed: | Closed |
Thu 09 Apr 2009 11:54:27 AM UTC, comment #3: |
Dmitry Borodaenko <angdraug>![]() |
Fri 15 Aug 2008 11:12:30 PM UTC, comment #2: BUG/FEATURE: Version 0.2 against 080703-2 (maybe other cases too) has a side-effect: when previewing a message for publication, the request language temporarily becomes the language chosen for the message.
|
Boud Roukema <boud>![]() |
Tue 15 Jul 2008 02:00:20 AM UTC, comment #1: UPDATE for 080703-2. i'm not sure which makes more sense, for the lang in the URL to override the lang in the cookie or vice versa, though clearly, both should override the user's browser's accept-language settings. My feeling is that a URL is more visible to the user than a cookie, so the URL lang=pl or whatever should override the cookie lang.
|
Boud Roukema <boud>![]() |
Sun 26 Aug 2007 11:14:46 PM UTC, original submission:
PROBLEM:
|
Boud Roukema <boud>![]() |
Depends on the following items: None found
Items that depend on this one: None found
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-04-09 | angdraug | Status | Works For Me | ![]() |
Done |
Open/Closed | Open | ![]() |
Closed | ||
2008-07-16 | boud | Summary | lang in URL 0.2 - allows the first preferred language to be set in the URL | ![]() |
lang in URL 0.2 [vs 080703-2] - allows the first preferred language to be set in the URL |
2008-07-15 | boud | Attached File | - | ![]() |
Added 080715-lang-in-URL-0.2, #16121 |
Summary | lang in URL 0.1 - allows the first preferred language to be set in the URL | ![]() |
lang in URL 0.2 - allows the first preferred language to be set in the URL | ||
2007-08-26 | boud | Attached File | - | ![]() |
Added 070827-lang-in-URL-0.1, #13810 |
This feature is provided in snapshot 0.6.2.20090409-1 (Debian/experimental). Instead of a CGI parameter that could conflict with parameters of some controllers (e.g. the message preview problem mentioned by Boud), I've added language_prefix route rewriting plugin that allows to put language code as a prefix into the route part of the URL, e.g. http://samizdat-site/en/ or http://samizdat-site/en/blog/angdraug.
The prefix is valid for one page only, links from that page do not include it, so on folliwing any link the user will revert back to default behaviour.