-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathgzip.po
More file actions
509 lines (438 loc) · 20.4 KB
/
gzip.po
File metadata and controls
509 lines (438 loc) · 20.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
# Takanori Suzuki <takanori@takanory.net>, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-19 14:42+0000\n"
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
"Last-Translator: Takanori Suzuki <takanori@takanory.net>, 2026\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../library/gzip.rst:2
msgid ":mod:`!gzip` --- Support for :program:`gzip` files"
msgstr ":mod:`!gzip` --- :program:`gzip` ファイルのサポート"
#: ../../library/gzip.rst:7
msgid "**Source code:** :source:`Lib/gzip.py`"
msgstr "**ソースコード:** :source:`Lib/gzip.py`"
#: ../../library/gzip.rst:11
msgid ""
"This module provides a simple interface to compress and decompress files "
"just like the GNU programs :program:`gzip` and :program:`gunzip` would."
msgstr ""
"このモジュールは、GNU の :program:`gzip` や :program:`gunzip` のようにファイ"
"ルを圧縮、展開するシンプルなインターフェイスを提供しています。"
#: ../../includes/optional-module.rst:1
msgid ""
"This is an :term:`optional module`. If it is missing from your copy of "
"CPython, look for documentation from your distributor (that is, whoever "
"provided Python to you). If you are the distributor, see :ref:`optional-"
"module-requirements`."
msgstr ""
#: ../../library/gzip.rst:16
msgid "The data compression is provided by the :mod:`zlib` module."
msgstr "データ圧縮は :mod:`zlib` モジュールで提供されています。"
#: ../../library/gzip.rst:18
msgid ""
"The :mod:`!gzip` module provides the :class:`GzipFile` class, as well as "
"the :func:`.open`, :func:`compress` and :func:`decompress` convenience "
"functions. The :class:`GzipFile` class reads and writes :program:`gzip`\\ -"
"format files, automatically compressing or decompressing the data so that it "
"looks like an ordinary :term:`file object`."
msgstr ""
#: ../../library/gzip.rst:24
msgid ""
"Note that additional file formats which can be decompressed by the :program:"
"`gzip` and :program:`gunzip` programs, such as those produced by :program:"
"`compress` and :program:`pack`, are not supported by this module."
msgstr ""
":program:`compress` や :program:`pack` 等によって作成され、:program:`gzip` "
"や :program:`gunzip` が展開できる他のファイル形式についてはこのモジュールは対"
"応していないので注意してください。"
#: ../../library/gzip.rst:28
msgid "The module defines the following items:"
msgstr "このモジュールは以下の項目を定義しています:"
#: ../../library/gzip.rst:33
msgid ""
"Open a gzip-compressed file in binary or text mode, returning a :term:`file "
"object`."
msgstr ""
"gzip 圧縮ファイルをバイナリまたはテキストモードで開き、:term:`ファイルオブ"
"ジェクト <file object>` を返します。"
#: ../../library/gzip.rst:36
msgid ""
"The *filename* argument can be an actual filename (a :class:`str` or :class:"
"`bytes` object), or an existing file object to read from or write to."
msgstr ""
"引数 *filename* には実際のファイル名 (:class:`str` または :class:`bytes` オブ"
"ジェクト) か、既存のファイルオブジェクトを指定します。"
#: ../../library/gzip.rst:39
msgid ""
"The *mode* argument can be any of ``'r'``, ``'rb'``, ``'a'``, ``'ab'``, "
"``'w'``, ``'wb'``, ``'x'`` or ``'xb'`` for binary mode, or ``'rt'``, "
"``'at'``, ``'wt'``, or ``'xt'`` for text mode. The default is ``'rb'``."
msgstr ""
"引数 *mode* には、バイナリモード用に ``'r'``、``'rb'``、``'a'``、``'ab'``、"
"``'w'``、``'wb'``、``'x'``、または ``'xb'``、テキストモード用に ``'rt'``、"
"``'at'``、``'wt'``、または ``'xt'`` を指定できます。デフォルトは ``'rb'`` で"
"す。"
#: ../../library/gzip.rst:43
msgid ""
"The *compresslevel* argument is an integer from 0 to 9, as for the :class:"
"`GzipFile` constructor."
msgstr ""
"引数 *compresslevel* は :class:`GzipFile` コンストラクタと同様に 0 から 9 の"
"整数を取ります。"
#: ../../library/gzip.rst:46
msgid ""
"For binary mode, this function is equivalent to the :class:`GzipFile` "
"constructor: ``GzipFile(filename, mode, compresslevel)``. In this case, the "
"*encoding*, *errors* and *newline* arguments must not be provided."
msgstr ""
"バイナリモードでは、この関数は :class:`GzipFile` コンストラクタ "
"``GzipFile(filename, mode, compresslevel)`` と等価です。この時、引数 "
"*encoding*、*errors*、および *newline* を指定してはいけません。"
#: ../../library/gzip.rst:50
msgid ""
"For text mode, a :class:`GzipFile` object is created, and wrapped in an :"
"class:`io.TextIOWrapper` instance with the specified encoding, error "
"handling behavior, and line ending(s)."
msgstr ""
"テキストモードでは、:class:`GzipFile` オブジェクトが作成され、指定されたエン"
"コーディング、エラーハンドラの挙動、および改行文字で :class:`io."
"TextIOWrapper` インスタンスにラップされます。"
#: ../../library/gzip.rst:54
msgid ""
"Added support for *filename* being a file object, support for text mode, and "
"the *encoding*, *errors* and *newline* arguments."
msgstr ""
"*filename* にファイルオブジェクト指定のサポート、テキストモードのサポート、お"
"よび引数に *encoding*、*errors*、および *newline* を追加しました。"
#: ../../library/gzip.rst:58
msgid "Added support for the ``'x'``, ``'xb'`` and ``'xt'`` modes."
msgstr " ``'x'``、``'xb'``、``'xt'`` モードのサポートが追加されました。"
#: ../../library/gzip.rst:61 ../../library/gzip.rst:175
msgid "Accepts a :term:`path-like object`."
msgstr ":term:`path-like object` を受け入れるようになりました。"
#: ../../library/gzip.rst:66
msgid ""
"An exception raised for invalid gzip files. It inherits from :exc:"
"`OSError`. :exc:`EOFError` and :exc:`zlib.error` can also be raised for "
"invalid gzip files."
msgstr ""
#: ../../library/gzip.rst:74
msgid ""
"Constructor for the :class:`GzipFile` class, which simulates most of the "
"methods of a :term:`file object`, with the exception of the :meth:`~io."
"IOBase.truncate` method. At least one of *fileobj* and *filename* must be "
"given a non-trivial value."
msgstr ""
":class:`GzipFile` クラスのコンストラクタです。:class:`GzipFile` オブジェクト"
"は :meth:`~io.IOBase.truncate` メソッドを除くほとんどの :term:`ファイルオブ"
"ジェクト <file object>` のメソッドをシミュレートします。少なくとも *fileobj* "
"および *filename* は有効な値でなければなりません。"
#: ../../library/gzip.rst:79
msgid ""
"The new class instance is based on *fileobj*, which can be a regular file, "
"an :class:`io.BytesIO` object, or any other object which simulates a file. "
"It defaults to ``None``, in which case *filename* is opened to provide a "
"file object."
msgstr ""
"クラスの新しいインスタンスは、 *fileobj* に基づいて作成されます。 *fileobj* "
"は通常のファイル、 :class:`io.BytesIO` オブジェクト、 そしてその他ファイルを"
"シミュレートできるオブジェクトでかまいません。 値はデフォルトでは *None* で、"
"その場合ファイルオブジェクトを生成するために *filename* を開きます。"
#: ../../library/gzip.rst:84
msgid ""
"When *fileobj* is not ``None``, the *filename* argument is only used to be "
"included in the :program:`gzip` file header, which may include the original "
"filename of the uncompressed file. It defaults to the filename of "
"*fileobj*, if discernible; otherwise, it defaults to the empty string, and "
"in this case the original filename is not included in the header."
msgstr ""
"*fileobj* が ``None`` でない場合、*filename* 引数は :program:`gzip` ファイル"
"ヘッダにインクルードされることのみに使用されます。:program:`gzip` ファイル"
"ヘッダは圧縮されていないファイルの元の名前をインクルードするかもしれません。"
"認識可能な場合、規定値は *fileobj* のファイル名です。そうでない場合、規定値は"
"空の文字列で、元のファイル名はヘッダにはインクルードされません。"
#: ../../library/gzip.rst:90
msgid ""
"The *mode* argument can be any of ``'r'``, ``'rb'``, ``'a'``, ``'ab'``, "
"``'w'``, ``'wb'``, ``'x'``, or ``'xb'``, depending on whether the file will "
"be read or written. The default is the mode of *fileobj* if discernible; "
"otherwise, the default is ``'rb'``. In future Python releases the mode of "
"*fileobj* will not be used. It is better to always specify *mode* for "
"writing."
msgstr ""
#: ../../library/gzip.rst:96
msgid ""
"Note that the file is always opened in binary mode. To open a compressed "
"file in text mode, use :func:`.open` (or wrap your :class:`GzipFile` with "
"an :class:`io.TextIOWrapper`)."
msgstr ""
"ファイルは常にバイナリモードで開かれることに注意してください。圧縮ファイルを"
"テキストモードで開く場合、:func:`.open` (または :class:`GzipFile` を :class:"
"`io.TextIOWrapper` でラップしたオブジェクト) を使ってください。"
#: ../../library/gzip.rst:100
msgid ""
"The *compresslevel* argument is an integer from ``0`` to ``9`` controlling "
"the level of compression; ``1`` is fastest and produces the least "
"compression, and ``9`` is slowest and produces the most compression. ``0`` "
"is no compression. The default is ``9``."
msgstr ""
"引数 *compresslevel* は ``0`` から ``9`` の整数を取り、圧縮レベルを制御しま"
"す; ``1`` は最も高速で最小限の圧縮を行い、``9`` は最も低速ですが最大限の圧縮"
"を行います。``0`` は圧縮しません。デフォルトは ``9`` です。"
#: ../../library/gzip.rst:105
msgid ""
"The optional *mtime* argument is the timestamp requested by gzip. The time "
"is in Unix format, i.e., seconds since 00:00:00 UTC, January 1, 1970. If "
"*mtime* is omitted or ``None``, the current time is used. Use *mtime* = 0 to "
"generate a compressed stream that does not depend on creation time."
msgstr ""
#: ../../library/gzip.rst:110
msgid ""
"See below for the :attr:`mtime` attribute that is set when decompressing."
msgstr ""
#: ../../library/gzip.rst:112
msgid ""
"Calling a :class:`GzipFile` object's :meth:`!close` method does not close "
"*fileobj*, since you might wish to append more material after the compressed "
"data. This also allows you to pass an :class:`io.BytesIO` object opened for "
"writing as *fileobj*, and retrieve the resulting memory buffer using the :"
"class:`io.BytesIO` object's :meth:`~io.BytesIO.getvalue` method."
msgstr ""
"圧縮したデータの後ろにさらに何か追加したい場合もあるので、:class:`GzipFile` "
"オブジェクトの :meth:`!close` メソッド呼び出しは *fileobj* を閉じません。\n"
"このため、書き込みのためにオープンした :class:`io.BytesIO` オブジェクトを "
"*fileobj* として渡し、(:class:`GzipFile` を :meth:`close` した後に) :class:"
"`io.BytesIO` オブジェクトの :meth:`~io.BytesIO.getvalue` メソッドを使って書き"
"込んだデータの入っているメモリバッファを取得することができます。"
#: ../../library/gzip.rst:118
msgid ""
":class:`GzipFile` supports the :class:`io.BufferedIOBase` interface, "
"including iteration and the :keyword:`with` statement. Only the :meth:`~io."
"IOBase.truncate` method isn't implemented."
msgstr ""
":class:`GzipFile` は、イテレーションと :keyword:`with` 文を含む :class:`io."
"BufferedIOBase` インターフェイスをサポートしています。:meth:`~io.IOBase."
"truncate` メソッドのみ実装されていません。"
#: ../../library/gzip.rst:122
msgid ":class:`GzipFile` also provides the following method and attribute:"
msgstr ":class:`GzipFile` は以下のメソッドと属性も提供しています:"
#: ../../library/gzip.rst:126
msgid ""
"Read *n* uncompressed bytes without advancing the file position. The number "
"of bytes returned may be more or less than requested."
msgstr ""
"ファイル内の位置を移動せずに展開した *n* バイトを読み込みます。返されるバイト"
"数はほぼ要求した値になります。"
#: ../../library/gzip.rst:129
msgid ""
"While calling :meth:`peek` does not change the file position of the :class:"
"`GzipFile`, it may change the position of the underlying file object (e.g. "
"if the :class:`GzipFile` was constructed with the *fileobj* parameter)."
msgstr ""
":meth:`peek` の呼び出しでは :class:`GzipFile` のファイル位置は変わりません"
"が、下層のファイルオブジェクトの位置が変わる惧れがあります。(e.g. :class:"
"`GzipFile` が *fileobj* 引数で作成された場合)"
#: ../../library/gzip.rst:138
msgid "``'rb'`` for reading and ``'wb'`` for writing."
msgstr "``'rb'`` は読み込み用、 ``'wb'`` は書き込み用です。"
#: ../../library/gzip.rst:140
msgid "In previous versions it was an integer ``1`` or ``2``."
msgstr ""
#: ../../library/gzip.rst:145
msgid ""
"When decompressing, this attribute is set to the last timestamp in the most "
"recently read header. It is an integer, holding the number of seconds since "
"the Unix epoch (00:00:00 UTC, January 1, 1970). The initial value before "
"reading any headers is ``None``."
msgstr ""
#: ../../library/gzip.rst:152
msgid ""
"The path to the gzip file on disk, as a :class:`str` or :class:`bytes`. "
"Equivalent to the output of :func:`os.fspath` on the original input path, "
"with no other normalization, resolution or expansion."
msgstr ""
#: ../../library/gzip.rst:156
msgid ""
"Support for the :keyword:`with` statement was added, along with the *mtime* "
"constructor argument and :attr:`mtime` attribute."
msgstr ""
":keyword:`with` 文がサポートされました。*mtime* コンストラクタ引数と :attr:"
"`mtime` 属性が追加されました。"
#: ../../library/gzip.rst:160
msgid "Support for zero-padded and unseekable files was added."
msgstr ""
"ゼロパディングされたファイルやシーク出来ないファイルがサポートされました。"
#: ../../library/gzip.rst:163
msgid "The :meth:`io.BufferedIOBase.read1` method is now implemented."
msgstr ":meth:`io.BufferedIOBase.read1` メソッドを実装しました。"
#: ../../library/gzip.rst:166
msgid "Added support for the ``'x'`` and ``'xb'`` modes."
msgstr "``'x'`` ならびに ``'xb'`` モードがサポートされました。"
#: ../../library/gzip.rst:169
msgid ""
"Added support for writing arbitrary :term:`bytes-like objects <bytes-like "
"object>`. The :meth:`~io.BufferedIOBase.read` method now accepts an argument "
"of ``None``."
msgstr ""
"任意の :term:`バイトライクオブジェクト <bytes-like object>` の書き込みがサ"
"ポートされました。 :meth:`~io.BufferedIOBase.read` メソッドが ``None`` を引数"
"として受け取るようになりました。"
#: ../../library/gzip.rst:178
msgid ""
"Opening :class:`GzipFile` for writing without specifying the *mode* argument "
"is deprecated."
msgstr ""
#: ../../library/gzip.rst:182
msgid ""
"Remove the ``filename`` attribute, use the :attr:`~GzipFile.name` attribute "
"instead."
msgstr ""
#: ../../library/gzip.rst:189
msgid ""
"Compress the *data*, returning a :class:`bytes` object containing the "
"compressed data. *compresslevel* and *mtime* have the same meaning as in "
"the :class:`GzipFile` constructor above, but *mtime* defaults to 0 for "
"reproducible output."
msgstr ""
#: ../../library/gzip.rst:195
msgid "Added the *mtime* parameter for reproducible output."
msgstr ""
#: ../../library/gzip.rst:197
msgid ""
"Speed is improved by compressing all data at once instead of in a streamed "
"fashion. Calls with *mtime* set to ``0`` are delegated to :func:`zlib."
"compress` for better speed. In this situation the output may contain a gzip "
"header \"OS\" byte value other than 255 \"unknown\" as supplied by the "
"underlying zlib implementation."
msgstr ""
#: ../../library/gzip.rst:204
msgid ""
"The gzip header OS byte is guaranteed to be set to 255 when this function is "
"used as was the case in 3.10 and earlier."
msgstr ""
#: ../../library/gzip.rst:207
msgid ""
"The *mtime* parameter now defaults to 0 for reproducible output. For the "
"previous behaviour of using the current time, pass ``None`` to *mtime*."
msgstr ""
#: ../../library/gzip.rst:214
msgid ""
"Decompress the *data*, returning a :class:`bytes` object containing the "
"uncompressed data. This function is capable of decompressing multi-member "
"gzip data (multiple gzip blocks concatenated together). When the data is "
"certain to contain only one member the :func:`zlib.decompress` function with "
"*wbits* set to 31 is faster."
msgstr ""
#: ../../library/gzip.rst:221
msgid ""
"Speed is improved by decompressing members at once in memory instead of in a "
"streamed fashion."
msgstr ""
#: ../../library/gzip.rst:228
msgid "Examples of usage"
msgstr "使い方の例"
#: ../../library/gzip.rst:230
msgid "Example of how to read a compressed file::"
msgstr "圧縮されたファイルを読み込む例::"
#: ../../library/gzip.rst:232
msgid ""
"import gzip\n"
"with gzip.open('/home/joe/file.txt.gz', 'rb') as f:\n"
" file_content = f.read()"
msgstr ""
#: ../../library/gzip.rst:236
msgid "Example of how to create a compressed GZIP file::"
msgstr "GZIP 圧縮されたファイルを作成する例::"
#: ../../library/gzip.rst:238
msgid ""
"import gzip\n"
"content = b\"Lots of content here\"\n"
"with gzip.open('/home/joe/file.txt.gz', 'wb') as f:\n"
" f.write(content)"
msgstr ""
#: ../../library/gzip.rst:243
msgid "Example of how to GZIP compress an existing file::"
msgstr "既存のファイルを GZIP 圧縮する例::"
#: ../../library/gzip.rst:245
msgid ""
"import gzip\n"
"import shutil\n"
"with open('/home/joe/file.txt', 'rb') as f_in:\n"
" with gzip.open('/home/joe/file.txt.gz', 'wb') as f_out:\n"
" shutil.copyfileobj(f_in, f_out)"
msgstr ""
#: ../../library/gzip.rst:251
msgid "Example of how to GZIP compress a binary string::"
msgstr "バイナリ文字列を GZIP 圧縮する例::"
#: ../../library/gzip.rst:253
msgid ""
"import gzip\n"
"s_in = b\"Lots of content here\"\n"
"s_out = gzip.compress(s_in)"
msgstr ""
#: ../../library/gzip.rst:259
msgid "Module :mod:`zlib`"
msgstr ":mod:`zlib` モジュール"
#: ../../library/gzip.rst:260
msgid ""
"The basic data compression module needed to support the :program:`gzip` file "
"format."
msgstr ""
":program:`gzip` ファイル形式のサポートを行うために必要な基本ライブラリモ"
"ジュール。"
#: ../../library/gzip.rst:263
msgid ""
"In case gzip (de)compression is a bottleneck, the `python-isal`_ package "
"speeds up (de)compression with a mostly compatible API."
msgstr ""
#: ../../library/gzip.rst:273
msgid "Command-line interface"
msgstr "コマンドライン・インターフェース"
#: ../../library/gzip.rst:275
msgid ""
"The :mod:`!gzip` module provides a simple command line interface to compress "
"or decompress files."
msgstr ""
#: ../../library/gzip.rst:278
msgid "Once executed the :mod:`!gzip` module keeps the input file(s)."
msgstr ""
#: ../../library/gzip.rst:282
msgid ""
"Add a new command line interface with a usage. By default, when you will "
"execute the CLI, the default compression level is 6."
msgstr ""
#: ../../library/gzip.rst:286
msgid "Command-line options"
msgstr "コマンドラインオプション"
#: ../../library/gzip.rst:290
msgid "If *file* is not specified, read from :data:`sys.stdin`."
msgstr ""
#: ../../library/gzip.rst:294
msgid "Indicates the fastest compression method (less compression)."
msgstr ""
#: ../../library/gzip.rst:298
msgid "Indicates the slowest compression method (best compression)."
msgstr ""
#: ../../library/gzip.rst:302
msgid "Decompress the given file."
msgstr ""
#: ../../library/gzip.rst:306
msgid "Show the help message."
msgstr "ヘルプメッセージを出力します"