Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3968:5857cd1a0db9
add language to the "request" template var
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 19 Feb 2008 23:45:33 +0000 |
| parents | 63d58cc1394a |
| children | ff3a8b7d1819 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Thu Feb 07 05:01:42 2008 +0000 +++ b/roundup/cgi/templating.py Tue Feb 19 23:45:33 2008 +0000 @@ -2140,6 +2140,7 @@ - "env" the CGI environment variables - "base" the base URL for this instance - "user" a HTMLItem instance for this user + - "language" as determined by the browser or config - "classname" the current classname (possibly None) - "template" the current template (suffix, also possibly None) @@ -2166,6 +2167,7 @@ self.env = client.env self.base = client.base self.user = HTMLItem(client, 'user', client.userid) + self.language = client.language # store the current class name and action self.classname = client.classname
