\fB#include <locale.h>\fP
.fi
.SH 説明
-ã\83ã\82±ã\83¼ã\83« (locale) ã\81¯è¨\80èª\9eã\82\84æ\96\87å\8c\96ã\83«ã\83¼ã\83«ã\81®é\9b\86å\90\88ã\81§ã\81\82ã\82\8bã\80\82 ã\81\93ã\82\8cã\82\89ã\81¯ã\80\81ã\83¡ã\83\83ã\82»ã\83¼ã\82¸å\87ºå\8a\9bã\81«ä½¿ç\94¨ã\81\99ã\82\8bè¨\80èª\9eã\83»ã\81\84ã\82\8dã\81\84ã\82\8dã\81ªæ\96\87å\97é\9b\86å\90\88ã\83»
-表è¨\98ã\81«é\96¢ã\81\99ã\82\8bæ\85£ç¿\92ã\81¨ã\81\84ã\81£ã\81\9fã\82\88ã\81\86ã\81ªé\9d¢ã\82\92ã\82«ã\83\90ã\83¼ã\81\97ã\81¦ã\81\84ã\82\8bã\80\82 ã\83\97ã\83ã\82°ã\83©ã\83 ã\82\92ã\81\84ã\82\8dã\81\84ã\82\8dã\81ªæ\96\87å\8c\96ã\81«ç§»æ¤\8då\8f¯è\83½ã\81¨ã\81\99ã\82\8bã\81«ã\81¯ã\80\81 ã\81\9dã\81®ã\83\97ã\83ã\82°ã\83©ã\83 ã\81¯è\87ªå\88\86ã\81®ã\83ã\82±ã\83¼ã\83«ã\82\92決ã\82\81ã\81¦、
-ã\81\9dã\82\8cã\81«å¿\9cã\81\98ã\81\9fé\81©å\88\87ã\81ªå\8b\95ä½\9cã\81\8cã\81§ã\81\8dã\81ªã\81\91ã\82\8cã\81°ã\81ªã\82\89ã\81ªã\81\84。
+ã\83ã\82±ã\83¼ã\83« (locale) ã\81¯è¨\80èª\9eã\82\84æ\96\87å\8c\96ã\83«ã\83¼ã\83«ã\81®é\9b\86å\90\88ã\81§ã\81\82ã\82\8bã\80\82 ã\81\93ã\82\8cã\81«ã\81¯ã\80\81ã\83¡ã\83\83ã\82»ã\83¼ã\82¸å\87ºå\8a\9bã\81«ä½¿ç\94¨ã\81\99ã\82\8bè¨\80èª\9eã\80\81 æ§\98ã\80\85ã\81ªæ\96\87å\97é\9b\86å\90\88ã\80\81
+表è¨\98ã\81«é\96¢ã\81\99ã\82\8bæ\85£ç¿\92ã\81ªã\81©ã\81\8cå\90«ã\81¾ã\82\8cã\82\8bã\80\82 ã\83\97ã\83ã\82°ã\83©ã\83 ã\82\92ã\81\84ã\82\8dã\81\84ã\82\8dã\81ªæ\96\87å\8c\96ã\81«ç§»æ¤\8då\8f¯è\83½ã\81¨ã\81\99ã\82\8bã\81«ã\81¯ã\80\81 ã\83\97ã\83ã\82°ã\83©ã\83 ã\81\8cè\87ªå\88\86ã\81®ã\83ã\82±ã\83¼ã\83«ã\82\92å\88¤å®\9aã\81\97、
+ã\81\9dã\82\8cã\81«å¿\9cã\81\98ã\81\9fé\81©å\88\87ã\81ªå\8b\95ä½\9cã\81\8cã\81§ã\81\8dã\82\8bå¿\85è¦\81ã\81\8cã\81\82ã\82\8b。
.PP
-ヘッダーファイル \fI<locale.h>\fP には、この目的に便利なデータ型・関数・マクロなどの宣言がある。
+ヘッダーファイル \fI<locale.h>\fP には、 このための便利なデータ型、 関数、 マクロなどの宣言がある。
.PP
このヘッダーファイルで宣言されている関数には、 現在のロケールを設定する \fBsetlocale\fP(3)
と、数値のフォーマット方法についての情報を取得する \fBlocaleconv\fP(3) がある。
.PP
-ã\83\97ã\83ã\82°ã\83©ã\83 ã\81®å¿\85è¦\81ã\81«å¿\9cã\81\98ã\81¦ã\80\81ã\83ã\82±ã\83¼ã\83«æ\83\85å ±ã\81¯ã\81\84ã\82\8dã\81\84ã\82\8dã\81ªカテゴリに分かれており、 それらはマクロとして宣言されている。 これらのマクロを
-\fBsetlocale\fP(3) 関数の最初の引き数に用いると、 これらのどれかを望むロケールに設定できる。
+ã\83ã\82±ã\83¼ã\83«æ\83\85å ±ã\81¯ã\80\81 ã\83\97ã\83ã\82°ã\83©ã\83 ã\81\8cå¿\85è¦\81ã\81¨ã\81\99ã\82\8bã\81¨æ\80\9dã\82\8fã\82\8cã\82\8bã\81\84ã\81\8fã\81¤ã\81\8bã\81®カテゴリに分かれており、 それらはマクロとして宣言されている。 これらのマクロを
+\fBsetlocale\fP(3) 関数の最初の引き数に用いると、 各カテゴリを望むロケールに設定できる。
.TP
\fBLC_ADDRESS\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change settings that describe the formats (e.g., postal addresses) used to
-describe locations and geography\-related items. Applications that need this
-information can use \fBnl_langinfo\fP(3) to retrieve nonstandard elements,
-such as \fB_NL_ADDRESS_COUNTRY_NAME\fP (country name, in the language of the
-locale) and \fB_NL_ADDRESS_LANG_NAME\fP (language name, in the language of the
-locale), which return strings such as "Deutschland" and "Deutsch" (for
-German\-language locales). (Other element names are listed in
-\fI<langinfo.h>\fP.)
+場所や地理関連の項目の表示に使用するフォーマット (郵便番号など) に関する設定を変更する。 この情報が必要なアプリケーションは
+\fBnl_langinfo\fP(3) を使って非標準の要素を取得できる。 \fB_NL_ADDRESS_COUNTRY_NAME\fP
+(指定されたロケールの言語での国名) や \fB_NL_ADDRESS_LANG_NAME\fP (指定されたロケールの言語での言語名) などがあり、
+ドイツ語ロケールでは "Deutschland" と "Deutsch" といった文字列が返される。 他の要素名については
+\fI<langinfo.h>\fP にリストがある。
.TP
\fBLC_COLLATE\fP
これは地域的なアルファベット文字列の比較に使用する \fBstrcoll\fP(3) 関数と \fBstrxfrm\fP(3)
.TP
\fBLC_IDENTIFICATION\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change settings that relate to the metadata for the locale. Applications
-that need this information can use \fBnl_langinfo\fP(3) to retrieve
-nonstandard elements, such as \fB_NL_IDENTIFICATION_TITLE\fP (title of this
-locale document) and \fB_NL_IDENTIFICATION_TERRITORY\fP (geographical
-territory to which this locale document applies), which might return strings
-such as "English locale for the USA" and "USA". (Other element names are
-listed in \fI<langinfo.h>\fP.)
+ロケールのメタデータに関連する設定を変更する。 この情報が必要なアプリケーションは \fBnl_langinfo\fP(3)
+を使って非標準の要素を取得できる。 \fB_NL_IDENTIFICATION_TITLE\fP (このロケール文書のタイトル) や
+\fB_NL_IDENTIFICATION_TERRITORY\fP (このロケール文書が適用される地理的な範囲) などがあり、 "English
+locale for the USA" や "USA" といった文字列が返される。 他の要素名については \fI<langinfo.h>\fP
+にリストがある。
.TP
\fBLC_MONETARY\fP
\fBlocaleconv\fP(3) によって返される情報を変更する。 これには小数点や区切りコンマの位置など、
(\fBLANGUAGE\fP はコロン区切りのロケールのリストである)。
.TP
\fBLC_MEASUREMENT\fP (GNU 拡張、 glibc 2.2 以降)
-Change the settings relating to the measurement system in the locale (i.e.,
-metric versus US customary units). Applications can use \fBnl_langinfo\fP(3)
-to retrieve the nonstandard \fB_NL_MEASUREMENT_MEASUREMENT\fP element, which
-returns a pointer to a character that has the value 1 (metric) or 2 (US
-customary units).
+ロケールの測定系 (つまり、メートル法かアメリカでよく使われる単位か) に関連する設定を変更する。 この情報が必要なアプリケーションは
+\fBnl_langinfo\fP(3) を使って非標準の要素である \fB_NL_MEASUREMENT_MEASUREMENT\fP を取得できる。 この要素は
+1 (メートル法) か 2 (アメリカでよく使われる単位) の値が入った文字列へのポインタを返す。
.TP
\fBLC_NAME\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change settings that describe the formats used to address persons.
-Applications that need this information can use \fBnl_langinfo\fP(3) to
-retrieve nonstandard elements, such as \fB_NL_NAME_NAME_MR\fP (general
-salutation for men) and \fB_NL_NAME_NAME_MS\fP (general salutation for women)
-elements, which return strings such as "Herr" and "Frau" (for
-German\-language locales). (Other element names are listed in
-\fI<langinfo.h>\fP.)
+人に呼びかける際に使用されるフォーマットに関する設定を変更する。 この情報が必要なアプリケーションは \fBnl_langinfo\fP(3)
+を使って非標準の要素を取得できる。 \fB_NL_NAME_NAME_MR\fP (男性に対する一般的な呼び掛け) や \fB_NL_NAME_NAME_MS\fP
+(女性に対する一般的な呼び掛け) などがあり、 ドイツ語ロケールでは "Herr" や "Frau" といった文字列が返される。 他の要素名については
+\fI<langinfo.h>\fP にリストがある。
.TP
\fBLC_NUMERIC\fP
\fBprintf\fP(3) 関数および \fBscanf\fP(3) 関数のファミリーでロケール設定を使うよう指示された場合に
用いる情報を変更する。この情報は \fBlocaleconv\fP(3) 関数で取得することもできる。
.TP
-\fBLC_PAPER\fP (GNU extension, since glibc 2.2)
+\fBLC_PAPER\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change the settings relating to the dimensions of the standard paper size
-(e.g., US letter versus A4). Applications that need the dimensions can
-obtain them by using \fBnl_langinfo\fP(3) to retrieve the nonstandard
-\fB_NL_PAPER_WIDTH\fP and \fB_NL_PAPER_HEIGHT\fP elements, which return \fIint\fP
-values specifying the dimensions in millimeters.
+標準的な紙のサイズの寸法 (US letter や A4 など) に関する設定を変更する。 この情報が必要なアプリケーションは
+\fBnl_langinfo\fP(3) を使って非標準の要素である \fB_NL_PAPER_WIDTH\fP と \fB_NL_PAPER_HEIGHT\fP
+を取得できる。 この要素はミリメーター単位の寸法を指定する \fIint\fP 値を返す。
.TP
-\fBLC_TELEPHONE\fP (GNU extension, since glibc 2.2)
+\fBLC_TELEPHONE\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change settings that describe the formats to be used with telephone
-services. Applications that need this information can use \fBnl_langinfo\fP(3)
-to retrieve nonstandard elements, such as \fB_NL_TELEPHONE_INT_PREFIX\fP
-(international prefix used to call numbers in this locale), which returns a
-string such as "49" (for Germany). (Other element names are listed in
-\fI<langinfo.h>\fP.)
+電話サービスで使用されるフォーマットに関する設定を変更する。 この情報が必要なアプリケーションは \fBnl_langinfo\fP(3)
+を使って非標準の要素を取得できる。 \fB_NL_TELEPHONE_INT_PREFIX\fP (そのロケールでの電話番号の前に付く国を示す番号)
+などがある。 "49" (ドイツの場合) といった文字列が返される。 他の要素名については \fI<langinfo.h>\fP
+にリストがある。
.TP
\fBLC_TIME\fP
\fBstrftime\fP(3) 関数の動作を変更し、 地域で利用されている方法で現在時刻を表示する。 例えば、ヨーロッパの多くでは
};
.fi
.in
-.SS "POSIX.1\-2008 extensions to the locale API"
-POSIX.1\-2008 standardized a number of extensions to the locale API, based on
-implementations that first appeared in version 2.3 of the GNU C library.
-These extensions are designed to address the problem that the traditional
-locale APIs do not mix well with multithreaded applications and with
-applications that must deal with multiple locales.
+.SS "ロケール API の POSIX.1\-2008 での拡張"
+POSIX.1\-2008 では、 ロケール API への多くの拡張が標準化されている。 これは GNU C ライブラリのバージョン 2.3
+で初めて登場した実装に基づいている。 これらの拡張は、 従来のロケール API
+がマルチスレッドアプリケーションや複数のロケールを扱う必要があるアプリケーションとうまく組み合わせて使うことができない問題を解決するために設計された。
-The extensions take the form of new functions for creating and manipulating
-locale objects (\fBnewlocale\fP(3), \fBfreelocale\fP(3), \fBduplocale\fP(3), and
-\fBuselocale\fP(3)) and various new library functions with the suffix "_l"
-(e.g., \fBtoupper_l\fP(3)) that extend the traditional locale\-dependent APIs
-(e.g., \fBtoupper\fP(3)) to allow the specification of a locale object that
-should apply when executing the function.
+この拡張は、 ロケールオブジェクトの作成、操作のための新しい関数 (\fBnewlocale\fP(3), \fBfreelocale\fP(3),
+\fBduplocale\fP(3), \fBuselocale\fP(3)) とサフィックス "_l" が付いた新しいライブラリ関数
+(\fBtoupper_l\fP(3) など) で構成される。 新しいライブラリ関数は、 従来のロケール依存の API (\fBtoupper\fP(3) など)
+を関数実行時に適用するロケールオブジェクトの指定ができるように拡張したものである。
.SH 準拠
.\"
.\" The GNU gettext functions are specified in LI18NUX2000.
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2014-04-24 00:51+0900\n"
-"PO-Revision-Date: 2014-04-24 03:08+0900\n"
+"PO-Revision-Date: 2014-04-26 02:24+0900\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"as language for messages, different character sets, lexicographic "
"conventions, and so on. A program needs to be able to determine its locale "
"and act accordingly to be portable to different cultures."
-msgstr ""
-"ロケール (locale) は言語や文化ルールの集合である。 これらは、メッセージ出力に"
-"使用する言語・いろいろな文字集合・ 表記に関する慣習といったような面をカバーし"
-"ている。 プログラムをいろいろな文化に移植可能とするには、 そのプログラムは自"
-"分のロケールを決めて、 それに応じた適切な動作ができなければならない。"
+msgstr "ロケール (locale) は言語や文化ルールの集合である。 これには、メッセージ出力に使用する言語、 様々な文字集合、 表記に関する慣習などが含まれる。 プログラムをいろいろな文化に移植可能とするには、 プログラムが自分のロケールを判定し、 それに応じた適切な動作ができる必要がある。"
#. type: Plain text
#: build/C/man7/locale.7:53
msgid ""
"The header I<E<lt>locale.hE<gt>> declares data types, functions and macros "
"which are useful in this task."
-msgstr ""
-"ヘッダーファイル I<E<lt>locale.hE<gt>> には、この目的に便利なデータ型・関数・"
-"マクロなどの宣言がある。"
+msgstr "ヘッダーファイル I<E<lt>locale.hE<gt>> には、 このための便利なデータ型、 関数、 マクロなどの宣言がある。"
#. type: Plain text
#: build/C/man7/locale.7:59
"they are declared as macros. Using them as the first argument to the "
"B<setlocale>(3) function, it is possible to set one of these to the desired "
"locale:"
-msgstr ""
-"プログラムの必要に応じて、ロケール情報はいろいろなカテゴリに分かれており、 そ"
-"れらはマクロとして宣言されている。 これらのマクロを B<setlocale>(3) 関数の最"
-"初の引き数に用いると、 これらのどれかを望むロケールに設定できる。"
+msgstr "ロケール情報は、 プログラムが必要とすると思われるいくつかのカテゴリに分かれており、 それらはマクロとして宣言されている。 これらのマクロを B<setlocale>(3) 関数の最初の引き数に用いると、 各カテゴリを望むロケールに設定できる。"
#. type: TP
#: build/C/man7/locale.7:66
"locale), which return strings such as \"Deutschland\" and \"Deutsch\" (for "
"German-language locales). (Other element names are listed in "
"I<E<lt>langinfo.hE<gt>>.)"
-msgstr ""
+msgstr "場所や地理関連の項目の表示に使用するフォーマット (郵便番号など) に関する設定を変更する。 この情報が必要なアプリケーションは B<nl_langinfo>(3) を使って非標準の要素を取得できる。 B<_NL_ADDRESS_COUNTRY_NAME> (指定されたロケールの言語での国名) や B<_NL_ADDRESS_LANG_NAME> (指定されたロケールの言語での言語名) などがあり、 ドイツ語ロケールでは \"Deutschland\" と \"Deutsch\" といった文字列が返される。 他の要素名については I<E<lt>langinfo.hE<gt>> にリストがある。"
#. type: Plain text
#: build/C/man7/locale.7:92
"territory to which this locale document applies), which might return strings "
"such as \"English locale for the USA\" and \"USA\". (Other element names "
"are listed in I<E<lt>langinfo.hE<gt>>.)"
-msgstr ""
+msgstr "ロケールのメタデータに関連する設定を変更する。 この情報が必要なアプリケーションは B<nl_langinfo>(3) を使って非標準の要素を取得できる。 B<_NL_IDENTIFICATION_TITLE> (このロケール文書のタイトル) や B<_NL_IDENTIFICATION_TERRITORY> (このロケール文書が適用される地理的な範囲) などがあり、 \"English locale for the USA\" や \"USA\" といった文字列が返される。 他の要素名については I<E<lt>langinfo.hE<gt>> にリストがある。"
#. type: Plain text
#: build/C/man7/locale.7:128
"to retrieve the nonstandard B<_NL_MEASUREMENT_MEASUREMENT> element, which "
"returns a pointer to a character that has the value 1 (metric) or 2 (US "
"customary units)."
-msgstr ""
+msgstr "ロケールの測定系 (つまり、メートル法かアメリカでよく使われる単位か) に関連する設定を変更する。 この情報が必要なアプリケーションは B<nl_langinfo>(3) を使って非標準の要素である B<_NL_MEASUREMENT_MEASUREMENT> を取得できる。 この要素は 1 (メートル法) か 2 (アメリカでよく使われる単位) の値が入った文字列へのポインタを返す。"
#. type: TP
#: build/C/man7/locale.7:154
"elements, which return strings such as \"Herr\" and \"Frau\" (for German-"
"language locales). (Other element names are listed in I<E<lt>langinfo."
"hE<gt>>.)"
-msgstr ""
+msgstr "人に呼びかける際に使用されるフォーマットに関する設定を変更する。 この情報が必要なアプリケーションは B<nl_langinfo>(3) を使って非標準の要素を取得できる。 B<_NL_NAME_NAME_MR> (男性に対する一般的な呼び掛け) や B<_NL_NAME_NAME_MS> (女性に対する一般的な呼び掛け) などがあり、 ドイツ語ロケールでは \"Herr\" や \"Frau\" といった文字列が返される。 他の要素名については I<E<lt>langinfo.hE<gt>> にリストがある。"
#. type: Plain text
#: build/C/man7/locale.7:180
#: build/C/man7/locale.7:180
#, no-wrap
msgid "B<LC_PAPER> (GNU extension, since glibc 2.2)"
-msgstr ""
+msgstr "B<LC_PAPER> (GNU 拡張、 glibc 2.2 以降)"
#. See ISO/IEC Technical Report 14652
#. type: Plain text
"them by using B<nl_langinfo>(3) to retrieve the nonstandard "
"B<_NL_PAPER_WIDTH> and B<_NL_PAPER_HEIGHT> elements, which return I<int> "
"values specifying the dimensions in millimeters."
-msgstr ""
+msgstr "標準的な紙のサイズの寸法 (US letter や A4 など) に関する設定を変更する。 この情報が必要なアプリケーションは B<nl_langinfo>(3) を使って非標準の要素である B<_NL_PAPER_WIDTH> と B<_NL_PAPER_HEIGHT> を取得できる。 この要素はミリメーター単位の寸法を指定する I<int> 値を返す。"
#. type: TP
#: build/C/man7/locale.7:194
#, no-wrap
msgid "B<LC_TELEPHONE> (GNU extension, since glibc 2.2)"
-msgstr ""
+msgstr "B<LC_TELEPHONE> (GNU 拡張、 glibc 2.2 以降)"
#. See ISO/IEC Technical Report 14652
#. type: Plain text
"(international prefix used to call numbers in this locale), which returns a "
"string such as \"49\" (for Germany). (Other element names are listed in "
"I<E<lt>langinfo.hE<gt>>.)"
-msgstr ""
+msgstr "電話サービスで使用されるフォーマットに関する設定を変更する。 この情報が必要なアプリケーションは B<nl_langinfo>(3) を使って非標準の要素を取得できる。 B<_NL_TELEPHONE_INT_PREFIX> (そのロケールでの電話番号の前に付く国を示す番号) などがある。 \"49\" (ドイツの場合) といった文字列が返される。 他の要素名については I<E<lt>langinfo.hE<gt>> にリストがある。"
#. type: Plain text
#: build/C/man7/locale.7:213
#: build/C/man7/locale.7:292
#, no-wrap
msgid "POSIX.1-2008 extensions to the locale API"
-msgstr ""
+msgstr "ロケール API の POSIX.1-2008 での拡張"
#. type: Plain text
#: build/C/man7/locale.7:299
"These extensions are designed to address the problem that the traditional "
"locale APIs do not mix well with multithreaded applications and with "
"applications that must deal with multiple locales."
-msgstr ""
+msgstr "POSIX.1-2008 では、 ロケール API への多くの拡張が標準化されている。 これは GNU C ライブラリのバージョン 2.3 で初めて登場した実装に基づいている。 これらの拡張は、 従来のロケール API がマルチスレッドアプリケーションや複数のロケールを扱う必要があるアプリケーションとうまく組み合わせて使うことができない問題を解決するために設計された。"
#. type: Plain text
#: build/C/man7/locale.7:313
"\" (e.g., B<toupper_l>(3)) that extend the traditional locale-dependent "
"APIs (e.g., B<toupper>(3)) to allow the specification of a locale object "
"that should apply when executing the function."
-msgstr ""
+msgstr "この拡張は、 ロケールオブジェクトの作成、操作のための新しい関数 (B<newlocale>(3), B<freelocale>(3), B<duplocale>(3), B<uselocale>(3)) とサフィックス \"_l\" が付いた新しいライブラリ関数 (B<toupper_l>(3) など) で構成される。 新しいライブラリ関数は、 従来のロケール依存の API (B<toupper>(3) など) を関数実行時に適用するロケールオブジェクトの指定ができるように拡張したものである。"
#. type: Plain text
#: build/C/man7/locale.7:336
\fB#include <locale.h>\fP
.fi
.SH 説明
-ã\83ã\82±ã\83¼ã\83« (locale) ã\81¯è¨\80èª\9eã\82\84æ\96\87å\8c\96ã\83«ã\83¼ã\83«ã\81®é\9b\86å\90\88ã\81§ã\81\82ã\82\8bã\80\82 ã\81\93ã\82\8cã\82\89ã\81¯ã\80\81ã\83¡ã\83\83ã\82»ã\83¼ã\82¸å\87ºå\8a\9bã\81«ä½¿ç\94¨ã\81\99ã\82\8bè¨\80èª\9eã\83»ã\81\84ã\82\8dã\81\84ã\82\8dã\81ªæ\96\87å\97é\9b\86å\90\88ã\83»
-表è¨\98ã\81«é\96¢ã\81\99ã\82\8bæ\85£ç¿\92ã\81¨ã\81\84ã\81£ã\81\9fã\82\88ã\81\86ã\81ªé\9d¢ã\82\92ã\82«ã\83\90ã\83¼ã\81\97ã\81¦ã\81\84ã\82\8bã\80\82 ã\83\97ã\83ã\82°ã\83©ã\83 ã\82\92ã\81\84ã\82\8dã\81\84ã\82\8dã\81ªæ\96\87å\8c\96ã\81«ç§»æ¤\8då\8f¯è\83½ã\81¨ã\81\99ã\82\8bã\81«ã\81¯ã\80\81 ã\81\9dã\81®ã\83\97ã\83ã\82°ã\83©ã\83 ã\81¯è\87ªå\88\86ã\81®ã\83ã\82±ã\83¼ã\83«ã\82\92決ã\82\81ã\81¦、
-ã\81\9dã\82\8cã\81«å¿\9cã\81\98ã\81\9fé\81©å\88\87ã\81ªå\8b\95ä½\9cã\81\8cã\81§ã\81\8dã\81ªã\81\91ã\82\8cã\81°ã\81ªã\82\89ã\81ªã\81\84。
+ã\83ã\82±ã\83¼ã\83« (locale) ã\81¯è¨\80èª\9eã\82\84æ\96\87å\8c\96ã\83«ã\83¼ã\83«ã\81®é\9b\86å\90\88ã\81§ã\81\82ã\82\8bã\80\82 ã\81\93ã\82\8cã\81«ã\81¯ã\80\81ã\83¡ã\83\83ã\82»ã\83¼ã\82¸å\87ºå\8a\9bã\81«ä½¿ç\94¨ã\81\99ã\82\8bè¨\80èª\9eã\80\81 æ§\98ã\80\85ã\81ªæ\96\87å\97é\9b\86å\90\88ã\80\81
+表è¨\98ã\81«é\96¢ã\81\99ã\82\8bæ\85£ç¿\92ã\81ªã\81©ã\81\8cå\90«ã\81¾ã\82\8cã\82\8bã\80\82 ã\83\97ã\83ã\82°ã\83©ã\83 ã\82\92ã\81\84ã\82\8dã\81\84ã\82\8dã\81ªæ\96\87å\8c\96ã\81«ç§»æ¤\8då\8f¯è\83½ã\81¨ã\81\99ã\82\8bã\81«ã\81¯ã\80\81 ã\83\97ã\83ã\82°ã\83©ã\83 ã\81\8cè\87ªå\88\86ã\81®ã\83ã\82±ã\83¼ã\83«ã\82\92å\88¤å®\9aã\81\97、
+ã\81\9dã\82\8cã\81«å¿\9cã\81\98ã\81\9fé\81©å\88\87ã\81ªå\8b\95ä½\9cã\81\8cã\81§ã\81\8dã\82\8bå¿\85è¦\81ã\81\8cã\81\82ã\82\8b。
.PP
-ヘッダーファイル \fI<locale.h>\fP には、この目的に便利なデータ型・関数・マクロなどの宣言がある。
+ヘッダーファイル \fI<locale.h>\fP には、 このための便利なデータ型、 関数、 マクロなどの宣言がある。
.PP
このヘッダーファイルで宣言されている関数には、 現在のロケールを設定する \fBsetlocale\fP(3)
と、数値のフォーマット方法についての情報を取得する \fBlocaleconv\fP(3) がある。
.PP
-ã\83\97ã\83ã\82°ã\83©ã\83 ã\81®å¿\85è¦\81ã\81«å¿\9cã\81\98ã\81¦ã\80\81ã\83ã\82±ã\83¼ã\83«æ\83\85å ±ã\81¯ã\81\84ã\82\8dã\81\84ã\82\8dã\81ªカテゴリに分かれており、 それらはマクロとして宣言されている。 これらのマクロを
-\fBsetlocale\fP(3) 関数の最初の引き数に用いると、 これらのどれかを望むロケールに設定できる。
+ã\83ã\82±ã\83¼ã\83«æ\83\85å ±ã\81¯ã\80\81 ã\83\97ã\83ã\82°ã\83©ã\83 ã\81\8cå¿\85è¦\81ã\81¨ã\81\99ã\82\8bã\81¨æ\80\9dã\82\8fã\82\8cã\82\8bã\81\84ã\81\8fã\81¤ã\81\8bã\81®カテゴリに分かれており、 それらはマクロとして宣言されている。 これらのマクロを
+\fBsetlocale\fP(3) 関数の最初の引き数に用いると、 各カテゴリを望むロケールに設定できる。
.TP
\fBLC_ADDRESS\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change settings that describe the formats (e.g., postal addresses) used to
-describe locations and geography\-related items. Applications that need this
-information can use \fBnl_langinfo\fP(3) to retrieve nonstandard elements,
-such as \fB_NL_ADDRESS_COUNTRY_NAME\fP (country name, in the language of the
-locale) and \fB_NL_ADDRESS_LANG_NAME\fP (language name, in the language of the
-locale), which return strings such as "Deutschland" and "Deutsch" (for
-German\-language locales). (Other element names are listed in
-\fI<langinfo.h>\fP.)
+場所や地理関連の項目の表示に使用するフォーマット (郵便番号など) に関する設定を変更する。 この情報が必要なアプリケーションは
+\fBnl_langinfo\fP(3) を使って非標準の要素を取得できる。 \fB_NL_ADDRESS_COUNTRY_NAME\fP
+(指定されたロケールの言語での国名) や \fB_NL_ADDRESS_LANG_NAME\fP (指定されたロケールの言語での言語名) などがあり、
+ドイツ語ロケールでは "Deutschland" と "Deutsch" といった文字列が返される。 他の要素名については
+\fI<langinfo.h>\fP にリストがある。
.TP
\fBLC_COLLATE\fP
これは地域的なアルファベット文字列の比較に使用する \fBstrcoll\fP(3) 関数と \fBstrxfrm\fP(3)
.TP
\fBLC_IDENTIFICATION\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change settings that relate to the metadata for the locale. Applications
-that need this information can use \fBnl_langinfo\fP(3) to retrieve
-nonstandard elements, such as \fB_NL_IDENTIFICATION_TITLE\fP (title of this
-locale document) and \fB_NL_IDENTIFICATION_TERRITORY\fP (geographical
-territory to which this locale document applies), which might return strings
-such as "English locale for the USA" and "USA". (Other element names are
-listed in \fI<langinfo.h>\fP.)
+ロケールのメタデータに関連する設定を変更する。 この情報が必要なアプリケーションは \fBnl_langinfo\fP(3)
+を使って非標準の要素を取得できる。 \fB_NL_IDENTIFICATION_TITLE\fP (このロケール文書のタイトル) や
+\fB_NL_IDENTIFICATION_TERRITORY\fP (このロケール文書が適用される地理的な範囲) などがあり、 "English
+locale for the USA" や "USA" といった文字列が返される。 他の要素名については \fI<langinfo.h>\fP
+にリストがある。
.TP
\fBLC_MONETARY\fP
\fBlocaleconv\fP(3) によって返される情報を変更する。 これには小数点や区切りコンマの位置など、
(\fBLANGUAGE\fP はコロン区切りのロケールのリストである)。
.TP
\fBLC_MEASUREMENT\fP (GNU 拡張、 glibc 2.2 以降)
-Change the settings relating to the measurement system in the locale (i.e.,
-metric versus US customary units). Applications can use \fBnl_langinfo\fP(3)
-to retrieve the nonstandard \fB_NL_MEASUREMENT_MEASUREMENT\fP element, which
-returns a pointer to a character that has the value 1 (metric) or 2 (US
-customary units).
+ロケールの測定系 (つまり、メートル法かアメリカでよく使われる単位か) に関連する設定を変更する。 この情報が必要なアプリケーションは
+\fBnl_langinfo\fP(3) を使って非標準の要素である \fB_NL_MEASUREMENT_MEASUREMENT\fP を取得できる。 この要素は
+1 (メートル法) か 2 (アメリカでよく使われる単位) の値が入った文字列へのポインタを返す。
.TP
\fBLC_NAME\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change settings that describe the formats used to address persons.
-Applications that need this information can use \fBnl_langinfo\fP(3) to
-retrieve nonstandard elements, such as \fB_NL_NAME_NAME_MR\fP (general
-salutation for men) and \fB_NL_NAME_NAME_MS\fP (general salutation for women)
-elements, which return strings such as "Herr" and "Frau" (for
-German\-language locales). (Other element names are listed in
-\fI<langinfo.h>\fP.)
+人に呼びかける際に使用されるフォーマットに関する設定を変更する。 この情報が必要なアプリケーションは \fBnl_langinfo\fP(3)
+を使って非標準の要素を取得できる。 \fB_NL_NAME_NAME_MR\fP (男性に対する一般的な呼び掛け) や \fB_NL_NAME_NAME_MS\fP
+(女性に対する一般的な呼び掛け) などがあり、 ドイツ語ロケールでは "Herr" や "Frau" といった文字列が返される。 他の要素名については
+\fI<langinfo.h>\fP にリストがある。
.TP
\fBLC_NUMERIC\fP
\fBprintf\fP(3) 関数および \fBscanf\fP(3) 関数のファミリーでロケール設定を使うよう指示された場合に
用いる情報を変更する。この情報は \fBlocaleconv\fP(3) 関数で取得することもできる。
.TP
-\fBLC_PAPER\fP (GNU extension, since glibc 2.2)
+\fBLC_PAPER\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change the settings relating to the dimensions of the standard paper size
-(e.g., US letter versus A4). Applications that need the dimensions can
-obtain them by using \fBnl_langinfo\fP(3) to retrieve the nonstandard
-\fB_NL_PAPER_WIDTH\fP and \fB_NL_PAPER_HEIGHT\fP elements, which return \fIint\fP
-values specifying the dimensions in millimeters.
+標準的な紙のサイズの寸法 (US letter や A4 など) に関する設定を変更する。 この情報が必要なアプリケーションは
+\fBnl_langinfo\fP(3) を使って非標準の要素である \fB_NL_PAPER_WIDTH\fP と \fB_NL_PAPER_HEIGHT\fP
+を取得できる。 この要素はミリメーター単位の寸法を指定する \fIint\fP 値を返す。
.TP
-\fBLC_TELEPHONE\fP (GNU extension, since glibc 2.2)
+\fBLC_TELEPHONE\fP (GNU 拡張、 glibc 2.2 以降)
.\" See ISO/IEC Technical Report 14652
-Change settings that describe the formats to be used with telephone
-services. Applications that need this information can use \fBnl_langinfo\fP(3)
-to retrieve nonstandard elements, such as \fB_NL_TELEPHONE_INT_PREFIX\fP
-(international prefix used to call numbers in this locale), which returns a
-string such as "49" (for Germany). (Other element names are listed in
-\fI<langinfo.h>\fP.)
+電話サービスで使用されるフォーマットに関する設定を変更する。 この情報が必要なアプリケーションは \fBnl_langinfo\fP(3)
+を使って非標準の要素を取得できる。 \fB_NL_TELEPHONE_INT_PREFIX\fP (そのロケールでの電話番号の前に付く国を示す番号)
+などがある。 "49" (ドイツの場合) といった文字列が返される。 他の要素名については \fI<langinfo.h>\fP
+にリストがある。
.TP
\fBLC_TIME\fP
\fBstrftime\fP(3) 関数の動作を変更し、 地域で利用されている方法で現在時刻を表示する。 例えば、ヨーロッパの多くでは
};
.fi
.in
-.SS "POSIX.1\-2008 extensions to the locale API"
-POSIX.1\-2008 standardized a number of extensions to the locale API, based on
-implementations that first appeared in version 2.3 of the GNU C library.
-These extensions are designed to address the problem that the traditional
-locale APIs do not mix well with multithreaded applications and with
-applications that must deal with multiple locales.
+.SS "ロケール API の POSIX.1\-2008 での拡張"
+POSIX.1\-2008 では、 ロケール API への多くの拡張が標準化されている。 これは GNU C ライブラリのバージョン 2.3
+で初めて登場した実装に基づいている。 これらの拡張は、 従来のロケール API
+がマルチスレッドアプリケーションや複数のロケールを扱う必要があるアプリケーションとうまく組み合わせて使うことができない問題を解決するために設計された。
-The extensions take the form of new functions for creating and manipulating
-locale objects (\fBnewlocale\fP(3), \fBfreelocale\fP(3), \fBduplocale\fP(3), and
-\fBuselocale\fP(3)) and various new library functions with the suffix "_l"
-(e.g., \fBtoupper_l\fP(3)) that extend the traditional locale\-dependent APIs
-(e.g., \fBtoupper\fP(3)) to allow the specification of a locale object that
-should apply when executing the function.
+この拡張は、 ロケールオブジェクトの作成、操作のための新しい関数 (\fBnewlocale\fP(3), \fBfreelocale\fP(3),
+\fBduplocale\fP(3), \fBuselocale\fP(3)) とサフィックス "_l" が付いた新しいライブラリ関数
+(\fBtoupper_l\fP(3) など) で構成される。 新しいライブラリ関数は、 従来のロケール依存の API (\fBtoupper\fP(3) など)
+を関数実行時に適用するロケールオブジェクトの指定ができるように拡張したものである。
.SH 準拠
.\"
.\" The GNU gettext functions are specified in LI18NUX2000.
duplocale.3,51,4,55
locale.1,33,18,51
locale.5,316,91,407
-locale.7,50,11,61
newlocale.3,60,29,89
uselocale.3,30,11,41
@:LDP man-pages:3.65:2014/02/16:latin8:7:iso_8859-14:7:
@:LDP man-pages:3.65:2014/02/16:latin9:7:iso_8859-15:7:
○:LDP man-pages:3.65:2014/04/20:libc:7:2014/04/24::amotoki@gmail.com:Akihiro MOTOKI:
-â\98\86:LDP man-pages:3.54=>3.65:2014/03/18:locale:7:2013/03/25::amotoki@gmail.com:Akihiro MOTOKI:
+â\97\8b:LDP man-pages:3.65:2014/03/18:locale:7:2014/04/26::amotoki@gmail.com:Akihiro MOTOKI:
○:LDP man-pages:3.65:2004/09/15:mailaddr:7:2014/04/24::amotoki@dd.iij4u.or.jp:Akihiro MOTOKI:
○:LDP man-pages:3.65:2012/08/05:man:7:2014/04/24::amotoki@gmail.com:Akihiro MOTOKI:
☆:LDP man-pages:3.54=>3.65:2014/03/16:man-pages:7:2013/08/30::amotoki@gmail.com:Akihiro MOTOKI:
<TR class="over80"><TD>duplocale.3</TD><TD>4/55</TD><TD>92.73</TD></TR>
<TR><TD>locale.1</TD><TD>18/51</TD><TD>64.71</TD></TR>
<TR class="over70"><TD>locale.5</TD><TD>91/407</TD><TD>77.64</TD></TR>
-<TR class="over80"><TD>locale.7</TD><TD>11/61</TD><TD>81.97</TD></TR>
<TR><TD>newlocale.3</TD><TD>29/89</TD><TD>67.42</TD></TR>
<TR class="over70"><TD>uselocale.3</TD><TD>11/41</TD><TD>73.17</TD></TR>
<TR><TD ALIGN="center" COLSPAN=3 BGCOLOR="Yellow"><B>man2</B></TD></TR>
<TR class="over70"><TD>futimesat.2</TD><TD>10/37</TD><TD>72.97</TD></TR>
<TR><TD>utimensat.2</TD><TD>49/107</TD><TD>54.21</TD></TR>
<TR class="over80"><TD>zdump.8</TD><TD>1/22</TD><TD>95.45</TD></TR>
-<TR><TD COLSPAN=3>Total 65 pages</TD></TR>
+<TR><TD COLSPAN=3>Total 64 pages</TD></TR>
</TABLE>
</BODY></HTML>