summaryrefslogtreecommitdiff
path: root/fml/doc/en/tutorial/message/language.sgml
blob: 7b98a9211eac4746f87134ae4beb4e6618924982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!--
   $FML: language.sgml,v 1.1 2003/07/29 12:13:55 fukachan Exp $
   $jaFML: language.sgml,v 1.5 2003/04/15 14:51:42 fukachan Exp $
-->


<sect1 id="message.nl">
	<title>
	Message internationalization: a
	the usage of reply_message_nl()
	</title>

<para>
For the message internationalization, 
use reply_message_nl()
	<footnote>
	<para>
	See FML::Process::Kernel module.
	</para>
	</footnote>
like this:
<screen>
$curproc->reply_message_nl('error.already_member',
			   'already member',
			   { _arg_address => $address });
</screen>
This function uses the message template at
/usr/local/share/fml/$fml_version/message/$language/error/already_member
.
</para>

<para>
$_arg_VARNAME in the message template such as
<screen>
$_args_address
</screen>
is expanded by using the value specified as the argument of
reply_mesage_nl().
</para>

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

</sect1>