Skip to content

Commit 738bf73

Browse files
author
Alexander Smishlajev
committed
add @language and @charset to "Special form variables" section
1 parent 2f74a62 commit 738bf73

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

doc/customizing.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.185 $
5+
:Version: $Revision: 1.186 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -1247,13 +1247,32 @@ variables and their values. You can:
12471247
- Remove items from a multilink property of the current item.
12481248
- Specify that some properties are required for the edit
12491249
operation to be successful.
1250+
- Set up user interface locale.
12501251

12511252
These operations will only take place if the form action (the
12521253
``@action`` variable) is "edit" or "new".
12531254

12541255
In the following, <bracketed> values are variable, "@" may be
12551256
either ":" or "@", and other text "required" is fixed.
12561257

1258+
Two special form variables are used to specify user language preferences:
1259+
1260+
``@language``
1261+
value may be locale name or ``none``. If this variable is set to
1262+
locale name, web interface language is changed to given value
1263+
(provided that appropriate translation is available), the value
1264+
is stored in the browser cookie and will be used for all following
1265+
requests. If value is ``none`` the cookie is removed and the
1266+
language is changed to the tracker default, set up in the tracker
1267+
configuration or OS environment.
1268+
1269+
``@charset``
1270+
value may be character set name or ``none``. Character set name
1271+
is stored in the browser cookie and sets output encoding for all
1272+
HTML pages generated by Roundup. If value is ``none`` the cookie
1273+
is removed and HTML output is reset to Roundup internal encoding
1274+
(UTF-8).
1275+
12571276
Most properties are specified as form variables:
12581277

12591278
``<propname>``

0 commit comments

Comments
 (0)