added japanese translation of localization module.
[scilab.git] / scilab / modules / localization / help / ja_JP / gettext.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5  * Copyright (C) 2007 - INRIA - Allan CORNET
6  * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
7  *
8  * This file must be used under the terms of the CeCILL.
9  * This source file is licensed as described in the file COPYING, which
10  * you should have received as part of this distribution.  The terms
11  * are also available at
12  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
13  *
14  -->
15
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="gettext">
17     
18     <refnamediv>
19         
20         <refname>gettext</refname>
21         
22         <refpurpose>カレントのロケールおよびドメインに翻訳したテキストを取得.</refpurpose>
23         
24     </refnamediv>
25     
26     <refnamediv xml:id="_">
27         
28         <refname>_</refname>
29         
30         <refpurpose>
31             
32             <link linkend="gettext">gettext</link>に類似
33             
34         </refpurpose>
35         
36     </refnamediv>
37     
38     <refsynopsisdiv>
39         
40         <title>呼び出し手順</title>
41         
42         <synopsis>msg=gettext([myDomain,] myString)
43             
44             msg=_([myDomain,] myString)
45             
46         </synopsis>
47         
48     </refsynopsisdiv>
49     
50     <refsection>
51         
52         <title>引数</title>
53         
54         <variablelist>
55             
56             <varlistentry>
57                 
58                 <term>myDomain</term>
59                 
60                 <listitem>
61                     
62                     <para>文字列, メッセージドメインの名前</para>
63                     
64                 </listitem>
65                 
66             </varlistentry>
67             
68             <varlistentry>
69                 
70                 <term>myString</term>
71                 
72                 <listitem>
73                     
74                     <para>文字列, 翻訳する文字列</para>
75                     
76                 </listitem>
77                 
78             </varlistentry>
79             
80         </variablelist>
81         
82     </refsection>
83     
84     <refsection>
85         
86         <title>説明</title>
87         
88         <para>
89             
90             <literal>gettext(myString)</literal> は,文字列<literal>myString</literal>を
91             
92             カレントのロケールのカレントのドメインに翻訳したものを取得します.
93             
94         </para>
95         
96         <para>
97             
98             <literal>gettext(myDomain, myString)</literal> は,
99             
100             文字列<literal>myString</literal>を
101             
102             <literal>myDomain</literal>ドメインに翻訳したものを取得します.
103             
104         </para>
105         
106         <para>
107             
108             <code>_(myString)</code> は,<code>gettext(myString)</code>のエイリアスです.
109             
110         </para>
111         
112         <para>
113             
114             <code>_(myDomain, myString)</code> は,<code>gettext(myDomain, myString)</code>
115             
116             のエイリアスです.
117             
118         </para>
119         
120     </refsection>
121     
122     <refsection>
123         
124         <title>例</title>
125         
126         <programlisting role="example"><![CDATA[ 
127 setlanguage("fr_FR");
128 gettext("Startup execution:")
129 _("Startup execution:")
130 addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale")
131 gettext("tbx", "%s: something not in Scilab.\n")
132 _("tbx", "%s: something not in Scilab.\n")
133  ]]></programlisting>
134         
135     </refsection>
136     
137     <refsection role="see also">
138         
139         <title>参照</title>
140         
141         <simplelist type="inline">
142             
143             <member>
144                 
145                 <link linkend="addlocalizationdomain">addlocalizationdomain</link>
146                 
147             </member>
148             
149         </simplelist>
150         
151     </refsection>
152     
153     <refsection>
154         
155         <title>履歴</title>
156         
157         <revhistory>
158             
159             <revision>
160                 
161                 <revnumber>5.5.0</revnumber>
162                 
163                 <revdescription>ドメイン管理が追加されました.</revdescription>
164                 
165             </revision>
166             
167         </revhistory>
168         
169     </refsection>
170     
171 </refentry>
172