Skip to content

Commit b92958f

Browse files
author
Alexander Smishlajev
committed
added description and example of mod_python interface option TrackerLanguage
1 parent 7614ca0 commit b92958f

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

doc/installation.txt

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,28 @@ Example for FreeBSD (``envvars`` is in ``/usr/local/sbin/``)::
414414
export LD_PRELOAD
415415

416416
Next, you have to add Roundup trackers configuration to apache config.
417+
Roundup apache interface uses two options specified with ``PythonOption``
418+
directives:
419+
420+
TrackerHome:
421+
defines the tracker home directory - the directory that was specified
422+
when you did ``roundup-admin init``. This option is required.
423+
424+
TrackerLaguage:
425+
defines web user interface language. mod_python applications do not
426+
receive OS environment variables in the same way as command-line
427+
programs, so the language cannot be selected by setting commonly
428+
used variables like ``LANG`` or ``LC_ALL``. ``TrackerLanguage``
429+
value has the same syntax as values of these environment variables.
430+
This option may be omitted.
431+
417432
In the following example we have two trackers set up in
418433
``/var/db/roundup/support`` and ``var/db/roundup/devel`` and accessed
419434
as ``https://my.host/roundup/support/`` and ``https://my.host/roundup/devel/``
420435
respectively. Having them share same parent directory allows us to
421-
reduce the number of configuration directives.
436+
reduce the number of configuration directives. Support tracker has
437+
russian user interface. The other tracker (devel) has english user
438+
interface (default).
422439

423440
Static files from ``html`` directory are served by apache itself - this
424441
is quickier and generally more robust than doing that from python.
@@ -451,11 +468,12 @@ Example mod_python configuration::
451468
#PythonDebug On
452469
</Directory>
453470
# roundup tracker homes
454-
<Directory /var/db/roundup/devel>
455-
PythonOption TrackerHome /var/db/roundup/devel
456-
</Directory>
457471
<Directory /var/db/roundup/support>
458472
PythonOption TrackerHome /var/db/roundup/support
473+
PythonOption TrackerLanguage ru
474+
</Directory>
475+
<Directory /var/db/roundup/devel>
476+
PythonOption TrackerHome /var/db/roundup/devel
459477
</Directory>
460478

461479

0 commit comments

Comments
 (0)