mod_lang
Internalization and Localization
RFC2640, LANG, NLS (Native Language Support)
The mod_lang
module is ProFTPD's module for handling the LANG
command. This module is contained in the mod_lang.c
file for
ProFTPD 1.3.x, and is compiled in whenever the --enable-nls
configure option is used. Installation instructions are discussed
here.
The most current version of mod_lang
can be found in the
ProFTPD source distribution:
http://www.proftpd.org/
<VirtualHost>
, <Global>
The LangDefault
directive is used to specify the default
language of specific server configuration.
Example:
# Set the default to be Italian LangDefault it_IT
<VirtualHost>
, <Global>
The LangEngine
directive enables or disables the module's
handling of the LANG command. If it is set to off this module does no
localization of responses.
The LangPath
directive is used to configure an alternative
directory from which mod_lang
will load locale files. By
default, mod_lang
uses $prefix/locale/
,
where $prefix is where you installed proftpd
,
e.g. /usr/local/
.
The path parameter must be an absolute path.
Example:
LangPath /etc/proftpd/locale
Example:
LangPath /path/to/ftpd/locale
mod_lang
module is distributed with ProFTPD. To enable use
of DSO modules, use the --enable-nls
configure option:
./configure --enable-nls make make installThis option causes
mod_lang
to be compiled into
proftpd
.