Closed
Bug 441098
Opened 17 years ago
Closed 17 years ago
Need a netscaler friendly way of caching pages
Categories
(Webtools Graveyard :: Verbatim, defect)
Webtools Graveyard
Verbatim
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: clouserw, Assigned: dschafer)
Details
Attachments
(2 files, 2 obsolete files)
(deleted),
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
For all of our other localized+cached sites we are using the locale as the first parameter in the URL, e.g. www.mozilla.com/fr/...
However, /$locale/ already has meaning in Pootle - it displays all the project stats for that locale. Page display locale is currently a user preference (cookie based). We need a cacheable solution (in our case this means unique URLs).
I haven't researched how difficult it would be or any alternatives but my first instinct is to alter Pootle to make it behave like all our other sites. Happy to hear ideas.
Assignee | ||
Comment 1•17 years ago
|
||
This patch moves the locale information page from /$locale/ to /lang/$locale/, which opens up /$locale/ to be used for localization. Eventually, the following URL structure could now be used:
/ - Redirect to /$locale1/
/$locale1/ - Index page, localized for $locale1
/lang/$locale2/ - Redirect to /$locale1/lang/$locale2/
/$locale1/lang/$locale2/ - Language stats for $locale2, localized for $locale1
svn diff makes it look like more was changed in pootle.py than really was; most of that is a single extra indentation on a huge block.
Assignee | ||
Comment 2•17 years ago
|
||
Since Pootle uses /projects/ as its project index and /projects/$projname/ as the $projname home page, I figured since /languages/ was already the language index, /languages/$locale/ would be a better URL choice for the $locale home page.
This patch also includes an update to the languages and projects main pages, to make them match the new index.html look; languages.html needed to be modified to point to the new links anyway, so I figured might as well standardize the appearance at the same time.
Attachment #326516 -
Attachment is obsolete: true
Attachment #326552 -
Flags: review?(clouserw)
Attachment #326516 -
Flags: review?(clouserw)
Assignee | ||
Comment 3•17 years ago
|
||
This adds the locale to localize to as the first folder in the URL.
If a locale is specified in the URL, Pootle will use that locale; if none is specified, Pootle will redirect to the /en/ version of the requested entity. Eventually, we can do some locale detections and intelligently redirect to /$locale/.
This patch also moves the location of the documentation to match this new system; hence, the contents of Pootle/html/doc/en are now in Pootle/html/en/doc. For brevity, that move is not included in the .patch (since no content is changed).
Attachment #327648 -
Flags: review?(clouserw)
Assignee | ||
Comment 4•17 years ago
|
||
Update to allow the patch to actually be applied to the latest revision
Attachment #327648 -
Attachment is obsolete: true
Attachment #327746 -
Flags: review?(clouserw)
Attachment #327648 -
Flags: review?(clouserw)
Reporter | ||
Comment 5•17 years ago
|
||
Comment on attachment 326552 [details] [diff] [review]
Changes from /lang/ to /languages
reviewed before
Attachment #326552 -
Flags: review?(clouserw) → review+
Reporter | ||
Updated•17 years ago
|
Attachment #327746 -
Flags: review?(clouserw) → review+
Assignee | ||
Comment 6•17 years ago
|
||
Revision 7694 of Mozootle contains both patches. Leaving open until an issue with logins is resolved.
Assignee | ||
Comment 7•17 years ago
|
||
The login issue is in a separate bug now (bug 443295), so I'm marking this specific bug FIXED.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•