Message Internationalization: The Usage Of reply_message_nl()

For the message internationalization, use reply_message_nl() [1] like this:

$curproc->reply_message_nl('error.already_member',
			   'already member',
			   { _arg_address => $address });
This function uses the message template at /usr/local/share/fml/$fml_version/message/$language/error/already_member .

$_arg_VARNAME in the message template such as

$_args_address
is expanded by using the value specified as the argument of reply_mesage_nl().

Usual $VARIABLE is also expaned by replacing it with value of config name space. For example, $ml_name is expanded to ML name defined in config.cf. In fact $_arg_ prefix is used for lexical scope variables to avoid conflicts against variables in config.cf.

Notes

[1]

See FML::Process::Kernel module.

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.