added japanese translation of localization module. 35/14535/2
Rui Hirokawa [Sun, 18 May 2014 06:27:11 +0000 (15:27 +0900)]
Change-Id: I90638655c0671f5e1310c503f9bd01ce871bbc00

scilab/modules/localization/help/ja_JP/addlocalizationdomain.xml [new file with mode: 0644]
scilab/modules/localization/help/ja_JP/dgettext.xml [new file with mode: 0644]
scilab/modules/localization/help/ja_JP/getdefaultlanguage.xml [new file with mode: 0644]
scilab/modules/localization/help/ja_JP/getlanguage.xml [new file with mode: 0644]
scilab/modules/localization/help/ja_JP/gettext.xml [new file with mode: 0644]
scilab/modules/localization/help/ja_JP/setdefaultlanguage.xml [new file with mode: 0644]
scilab/modules/localization/help/ja_JP/setlanguage.xml [new file with mode: 0644]

diff --git a/scilab/modules/localization/help/ja_JP/addlocalizationdomain.xml b/scilab/modules/localization/help/ja_JP/addlocalizationdomain.xml
new file mode 100644 (file)
index 0000000..4e0a5a7
--- /dev/null
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<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="addlocalizationdomain">
+    
+    <refnamediv>
+        
+        <refname>addlocalizationdomain</refname>
+        
+        <refpurpose>ローカライゼーション機構に新規ドメインを追加.</refpurpose>
+        
+    </refnamediv>
+    
+    <refsynopsisdiv>
+        
+        <title>呼び出し手順</title>
+        
+        <synopsis>msg=addlocalizationdomain(domain, path)</synopsis>
+        
+    </refsynopsisdiv>
+    
+    <refsection>
+        
+        <title>引数</title>
+        
+        <variablelist>
+            
+            <varlistentry>
+                
+                <term>domain</term>
+                
+                <listitem>
+                    
+                    <para>文字列, メッセージドメインの名前</para>
+                    
+                </listitem>
+                
+            </varlistentry>
+            
+            <varlistentry>
+                
+                <term>path</term>
+                
+                <listitem>
+                    
+                    <para>ドメインファイルのパス</para>
+                    
+                </listitem>
+                
+            </varlistentry>
+            
+        </variablelist>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>例</title>
+        
+        <programlisting role="example"><![CDATA[
+setlanguage("fr_FR");
+gettext("Startup execution:")
+_("Startup execution:")
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale")
+gettext("tbx", "%s: something not in Scilab.\n")
+_("tbx", "%s: something not in Scilab.\n")
+ ]]></programlisting>
+        
+    </refsection>
+    
+    <refsection role="see also">
+        
+        <title>参照</title>
+        
+        <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="gettext">gettext</link>
+                
+            </member>
+            
+        </simplelist>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>履歴</title>
+        
+        <revhistory>
+            
+            <revision>
+                
+                <revnumber>5.5.0</revnumber>
+                
+                <revdescription>
+                    
+                    addlocalizationdomain 関数が追加されました.
+                    
+                </revdescription>
+                
+            </revision>
+            
+        </revhistory>
+        
+    </refsection>
+    
+</refentry>
+
diff --git a/scilab/modules/localization/help/ja_JP/dgettext.xml b/scilab/modules/localization/help/ja_JP/dgettext.xml
new file mode 100644 (file)
index 0000000..8946307
--- /dev/null
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<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="dgettext">
+    
+    <refnamediv>
+        
+        <refname>dgettext</refname>
+        
+        <refpurpose>
+            
+            カレントのロケールおよび指定したドメインに翻訳されたテキストを取得
+            
+        </refpurpose>
+        
+    </refnamediv>
+    
+    <refsynopsisdiv>
+        
+        <title>呼び出し手順</title>
+        
+        <synopsis>msg=dgettext(domain, myString)</synopsis>
+        
+    </refsynopsisdiv>
+    
+    <refsection>
+        
+        <title>引数</title>
+        
+        <variablelist>
+            
+            <varlistentry>
+                
+                <term>domain</term>
+                
+                <listitem>
+                    
+                    <para>文字列, メッセージドメインの名前</para>
+                    
+                </listitem>
+                
+            </varlistentry>
+            
+            <varlistentry>
+                
+                <term>myString</term>
+                
+                <listitem>
+                    
+                    <para>文字列, 翻訳するメッセージ</para>
+                    
+                </listitem>
+                
+            </varlistentry>
+            
+        </variablelist>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>説明</title>
+        
+        <para>
+            
+            <literal>dgettext</literal> は文字列 <literal>myString</literal>を
+            
+            指定したメッセージドメイン<literal>domain</literal>の
+            
+            カレントのロケールへの翻訳したものを取得します.
+            
+        </para>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>例</title>
+        
+        <programlisting role="example"><![CDATA[ 
+dgettext('scilab','Startup execution:')
+ ]]></programlisting>
+        
+    </refsection>
+    
+    <refsection role="see also">
+        
+        <title>参照</title>
+        
+        <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="gettext">gettext</link>
+                
+            </member>
+            
+            <member>
+                
+                <link linkend="_">_</link>
+                
+            </member>
+            
+        </simplelist>
+        
+    </refsection>
+    
+</refentry>
+
diff --git a/scilab/modules/localization/help/ja_JP/getdefaultlanguage.xml b/scilab/modules/localization/help/ja_JP/getdefaultlanguage.xml
new file mode 100644 (file)
index 0000000..670fbb0
--- /dev/null
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<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="getdefaultlanguage">
+    
+    <refnamediv>
+        
+        <refname>getdefaultlanguage</refname>
+        
+        <refpurpose>Scilabで使用されるデフォルト言語を返す</refpurpose>
+        
+    </refnamediv>
+    
+    <refsynopsisdiv>
+        
+        <title>呼び出し手順</title>
+        
+        <synopsis>getdefaultlanguage()</synopsis>
+        
+    </refsynopsisdiv>
+    
+    <refsection>
+        
+        <title>説明</title>
+        
+        <para>
+            
+            <literal>getdefaultlanguage()</literal> は,Scilabで使用される
+            
+            デフォルトの言語を返します.
+            
+            デフォルトで,この関数は<literal>en_US</literal>を返します.
+            
+        </para>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>例</title>
+        
+        <programlisting role="example"><![CDATA[ 
+getdefaultlanguage()
+ ]]></programlisting>
+        
+    </refsection>
+    
+    <refsection role="see also">
+        
+        <title>参照</title>
+        
+        <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="setlanguage">setlanguage</link>
+                
+            </member>
+            
+            <member>
+                
+                <link linkend="getlanguage">getlanguage</link>
+                
+            </member>
+            
+        </simplelist>
+        
+    </refsection>
+    
+</refentry>
+
diff --git a/scilab/modules/localization/help/ja_JP/getlanguage.xml b/scilab/modules/localization/help/ja_JP/getlanguage.xml
new file mode 100644 (file)
index 0000000..9b0ced5
--- /dev/null
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<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="getlanguage">
+    
+    <refnamediv>
+        
+        <refname>getlanguage</refname>
+        
+        <refpurpose>Scilabで使用されるカレントの言語を返す.</refpurpose>
+        
+    </refnamediv>
+    
+    <refsynopsisdiv>
+        
+        <title>呼び出し手順</title>
+        
+        <synopsis>getlanguage()</synopsis>
+        
+    </refsynopsisdiv>
+    
+    <refsection>
+        
+        <title>説明</title>
+        
+        <para>
+            
+            <literal>getlanguage()</literal> は,Scilabで使用されるカレントの言語を
+            
+            返します.
+            
+        </para>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>例</title>
+        
+        <programlisting role="example"><![CDATA[ 
+setlanguage('en_US')
+getlanguage()
+ ]]></programlisting>
+        
+    </refsection>
+    
+    <refsection role="see also">
+        
+        <title>参照</title>
+        
+        <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="setlanguage">setlanguage</link>
+                
+            </member>
+            
+        </simplelist>
+        
+    </refsection>
+    
+</refentry>
+
diff --git a/scilab/modules/localization/help/ja_JP/gettext.xml b/scilab/modules/localization/help/ja_JP/gettext.xml
new file mode 100644 (file)
index 0000000..359f7e2
--- /dev/null
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<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">
+    
+    <refnamediv>
+        
+        <refname>gettext</refname>
+        
+        <refpurpose>カレントのロケールおよびドメインに翻訳したテキストを取得.</refpurpose>
+        
+    </refnamediv>
+    
+    <refnamediv xml:id="_">
+        
+        <refname>_</refname>
+        
+        <refpurpose>
+            
+            <link linkend="gettext">gettext</link>に類似
+            
+        </refpurpose>
+        
+    </refnamediv>
+    
+    <refsynopsisdiv>
+        
+        <title>呼び出し手順</title>
+        
+        <synopsis>msg=gettext([myDomain,] myString)
+            
+            msg=_([myDomain,] myString)
+            
+        </synopsis>
+        
+    </refsynopsisdiv>
+    
+    <refsection>
+        
+        <title>引数</title>
+        
+        <variablelist>
+            
+            <varlistentry>
+                
+                <term>myDomain</term>
+                
+                <listitem>
+                    
+                    <para>文字列, メッセージドメインの名前</para>
+                    
+                </listitem>
+                
+            </varlistentry>
+            
+            <varlistentry>
+                
+                <term>myString</term>
+                
+                <listitem>
+                    
+                    <para>文字列, 翻訳する文字列</para>
+                    
+                </listitem>
+                
+            </varlistentry>
+            
+        </variablelist>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>説明</title>
+        
+        <para>
+            
+            <literal>gettext(myString)</literal> は,文字列<literal>myString</literal>を
+            
+            カレントのロケールのカレントのドメインに翻訳したものを取得します.
+            
+        </para>
+        
+        <para>
+            
+            <literal>gettext(myDomain, myString)</literal> は,
+            
+            文字列<literal>myString</literal>を
+            
+            <literal>myDomain</literal>ドメインに翻訳したものを取得します.
+            
+        </para>
+        
+        <para>
+            
+            <code>_(myString)</code> は,<code>gettext(myString)</code>のエイリアスです.
+            
+        </para>
+        
+        <para>
+            
+            <code>_(myDomain, myString)</code> は,<code>gettext(myDomain, myString)</code>
+            
+            のエイリアスです.
+            
+        </para>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>例</title>
+        
+        <programlisting role="example"><![CDATA[ 
+setlanguage("fr_FR");
+gettext("Startup execution:")
+_("Startup execution:")
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale")
+gettext("tbx", "%s: something not in Scilab.\n")
+_("tbx", "%s: something not in Scilab.\n")
+ ]]></programlisting>
+        
+    </refsection>
+    
+    <refsection role="see also">
+        
+        <title>参照</title>
+        
+        <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="addlocalizationdomain">addlocalizationdomain</link>
+                
+            </member>
+            
+        </simplelist>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>履歴</title>
+        
+        <revhistory>
+            
+            <revision>
+                
+                <revnumber>5.5.0</revnumber>
+                
+                <revdescription>ドメイン管理が追加されました.</revdescription>
+                
+            </revision>
+            
+        </revhistory>
+        
+    </refsection>
+    
+</refentry>
+
diff --git a/scilab/modules/localization/help/ja_JP/setdefaultlanguage.xml b/scilab/modules/localization/help/ja_JP/setdefaultlanguage.xml
new file mode 100644 (file)
index 0000000..831b479
--- /dev/null
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="setdefaultlanguage" xml:lang="ja">
+    
+    <refnamediv>
+        
+        <refname>setdefaultlanguage</refname>
+        
+        <refpurpose>内部変数 LANGUAGE の値を設定, 保存.</refpurpose>
+        
+    </refnamediv>
+    
+    <refsynopsisdiv>
+        
+        <title>呼び出し手順</title>
+        
+        <synopsis>setdefaultlanguage(language)</synopsis>
+        
+    </refsynopsisdiv>
+    
+    <refsection>
+        
+        <title>引数</title>
+        
+        <variablelist>
+            
+            <varlistentry>
+                
+                <term>language</term>
+                
+                <listitem>
+                    
+                    <para>文字列, 以下の値のどれかとします: 'fr', 'en', 'ru_RU', 'zh_TW', ...</para>
+                    
+                </listitem>
+                
+            </varlistentry>
+            
+        </variablelist>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>説明</title>
+        
+        <para>
+            
+            <literal>setdefaultlanguage(language)</literal> は,
+            
+            カレントの言語を変更し, この値を Scilabに保存します.
+            
+        </para>
+        
+        <para>メニューを使用する場合, Scilabを再起動する必要があります.</para>
+        
+        <para>
+            
+            <literal>setdefaultlanguage('')</literal> は,
+            
+            言語をシステム値にリセットします.
+            
+        </para>
+        
+        <para>
+            
+            <literal>setdefaultlanguage</literal> は Windowsのみで使用されます.
+            
+            他のオペレーティングシステムでは,常に
+            
+            <literal>%f</literal>を返します. 
+            
+        </para>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>例</title>
+        
+        <programlisting role="example"><![CDATA[ 
+setdefaultlanguage('en_US')
+
+// Scilabを再起動
+getlanguage()
+setdefaultlanguage('fr_FR')
+
+// Scilabを再起動
+getlanguage()
+setdefaultlanguage('')
+
+// scilabを再起動
+ ]]></programlisting>
+        
+    </refsection>
+    
+    <refsection role="see also">
+        
+        <title>参照</title>
+        
+        <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="getlanguage">getlanguage</link>
+                
+            </member>
+            
+            <member>
+                
+                <link linkend="setlanguage">setlanguage</link>
+                
+            </member>
+            
+        </simplelist>
+        
+    </refsection>
+    
+</refentry>
+
diff --git a/scilab/modules/localization/help/ja_JP/setlanguage.xml b/scilab/modules/localization/help/ja_JP/setlanguage.xml
new file mode 100644 (file)
index 0000000..e166077
--- /dev/null
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<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="setlanguage">
+    
+    <refnamediv>
+        
+        <refname>setlanguage</refname>
+        
+        <refpurpose>
+            
+            内部変数 LANGUAGE の値を設定(Windows専用)
+            
+        </refpurpose>
+        
+    </refnamediv>
+    
+    <refsynopsisdiv>
+        
+        <title>呼び出し手順</title>
+        
+        <synopsis>setlanguage(language)</synopsis>
+        
+    </refsynopsisdiv>
+    
+    <refsection>
+        
+        <title>引数</title>
+        
+        <variablelist>
+            
+            <varlistentry>
+                
+                <term>language</term>
+                
+                <listitem>
+                    
+                    <para>language='fr' または  'en', ... と指定</para>
+                    
+                </listitem>
+                
+            </varlistentry>
+            
+        </variablelist>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>説明</title>
+        
+        <para>
+            
+            <literal>setlanguage(language)</literal> は, Scilabの
+            
+            カレントの言語を変更します.
+            
+        </para>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>例</title>
+        
+        <programlisting role="example"><![CDATA[ 
+setlanguage('en_US')
+getlanguage()
+setlanguage('en')
+getlanguage()
+setlanguage('fr')
+getlanguage()
+setlanguage('fr_FR')
+getlanguage()
+ ]]></programlisting>
+        
+    </refsection>
+    
+    <refsection role="see also">
+        
+        <title>参照</title>
+        
+        <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="getlanguage">getlanguage</link>
+                
+            </member>
+            
+            <member>
+                
+                <link linkend="setdefaultlanguage">setdefaultlanguage</link>
+                
+            </member>
+            
+        </simplelist>
+        
+    </refsection>
+    
+</refentry>
+