@z
@x
- <para>The instructions below explain how to add some environment variables
- necessary for native language support to the base
- <filename>/etc/profile</filename> created in the previous section. Setting
- these variables properly results in:</para>
+ <para>The <filename>/etc/locale.conf</filename> below sets some environment
+ variables necessary for native language support. Setting them properly
+ results in:</para>
@y
<para>
- ここに示す手順では、前節で生成したシステムベースの設定ファイル <filename>/etc/profile</filename> に対して、自言語サポートのための環境変数を設定します。
+ 以降に示すファイル <filename>/etc/locale.conf</filename> は自言語サポートのための環境変数を設定します。
適切に定めることにより以下の内容が定められます。
</para>
@z
@z
@x
- <para>Correct classification of characters into letters, digits and
- other classes. This is necessary for <command>bash</command> to
- properly accept non-ASCII characters in command lines in non-English
- locales</para>
+ <para>Correct classification of characters into letters, digits and other
+ classes. This is necessary for <command>bash</command> to properly accept
+ non-ASCII characters in command lines in non-English locales</para>
@y
<para>
キャラクターを英字、数字、その他のクラスに分類します。
<para>Replace <replaceable>[ll]</replaceable> below with the
two-letter code for the desired language (e.g., <quote>en</quote>) and
<replaceable>[CC]</replaceable> with the two-letter code for the
- appropriate country (e.g., <quote>GB</quote>).
+ appropriate country (e.g., <quote>GB</quote> or <quote>US</quote>).
<replaceable>[charmap]</replaceable> should be replaced with the
- canonical charmap for your chosen locale.</para>
+ canonical charmap for your chosen locale. Optional modifiers such as
+ <quote>@euro</quote> may also be present.</para>
@y
<para>
- 以下において <replaceable>[ll]</replaceable> と示しているものは、言語を表す2文字の英字 (例えば <quote>en</quote>) に、また <replaceable>[CC]</replaceable> は、国を表す2文字の英字 (例えば <quote>GB</quote>) にそれぞれ置き換えてください。
+ 以下において <replaceable>[ll]</replaceable> と示しているものは、言語を表す2文字の英字 (例えば <quote>en</quote>) に、また <replaceable>[CC]</replaceable> は、国を表す2文字の英字 (例えば <quote>GB</quote> や <quote>US</quote>) にそれぞれ置き換えてください。
<replaceable>[charmap]</replaceable> は、選択したロケールに対応したキャラクターマップ (charmap) に置き換えてください。
+ オプションの修飾子として<quote>@euro</quote>といった記述もあります。
</para>
@z
@x
<para>This results in a final locale setting of <quote>en_US.UTF-8</quote>.
- It is important that the locale found using the heuristic above is tested prior
- to it being added to the Bash startup files:</para>
+ It is important that the locale found using the heuristic above is tested
+ prior to it being added to <filename>/etc/locale.conf</filename>:</para>
@y
<para>
出力された結果が<quote>en_US.UTF-8</quote>に対するロケール設定として用いるべきものです。
こうして探し出したロケールは動作確認しておくことが重要です。
- Bash 起動時の設定ファイルに記述するのはその後です。
+ <filename>/etc/locale.conf</filename> に記述するのはその後です。
</para>
@z
@x
<para>Other packages can also function incorrectly (but may not necessarily
- display any error messages) if the locale name does not meet their expectations.
- In those cases, investigating how other Linux distributions support your locale
- might provide some useful information.</para>
+ display any error messages) if the locale name does not meet their
+ expectations. In those cases, investigating how other Linux distributions
+ support your locale might provide some useful information.</para>
@y
<para>
これ以外のパッケージでも、パッケージが求めるものとは異なるロケール設定がなされた場合に、適切に処理されないケースがあります。
@z
@x
- <para>Once the proper locale settings have been determined, add them to the
- <filename>/etc/profile</filename> file:</para>
+ <para>Once the proper locale settings have been determined, create the
+ <filename>/etc/locale.conf</filename> file:</para>
@y
<para>
- 適切なロケール設定が決まったら <filename>/etc/profile</filename> ファイルに加えます。
+ 適切なロケール設定が決まったら <filename>/etc/locale.conf</filename> ファイルを生成します。
</para>
@z
@x
+ <para>Note that you can modify <filename>/etc/locale.conf</filename> with
+ systemd's <command>localectl</command> utility. To use
+ <command>localectl</command> for the example above, run:</para>
+@y
+ <para>
+ <filename>/etc/locale.conf</filename> ファイルは systemd のユーティリティープログラム <command>localectl</command> を使って定めることもできます。
+ 例えば上と同じ設定を行うには以下を実行します。
+ </para>
+@z
+
+@x
+ <para>You can also specify other language specific environment variables such
+ as <envar>LANG</envar>, <envar>LC_CTYPE</envar>, <envar>LC_NUMERIC</envar> or
+ any other environment variable from <command>locale</command> output. Just
+ separate them with a space. An example where <envar>LANG</envar> is set as
+ en_US.UTF-8 but <envar>LC_CTYPE</envar> is set as just en_US is:</para>
+@y
+ <para>
+ 言語に関連する環境変数、例えば <envar>LANG</envar>, <envar>LC_CTYPE</envar>, <envar>LC_NUMERIC</envar> などや、<command>locale</command> が出力する環境変数を指定することもできます。
+ その場合は各設定をスペースにより区切ります。
+ 例として <envar>LANG</envar> を en_US.UTF-8 とし <envar>LC_CTYPE</envar> を単に en_US とする場合は以下のようにします。
+ </para>
+@z
+
+@x
+ <note><para>Please note that <command>localectl</command> command can
+ be used only on a system booted with systemd.</para></note>
+@y
+ <note><para>
+ <command>localectl</command> コマンドはあくまで systemd により起動されたシステムにおいて利用できる点に注意してください。
+ </para></note>
+@z
+@x
<para>Setting the keyboard layout, screen font, and locale-related
environment variables are the only internationalization steps needed to
support locales that use ordinary single-byte encodings and left-to-right