|
2 | 2 | Customising Roundup |
3 | 3 | =================== |
4 | 4 |
|
5 | | -:Version: $Revision: 1.185 $ |
| 5 | +:Version: $Revision: 1.186 $ |
6 | 6 |
|
7 | 7 | .. This document borrows from the ZopeBook section on ZPT. The original is at: |
8 | 8 | http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx |
@@ -1247,13 +1247,32 @@ variables and their values. You can: |
1247 | 1247 | - Remove items from a multilink property of the current item. |
1248 | 1248 | - Specify that some properties are required for the edit |
1249 | 1249 | operation to be successful. |
| 1250 | +- Set up user interface locale. |
1250 | 1251 |
|
1251 | 1252 | These operations will only take place if the form action (the |
1252 | 1253 | ``@action`` variable) is "edit" or "new". |
1253 | 1254 |
|
1254 | 1255 | In the following, <bracketed> values are variable, "@" may be |
1255 | 1256 | either ":" or "@", and other text "required" is fixed. |
1256 | 1257 |
|
| 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 | + |
1257 | 1276 | Most properties are specified as form variables: |
1258 | 1277 |
|
1259 | 1278 | ``<propname>`` |
|
0 commit comments