ProFTPD module 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/

Directives


LangDefault

Syntax: LangDefault language
Default: LangDefault en
Context: "server config", <VirtualHost>, <Global>
Module: mod_lang
Compatibility: 1.3.1rc1

The LangDefault directive is used to specify the default language of specific server configuration.

Example:

  # Set the default to be Italian
  LangDefault it_IT


LangEngine

Syntax: LangEngine on|off
Default: LangEngine on
Context: "server config", <VirtualHost>, <Global>
Module: mod_lang
Compatibility: 1.3.1rc1

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.


LangPath

Syntax: LangPath >path
Default: None
Context: "server config"
Module: mod_lang
Compatibility: 1.3.1rc1

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


Installation

The mod_lang module is distributed with ProFTPD. To enable use of DSO modules, use the --enable-nls configure option:
  ./configure --enable-nls
  make
  make install
This option causes mod_lang to be compiled into proftpd.



Author: $Author: castaglia $
Last Updated: $Date: 2006/09/09 01:15:05 $


© Copyright 2006 TJ Saunders
All Rights Reserved