@@ -9,7 +9,7 @@ msgstr ""
9
9
"Project-Id-Version : Python 3.6\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
11
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
12
- "Last-Translator : E. Kawashima <e.kawaschima+transifex @gmail.com>, 2017\n "
12
+ "Last-Translator : Nozomu Kaneko <nozom.kaneko @gmail.com>, 2017\n "
13
13
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
14
14
"MIME-Version : 1.0\n "
15
15
"Content-Type : text/plain; charset=UTF-8\n "
@@ -108,10 +108,10 @@ msgstr ""
108
108
"はイテレータ(:term:`iterator`)プロトコルをサポートし、 :meth:`!__next__` "
109
109
"メソッドが呼ばれた際に常に文字列を返すような任意のオブジェクトにすることができます --- :term:`ファイルオブジェクト <file "
110
110
"object>` でもリストでも構いません。 *csvfile* がファイルオブジェクトの場合、 ``newline=''`` として開くべきです。 "
111
- "[1]_ オプションとして *dialect* パラメタを与えることができ 、特定の CSV 表現形式 (dialect) "
112
- "特有のパラメタの集合を定義するために使われます 。 *dialect* 引数は :class:`Dialect` クラスのサブクラスのインスタンスか、 "
111
+ "[1]_ オプションとして *dialect* パラメータを与えることができ 、特定の CSV 表現形式 (dialect) "
112
+ "特有のパラメータの集合を定義するために使われます 。 *dialect* 引数は :class:`Dialect` クラスのサブクラスのインスタンスか、 "
113
113
":func:`list_dialects` 関数が返す文字列の一つにすることができます。別のオプションである *fmtparams* "
114
- "キーワード引数は、現在の表現形式における個々の書式パラメタを上書きするために与えることができます。表現形式および書式化パラメタの詳細については 、 "
114
+ "キーワード引数は、現在の表現形式における個々の書式パラメータを上書きするために与えることができます。表現形式および書式化パラメータの詳細については 、 "
115
115
":ref:`csv-fmt-params` 節を参照してください。"
116
116
117
117
#: ../../library/csv.rst:71
@@ -153,10 +153,10 @@ msgstr ""
153
153
"ユーザが与えたデータをデリミタで区切られた文字列に変換し、与えられたファイルオブジェクトに書き込むための writer オブジェクトを返します。 "
154
154
"*csvfile* は :func:`write` メソッドを持つ任意のオブジェクトです。 *csvfile* がファイルオブジェクトの場合、 "
155
155
"``newline=''`` として開くべきです [1]_ 。オプションとして *dialect* "
156
- "引数を与えることができ、利用するCSV表現形式(dialect)を指定することができます。 *dialect* パラメタは "
156
+ "引数を与えることができ、利用するCSV表現形式(dialect)を指定することができます。 *dialect* パラメータは "
157
157
":class:`Dialect` クラスのサブクラスのインスタンスか、 :func:`list_dialects` "
158
158
"関数が返す文字列の1つにすることができます。別のオプション引数である *fmtparams* "
159
- "キーワード引数は、現在の表現形式における個々の書式パラメタを上書きするために与えることができます 。dialect と書式パラメタについての詳細は 、 "
159
+ "キーワード引数は、現在の表現形式における個々の書式パラメータを上書きするために与えることができます 。dialect と書式パラメータについての詳細は 、 "
160
160
":ref:`csv-fmt-params` 節を参照してください。 DB API を実装するモジュールとのインタフェースを可能な限り容易にするために、 "
161
161
":const:`None` は空文字列として書き込まれます。この処理は可逆な変換ではありませんが、SQL で NULL データ値を CSV "
162
162
"にダンプする処理を、 ``cursor.fetch*`` "
@@ -173,8 +173,8 @@ msgid ""
173
173
msgstr ""
174
174
"*dialect* を *name* と関連付けます。 *name* は文字列でなければなりません。表現形式(dialect)は "
175
175
":class:`Dialect` のサブクラスを渡すか、またはキーワード引数 *fmtparams* "
176
- "、もしくは両方で指定できますが、キーワード引数の方が優先されます。表現形式と書式化パラメタについての詳細は 、 :ref:`csv-fmt-params` "
177
- " 節を参照してください。"
176
+ "、もしくは両方で指定できますが、キーワード引数の方が優先されます。表現形式と書式化パラメータについての詳細は 、 :ref:`csv-fmt-"
177
+ "params` 節を参照してください。"
178
178
179
179
#: ../../library/csv.rst:126
180
180
msgid ""
@@ -213,6 +213,8 @@ msgid ""
213
213
"information in each row to an :mod:`OrderedDict <collections.OrderedDict>` "
214
214
"whose keys are given by the optional *fieldnames* parameter."
215
215
msgstr ""
216
+ "通常の reader のように動作しますが、個々の列の情報を :mod:`OrderedDict <collections.OrderedDict>` "
217
+ "にマップするオブジェクトを生成します。マップのキーは省略可能な *fieldnames* パラメータで与えられます。"
216
218
217
219
#: ../../library/csv.rst:156
218
220
msgid ""
@@ -221,6 +223,9 @@ msgid ""
221
223
"fieldnames. Regardless of how the fieldnames are determined, the ordered "
222
224
"dictionary preserves their original ordering."
223
225
msgstr ""
226
+ "*fieldnames* パラメータは :term:`sequence` です。 *fieldnames* が省略された場合、ファイル *f* "
227
+ "の最初の列の値が fieldnames として使われます。 *fieldnames* がどのように決定されるかに関わらず、整列された (ordered)"
228
+ " 辞書はそれらのオリジナルの順番を維持します。"
224
229
225
230
#: ../../library/csv.rst:161
226
231
msgid ""
@@ -229,16 +234,19 @@ msgid ""
229
234
" ``None``). If a non-blank row has fewer fields than fieldnames, the "
230
235
"missing values are filled-in with ``None``."
231
236
msgstr ""
237
+ "列が fieldnames より多くのフィールドを持っていた場合、残りのデータはリストに入れられて、 *restkey* により指定されたフィールド名 "
238
+ "(デフォルトでは ``None``) で保存されます。非ブランクの列が fieldnames よりも少ないフィールドしか持たない場合、不明の値は "
239
+ "``None`` によって埋められます。"
232
240
233
241
#: ../../library/csv.rst:166
234
242
msgid ""
235
243
"All other optional or keyword arguments are passed to the underlying "
236
244
":class:`reader` instance."
237
- msgstr ""
245
+ msgstr "その他の省略可能またはキーワード形式のパラメータは、ベースになっている :class:`reader` インスタンスに渡されます。 "
238
246
239
247
#: ../../library/csv.rst:169
240
248
msgid "Returned rows are now of type :class:`OrderedDict`."
241
- msgstr ""
249
+ msgstr "返される列の型は :class:`OrderedDict` になりました。 "
242
250
243
251
#: ../../library/csv.rst:190
244
252
msgid ""
@@ -255,6 +263,13 @@ msgid ""
255
263
"other optional or keyword arguments are passed to the underlying "
256
264
":class:`writer` instance."
257
265
msgstr ""
266
+ "通常の writer のように動作しますが、辞書を出力行にマップするオブジェクトを生成します。 *fieldnames* "
267
+ "パラメータは、:meth:`writerow` メソッドに渡された辞書の値がどのような順番でファイル *f* に書かれるかを指定するキーの "
268
+ ":mod:`sequence <collections.abc>` です。 :meth:`writerow` メソッドに渡された辞書に "
269
+ "*fieldnames* には存在しないキーが含まれている場合、オプションの *extrasaction* "
270
+ "パラメータによってどんな動作を行うかが指定されます。この値がデフォルト値である ``'raise'`` に設定されている場合、 "
271
+ ":exc:`ValueError` が送出されます。 ``'ignore'`` "
272
+ "に設定されている場合、辞書の余分な値は無視されます。その他のパラメータはベースになっている :class:`writer` インスタンスに渡されます。"
258
273
259
274
#: ../../library/csv.rst:205
260
275
msgid ""
@@ -263,6 +278,9 @@ msgid ""
263
278
"objects are not ordered, there is not enough information available to deduce"
264
279
" the order in which the row should be written to file *f*."
265
280
msgstr ""
281
+ ":class:`DictReader` クラスとは異なり、 :class:`DictWriter` の *fieldnames* "
282
+ "パラメータは省略可能ではありません。 Pythonの :class:`dict` オブジェクトは整列されていないので、列をファイル *f* "
283
+ "に書き込む際の順序を推定するために十分な情報が不足しているためです。"
266
284
267
285
#: ../../library/csv.rst:226
268
286
msgid ""
@@ -271,7 +289,7 @@ msgid ""
271
289
":class:`reader` or :class:`writer` instance."
272
290
msgstr ""
273
291
":class:`Dialect` クラスはコンテナクラスで、基本的な用途としては、その属性を特定の :class:`reader` や "
274
- ":class:`writer` インスタンスのパラメタを定義するために用います 。"
292
+ ":class:`writer` インスタンスのパラメータを定義するために用います 。"
275
293
276
294
#: ../../library/csv.rst:233
277
295
msgid ""
@@ -314,8 +332,8 @@ msgid ""
314
332
" the parameters found. If the optional *delimiters* parameter is given, it "
315
333
"is interpreted as a string containing possible valid delimiter characters."
316
334
msgstr ""
317
- "与えられた *sample* を解析し、発見されたパラメタを反映した :class:`Dialect` サブクラスを返します。オプションの "
318
- "*delimiters* パラメタを与えた場合 、有効なデリミタ文字を含んでいるはずの文字列として解釈されます。"
335
+ "与えられた *sample* を解析し、発見されたパラメータを反映した :class:`Dialect` サブクラスを返します。オプションの "
336
+ "*delimiters* パラメータを与えた場合 、有効なデリミタ文字を含んでいるはずの文字列として解釈されます。"
319
337
320
338
#: ../../library/csv.rst:268
321
339
msgid ""
@@ -380,7 +398,7 @@ msgstr "全ての関数において、エラーが検出された際に送出さ
380
398
381
399
#: ../../library/csv.rst:320
382
400
msgid "Dialects and Formatting Parameters"
383
- msgstr "Dialect クラスと書式化パラメタ "
401
+ msgstr "Dialect クラスと書式化パラメータ "
384
402
385
403
#: ../../library/csv.rst:322
386
404
msgid ""
@@ -394,11 +412,11 @@ msgid ""
394
412
" also specify individual formatting parameters, which have the same names as"
395
413
" the attributes defined below for the :class:`Dialect` class."
396
414
msgstr ""
397
- "レコードに対する入出力形式の指定をより簡単にするために、特定の書式化パラメタは表現形式 (dialect) にまとめてグループ化されます。表現形式は "
415
+ "レコードに対する入出力形式の指定をより簡単にするために、特定の書式化パラメータは表現形式 (dialect) にまとめてグループ化されます。表現形式は "
398
416
":class:`Dialect` クラスのサブクラスで、様々なクラス特有のメソッドと、 :meth:`validate` メソッドを一つ持っています。 "
399
417
":class:`reader` または :class:`writer` オブジェクトを生成するとき、プログラマは文字列または "
400
- ":class:`Dialect` クラスのサブクラスを表現形式パラメタとして渡さなければなりません 。さらに、 *dialect* "
401
- "パラメタの代りに、プログラマは上で定義されている属性と同じ名前を持つ個々の書式化パラメタを :class:`Dialect` "
418
+ ":class:`Dialect` クラスのサブクラスを表現形式パラメータとして渡さなければなりません 。さらに、 *dialect* "
419
+ "パラメータの代りに、プログラマは上で定義されている属性と同じ名前を持つ個々の書式化パラメータを :class:`Dialect` "
402
420
"クラスに指定することができます。"
403
421
404
422
#: ../../library/csv.rst:332
@@ -563,7 +581,7 @@ msgstr ""
563
581
msgid ""
564
582
"Write the *row* parameter to the writer's file object, formatted according "
565
583
"to the current dialect."
566
- msgstr "*row* パラメタを現在の表現形式に基づいて書式化し 、 writer のファイルオブジェクトに書き込みます。"
584
+ msgstr "*row* パラメータを現在の表現形式に基づいて書式化し 、 writer のファイルオブジェクトに書き込みます。"
567
585
568
586
#: ../../library/csv.rst:448
569
587
msgid "Added support of arbitrary iterables."
0 commit comments