Page History
All the text generated by CVSTrac is American English. But dates can be displayed in the local language and format. To show dates in the local language, do this:
- Create bash script to run CVSTrac in required locale. Example : uk-cvstrac
#!/bin/bash LANG=uk_UA.KOI8-U /usr/local/bin/cvstrac $*
- Replace "cvstrac" in your scripts by name of your new script (uk-cvstrac, in my case).
You can set LANG environment variable in xinet.d configuration (see "man xinetd.conf" for details):
env LANG=uk_UA.KOI8-U
or in .htaccess (in case of CGI script):
<IfModule mod_env.c> SetEnv LANG uk_UA.KOI8-U </IfModule>
If you want to run a localized CVSTrac in chroot environment (such as described in ChrootJailForCvstrac), use the following command to find all files required by the cvstrac binary.
strace -o logfile -e trace=file cvstrac ...
Then "logfile" will list file operations that cvstrac tried, whether they succeeded or not.
See also CvsTracLocalization
Attachments:
- cvstrac-customrlog.patch 816 bytes added by anonymous on 2006-Jun-02 08:40:42 UTC.
The patch for customizing rlog command.
- cvstrac-highlightutf8.patch 574 bytes added by anonymous on 2006-Jun-02 08:42:04 UTC.
The patch to support UTF-8 at highlight() function.
- cvstrac-stringfunc.patch 2819 bytes added by anonymous on 2006-Jun-02 08:42:53 UTC.
The patch to support local encodings at length() and substr() functions.