#2255: Language support in session lacking
------------------------+---------------------------------------------------
Reporter: aigarius | Owner: jon
Type: defect | Status: assigned
Priority: normal | Milestone: 2.0rc1
Component: TurboGears | Version: trunk
Severity: normal | Resolution:
Keywords: i18n |
------------------------+---------------------------------------------------
Changes (by kikidonk):
* version: 2.0b7 => trunk
Comment:
I quickly glanced at the patch, but there is still something i want to be
able to do, but can't currently.
I would like the language to be setup in the user cookie instead of a
server-side session. That means the setup_i18n() should also look for a
cookie to set the current request language.
This calls for a better extensibility of the setup_i18n stuff. It should
probably be a method of TGController so that it can be overridden in the
$project.lib.base.BaseController on a per-project basis to add cookie
support/session support and even routes support if need be.
As a workaround I had to monkey patch the setup_i18n function to add my
cookie handling code in there, while with subclassing i would have just
added the cookie check before or after the current code.
--
Ticket URL: <http://trac.turbogears.org/ticket/2255#comment:6>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---