This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "dspam".
The branch, master has been updated
via 5f6e088cf5f4bd1316a32715c5e92ae6d3406173 (commit)
from bc6270124746689453e5398b29dd63e8c5b7bf6d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5f6e088cf5f4bd1316a32715c5e92ae6d3406173
Author: Stevan Bajic <st...@ba...>
Date: Sun Jul 19 21:31:07 2009 +0200
Adding multi-language support (automatically selected) to Web UI
NOTE: I know, I know. It's not perfect and it's not documented but I will do that later.
NOTE: The same code can be used for older DSPAM versions.
The code works like this:
* The HTTP_ACCEPT_LANGUAGE (transformed into lowercase) header is read and split into language and priority
* The language with the highest priority is used but only if the language is available in the template directory
* The check inside the template directory is first done by checking the whole language tag (aka: en, en-gb,en-us)
* If the first langauge check is not successful then the first part of the language is rechecked again (aka: en-us -> check for en, de-ch -> check for de)
* Should there be no HTTP_ACCEPT_LANGUAGE or should any of the languages in HTTP_ACCEPT_LANGUAGE not be available in the template directory then the default DSPAM language (English) is used
MFM: 1 day
Bug-ID: none
Bug-Reported-By: none
Security: none
-----------------------------------------------------------------------
Summary of changes:
CHANGELOG | 2 +
webui/cgi-bin/configure.pl.in | 42 ++++++++++++++++++++++++++++++++++++----
2 files changed, 39 insertions(+), 5 deletions(-)
hooks/post-receive
--
dspam
|