[HOME] [github] [twitter] [blog] [fml4] [fml8] [北海道] Powered by NetBSD and [nuinui.net] .

Message Internationalization: The Usage Of reply_message_nl()

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

			   '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

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.



See FML::Process::Kernel module.

[HOME] [github] [twitter] [blog] [fml4] [fml8] [北海道] Powered by NetBSD and [nuinui.net] .
Copyright (C) 1993-2022 Ken'ichi Fukamachi mail:< fukachan at fml.org >