define the location of the language files

This commit is contained in:
lars 2005-06-11 00:35:56 +00:00
parent 1b62030366
commit ab7b6a4d5a
2 changed files with 12 additions and 2 deletions

View file

@ -48,7 +48,13 @@ OVERVIEW:
supply to a minimum and also make reasonable guesses about default
values.
Finally, copy the ezmlmwebrc file and the "lang" directory to one of
The directory containing ezmlm-web's language files should be something
like '/usr/local/share/ezmlm-web/lang':
mkdir -p /usr/local/share/ezmlm-web
cp -r lang /usr/local/share/ezmlm-web
You can change this default location in the ezmlmwebrc file.
Finally, copy the ezmlmwebrc file to one of
the following places:
- /etc/ezmlm
- the home directory of the user that runs ezmlm-web.cgi

View file

@ -16,6 +16,10 @@ $LIST_DIR = "$HOME_DIR/lists";
# defaults to "$LIST_DIR/webusers"
$WEBUSERS_FILE = "$LIST_DIR/webusers";
# Where are the language files
# usually something like /usr/local/share/ezmlm-web/lang
$LANGUAGE_DIR = "/usr/local/share/ezmlm-web/lang";
# Safe list deletion?
# 0 = move list to .list and the .qmails to deleted.qmail/. Recoverable :)
# 1 = allow user to delete list completely. No backup, therefore no recovery.
@ -75,5 +79,5 @@ $HTML_LANGUAGE = 'en';
# ---------------------------------------------------------------------------
# include language-specific definitions
require('./lang/' . $HTML_LANGUAGE . '.pm');
require($LANGUAGE_DIR . '/' . $HTML_LANGUAGE . '.pm');