@@ -30,28 +30,28 @@ msgstr "この節では、 :mod:`contextvars` モジュールの公開 C API の
3030#: ../../c-api/contextvars.rst:14
3131msgid ""
3232"The C structure used to represent a :class:`contextvars.Context` object."
33- msgstr ""
33+ msgstr ":class:`contextvars.Context` オブジェクトを表現するための C 構造体。 "
3434
3535#: ../../c-api/contextvars.rst:19
3636msgid ""
3737"The C structure used to represent a :class:`contextvars.ContextVar` object."
38- msgstr ""
38+ msgstr ":class:`contextvars.ContextVar` オブジェクトを表現するための C 構造体。 "
3939
4040#: ../../c-api/contextvars.rst:24
4141msgid "The C structure used to represent a :class:`contextvars.Token` object."
42- msgstr ""
42+ msgstr ":class:`contextvars.Token` オブジェクトを表現するための C 構造体。 "
4343
4444#: ../../c-api/contextvars.rst:28
4545msgid "The type object representing the *context* type."
46- msgstr ""
46+ msgstr "*コンテキスト* 型を表現する型オブジェクト。 "
4747
4848#: ../../c-api/contextvars.rst:32
4949msgid "The type object representing the *context variable* type."
50- msgstr ""
50+ msgstr "*コンテキスト変数* 型を表現する型オブジェクト。 "
5151
5252#: ../../c-api/contextvars.rst:36
5353msgid "The type object representing the *context variable token* type."
54- msgstr ""
54+ msgstr "*コンテキスト変数トークン* 型を表現する型オブジェクト。 "
5555
5656#: ../../c-api/contextvars.rst:39
5757msgid "Type-check macros:"
@@ -62,63 +62,85 @@ msgid ""
6262"Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be "
6363"*NULL*. This function always succeeds."
6464msgstr ""
65+ "*o* が :c:data:`PyContext_Type` の場合に真を返します。\n"
66+ "*o* は *NULL* であってはなりません。\n"
67+ "この関数は常に成功します。"
6568
6669#: ../../c-api/contextvars.rst:48
6770msgid ""
6871"Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not be "
6972"*NULL*. This function always succeeds."
7073msgstr ""
74+ "*o* が :c:data:`PyContextVar_Type` の場合に真を返します。\n"
75+ "*o* は *NULL* であってはなりません。\n"
76+ "この関数は常に成功します。"
7177
7278#: ../../c-api/contextvars.rst:53
7379msgid ""
7480"Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not be"
7581" *NULL*. This function always succeeds."
7682msgstr ""
83+ "*o* が :c:data:`PyContextToken_Type` の場合に真を返します。\n"
84+ "*o* は *NULL* であってはなりません。\n"
85+ "この関数は常に成功します。"
7786
7887#: ../../c-api/contextvars.rst:57
7988msgid "Context object management functions:"
80- msgstr ""
89+ msgstr "コンテキストオブジェクトを取り扱う関数: "
8190
8291#: ../../c-api/contextvars.rst:61
8392msgid ""
8493"Create a new empty context object. Returns ``NULL`` if an error has "
8594"occurred."
8695msgstr ""
96+ "新しい空のコンテキストオブジェクトを作成します。\n"
97+ "エラーが起きた場合は ``NULL`` を返します。"
8798
8899#: ../../c-api/contextvars.rst:66
89100msgid ""
90101"Create a shallow copy of the passed *ctx* context object. Returns ``NULL`` "
91102"if an error has occurred."
92103msgstr ""
104+ "渡された *ctx* コンテキストオブジェクトの浅いコピーを作成します。\n"
105+ "エラーが起きた場合は ``NULL`` を返します。"
93106
94107#: ../../c-api/contextvars.rst:71
95108msgid ""
96109"Create a shallow copy of the current thread context. Returns ``NULL`` if an "
97110"error has occurred."
98111msgstr ""
112+ "現在のコンテキストオブジェクトの浅いコピーを作成します。\n"
113+ "エラーが起きた場合は ``NULL`` を返します。"
99114
100115#: ../../c-api/contextvars.rst:76
101116msgid ""
102117"Set *ctx* as the current context for the current thread. Returns ``0`` on "
103118"success, and ``-1`` on error."
104119msgstr ""
120+ "*ctx* を現在のスレッドの現在のコンテキストに設定します。\n"
121+ "成功したら ``0`` を、失敗したら ``-1`` を返します。"
105122
106123#: ../../c-api/contextvars.rst:81
107124msgid ""
108125"Deactivate the *ctx* context and restore the previous context as the current"
109126" context for the current thread. Returns ``0`` on success, and ``-1`` on "
110127"error."
111128msgstr ""
129+ "*ctx* コンテキストを無効にし、1 つ前のコンテキストを現在のスレッドの現在のコンテキストに復元します。\n"
130+ "成功したら ``0`` を、失敗したら ``-1`` を返します。"
112131
113132#: ../../c-api/contextvars.rst:87
114133msgid ""
115134"Clear the context variable free list. Return the total number of freed "
116135"items. This function always succeeds."
117136msgstr ""
137+ "コンテキスト変数のフリーリストをクリアします。\n"
138+ "解放された要素数を返します。\n"
139+ "この関数は常に成功します。"
118140
119141#: ../../c-api/contextvars.rst:91
120142msgid "Context variable functions:"
121- msgstr ""
143+ msgstr "コンテキスト変数の関数: "
122144
123145#: ../../c-api/contextvars.rst:95
124146msgid ""
@@ -127,27 +149,35 @@ msgid ""
127149"specify the default value for the context variable. If an error has "
128150"occurred, this function returns ``NULL``."
129151msgstr ""
152+ "新しい ``ContextVar`` オブジェクトを作成します。\n"
153+ "*name* 引数は内部走査とデバッグの目的で使われます。\n"
154+ "*def* 引数はコンテキスト変数の値を指定しますが、オプションです。\n"
155+ "エラーが起きた場合は、関数は ``NULL`` を返します。"
130156
131157#: ../../c-api/contextvars.rst:102
132158msgid ""
133159"Get the value of a context variable. Returns ``-1`` if an error has "
134160"occurred during lookup, and ``0`` if no error occurred, whether or not a "
135161"value was found."
136162msgstr ""
163+ "コンテキスト変数の値を取得します。\n"
164+ "取得中にエラーが起きた場合は ``-1`` を、値が見付かっても見付からなくてもエラーが起きなかった場合は ``0`` を返します。"
137165
138166#: ../../c-api/contextvars.rst:106
139167msgid ""
140168"If the context variable was found, *value* will be a pointer to it. If the "
141169"context variable was *not* found, *value* will point to:"
142170msgstr ""
171+ "コンテキスト変数が見付かった場合、 *value* はそれを指すポインタになっています。\n"
172+ "コンテキスト変数が見付から *なかった* 場合は、 *value* が指すものは次のようになっています:"
143173
144174#: ../../c-api/contextvars.rst:109
145175msgid "*default_value*, if not ``NULL``;"
146- msgstr ""
176+ msgstr "(``NULL`` でなければ) *default_value* "
147177
148178#: ../../c-api/contextvars.rst:110
149179msgid "the default value of *var*, if not ``NULL``;"
150- msgstr ""
180+ msgstr "(``NULL`` でなければ) *var* のデフォルト値 "
151181
152182#: ../../c-api/contextvars.rst:111
153183msgid "``NULL``"
@@ -156,17 +186,21 @@ msgstr "``NULL``"
156186#: ../../c-api/contextvars.rst:113
157187msgid ""
158188"If the value was found, the function will create a new reference to it."
159- msgstr ""
189+ msgstr "値が見付かった場合、この関数はその値への新しい参照を作成します。 "
160190
161191#: ../../c-api/contextvars.rst:117
162192msgid ""
163193"Set the value of *var* to *value* in the current context. Returns a pointer"
164194" to a :c:type:`PyContextToken` object, or ``NULL`` if an error has occurred."
165195msgstr ""
196+ "現在のコンテキストにおいて、 *var* の値に *value* を設定します。\n"
197+ ":c:type:`PyContextToken` オブジェクトへのポインタ、もしくはエラーが起きた場合は ``NULL`` を返します。"
166198
167199#: ../../c-api/contextvars.rst:123
168200msgid ""
169201"Reset the state of the *var* context variable to that it was in before "
170202":c:func:`PyContextVar_Set` that returned the *token* was called. This "
171203"function returns ``0`` on success and ``-1`` on error."
172204msgstr ""
205+ "*var* コンテキスト変数の状態をリセットし、 *token* を返した :c:func:`PyContextVar_Set` が呼ばれる前の状態に戻します。\n"
206+ "この関数は成功したら ``0`` 、失敗したら ``-1`` を返します。"
0 commit comments