-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathzipimport.po
More file actions
303 lines (265 loc) · 12.6 KB
/
Copy pathzipimport.po
File metadata and controls
303 lines (265 loc) · 12.6 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
# 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
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-08-01 14:54+0000\n"
"PO-Revision-Date: 2025-09-16 00:02+0000\n"
"Last-Translator: python-doc bot, 2025\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/zipimport.rst:2
msgid ":mod:`!zipimport` --- Import modules from Zip archives"
msgstr ":mod:`!zipimport` --- Zip アーカイブからモジュールをインポートする"
#: ../../library/zipimport.rst:7
msgid "**Source code:** :source:`Lib/zipimport.py`"
msgstr "**ソースコード:** :source:`Lib/zipimport.py`"
#: ../../library/zipimport.rst:11
msgid ""
"This module adds the ability to import Python modules (:file:`\\*.py`, :file:"
"`\\*.pyc`) and packages from ZIP-format archives. It is usually not needed "
"to use the :mod:`!zipimport` module explicitly; it is automatically used by "
"the built-in :keyword:`import` mechanism for :data:`sys.path` items that are "
"paths to ZIP archives."
msgstr ""
#: ../../library/zipimport.rst:17
msgid ""
"Typically, :data:`sys.path` is a list of directory names as strings. This "
"module also allows an item of :data:`sys.path` to be a string naming a ZIP "
"file archive. The ZIP archive can contain a subdirectory structure to "
"support package imports, and a path within the archive can be specified to "
"only import from a subdirectory. For example, the path :file:`example.zip/"
"lib/` would only import from the :file:`lib/` subdirectory within the "
"archive."
msgstr ""
"普通、 :data:`sys.path` はディレクトリ名の文字列からなるリストです。このモ"
"ジュールを使うと、 :data:`sys.path` の要素に ZIP ファイルアーカイブを示す文字"
"列を使えるようになります。ZIP アーカイブにはサブディレクトリ構造を含めること"
"ができ、パッケージの import をサポートさせたり、アーカイブ内のパスを指定して"
"サブディレクトリ下から import を行わせたりできます。例えば、 :file:`example."
"zip/lib/` のように指定すると、アーカイブ中の :file:`lib/` サブディレクトリ下"
"だけから import を行います。"
#: ../../library/zipimport.rst:24
msgid ""
"Any files may be present in the ZIP archive, but importers are only invoked "
"for :file:`.py` and :file:`.pyc` files. ZIP import of dynamic modules (:"
"file:`.pyd`, :file:`.so`) is disallowed. Note that if an archive only "
"contains :file:`.py` files, Python will not attempt to modify the archive by "
"adding the corresponding :file:`.pyc` file, meaning that if a ZIP archive "
"doesn't contain :file:`.pyc` files, importing may be rather slow."
msgstr ""
"ZIP アーカイブ内にはどんなファイルを置いてもかまいませんが、インポートは :"
"file:`.py` および :file:`.pyc` ファイルにのみ呼び出されます。動的モジュール "
"(:file:`.pyd`, :file:`.so`) の ZIP インポートは行えません。アーカイブ内に :"
"file:`.py` ファイルしかない場合、 Python は対応する :file:`.pyc` ファイルを追"
"加してアーカイブを変更しようとはしません。つまり、 ZIP アーカイブ内に :file:"
"`.pyc` がない場合は、インポートが多少遅くなるかもしれないので注意してくださ"
"い。"
#: ../../library/zipimport.rst:31
msgid "Zstandard (*zstd*) compressed zip file entries are supported."
msgstr ""
#: ../../library/zipimport.rst:34
msgid "ZIP64 is supported"
msgstr ""
#: ../../library/zipimport.rst:37
msgid "Previously, ZIP archives with an archive comment were not supported."
msgstr ""
"以前は、アーカイブコメント付きの ZIP アーカイブはサポートされていませんでし"
"た。"
#: ../../library/zipimport.rst:42
msgid ""
"`PKZIP Application Note <https://pkware.cachefly.net/webdocs/casestudies/"
"APPNOTE.TXT>`_"
msgstr ""
"`PKZIP Application Note <https://pkware.cachefly.net/webdocs/casestudies/"
"APPNOTE.TXT>`_"
#: ../../library/zipimport.rst:43
msgid ""
"Documentation on the ZIP file format by Phil Katz, the creator of the format "
"and algorithms used."
msgstr ""
"ZIP ファイルフォーマットおよびアルゴリズムを作成した Phil Katz によるドキュメ"
"ント。"
#: ../../library/zipimport.rst:46
msgid ":pep:`273` - Import Modules from Zip Archives"
msgstr ":pep:`273` - Zip アーカイブからモジュールをインポートする"
#: ../../library/zipimport.rst:47
msgid ""
"Written by James C. Ahlstrom, who also provided an implementation. Python "
"2.3 follows the specification in :pep:`273`, but uses an implementation "
"written by Just van Rossum that uses the import hooks described in :pep:"
"`302`."
msgstr ""
"このモジュールの実装も行った、James C. Ahlstrom による PEP です。Python 2.3 "
"は :pep:`273` の仕様に従っていますが、Just van Rossum の書いた import フック"
"による実装を使っています。インポートフックは :pep:`302` で解説されています。"
#: ../../library/zipimport.rst:51
msgid ":mod:`importlib` - The implementation of the import machinery"
msgstr ":mod:`importlib` - :keyword:`import` の実装"
#: ../../library/zipimport.rst:52
msgid ""
"Package providing the relevant protocols for all importers to implement."
msgstr ""
#: ../../library/zipimport.rst:56
msgid "This module defines an exception:"
msgstr "このモジュールでは例外を一つ定義しています:"
#: ../../library/zipimport.rst:60
msgid ""
"Exception raised by zipimporter objects. It's a subclass of :exc:"
"`ImportError`, so it can be caught as :exc:`ImportError`, too."
msgstr ""
"zipimporter オブジェクトが送出する例外です。 :exc:`ImportError` のサブクラス"
"なので、 :exc:`ImportError` としても捕捉できます。"
#: ../../library/zipimport.rst:67
msgid "zipimporter Objects"
msgstr "zipimporter オブジェクト"
#: ../../library/zipimport.rst:69
msgid ":class:`zipimporter` is the class for importing ZIP files."
msgstr ":class:`zipimporter` は ZIP ファイルを import するためのクラスです。"
#: ../../library/zipimport.rst:73
msgid ""
"Create a new zipimporter instance. *archivepath* must be a path to a ZIP "
"file, or to a specific path within a ZIP file. For example, an "
"*archivepath* of :file:`foo/bar.zip/lib` will look for modules in the :file:"
"`lib` directory inside the ZIP file :file:`foo/bar.zip` (provided that it "
"exists)."
msgstr ""
"新たな zipimporter インスタンスを生成します。 *archivepath* は ZIP ファイルへ"
"のパスまたは ZIP ファイル中の特定のパスへのパスでなければなりません。たとえ"
"ば、 :file:`foo/bar.zip/lib` という *archivepath* の場合、 :file:`foo/bar."
"zip` という ZIP ファイルの中の :file:`lib` ディレクトリにあるモジュールを (存"
"在するものとして) 検索します。"
#: ../../library/zipimport.rst:78
msgid ""
":exc:`ZipImportError` is raised if *archivepath* doesn't point to a valid "
"ZIP archive."
msgstr ""
"*archivepath* が有効な ZIP アーカイブを指していない場合、 :exc:"
"`ZipImportError` を送出します。"
#: ../../library/zipimport.rst:83
msgid ""
"Methods ``find_loader()`` and ``find_module()``, deprecated in 3.10 are now "
"removed. Use :meth:`find_spec` instead."
msgstr ""
#: ../../library/zipimport.rst:88
msgid ""
"Implementation of :meth:`importlib.abc.Loader.create_module` that returns :"
"const:`None` to explicitly request the default semantics."
msgstr ""
#: ../../library/zipimport.rst:96
msgid "Implementation of :meth:`importlib.abc.Loader.exec_module`."
msgstr ":meth:`importlib.abc.Loader.exec_module` の実装です。"
#: ../../library/zipimport.rst:103
msgid "An implementation of :meth:`importlib.abc.PathEntryFinder.find_spec`."
msgstr ":meth:`importlib.abc.PathEntryFinder.find_spec` の実装です。"
#: ../../library/zipimport.rst:110
msgid ""
"Return the code object for the specified module. Raise :exc:`ZipImportError` "
"if the module couldn't be imported."
msgstr ""
"*fullname* に指定したモジュールのコードオブジェクトを返します。モジュールがイ"
"ンポートできなかった場合には :exc:`ZipImportError` を送出します。"
#: ../../library/zipimport.rst:116
msgid ""
"Return the data associated with *pathname*. Raise :exc:`OSError` if the file "
"wasn't found."
msgstr ""
"*pathname* に関連付けられたデータを返します。該当するファイルが見つからなかっ"
"た場合には :exc:`OSError` を送出します。"
#: ../../library/zipimport.rst:119
msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`."
msgstr ""
"以前は :exc:`IOError` が送出されました; それは現在 :exc:`OSError` のエイリア"
"スです。"
#: ../../library/zipimport.rst:125
msgid ""
"Return the value ``__file__`` would be set to if the specified module was "
"imported. Raise :exc:`ZipImportError` if the module couldn't be imported."
msgstr ""
"指定されたモジュールが import された場合、そのモジュールに設定した "
"``__file__`` の値を返します。モジュールがインポートできなかった場合、 :exc:"
"`ZipImportError` を送出します。"
#: ../../library/zipimport.rst:134
msgid ""
"Return the source code for the specified module. Raise :exc:`ZipImportError` "
"if the module couldn't be found, return :const:`None` if the archive does "
"contain the module, but has no source for it."
msgstr ""
"*fullname* で指定されたモジュールのソースコードを返します。モジュールが見つか"
"らない場合、:exc:`ZipImportError` を送出します。アーカイブにはモジュールがあ"
"るもののソースコードがない場合、 :const:`None` を返します。"
#: ../../library/zipimport.rst:142
msgid ""
"Return ``True`` if the module specified by *fullname* is a package. Raise :"
"exc:`ZipImportError` if the module couldn't be found."
msgstr ""
"*fullname* で指定されたモジュールがパッケージの場合 ``True`` を返します。モ"
"ジュールを見つけられない場合 :exc:`ZipImportError` を送出します。"
#: ../../library/zipimport.rst:148
msgid ""
"Clear out the internal cache of information about files found within the ZIP "
"archive."
msgstr ""
#: ../../library/zipimport.rst:156
msgid ""
"The file name of the importer's associated ZIP file, without a possible "
"subpath."
msgstr ""
"importer に関連付けられた ZIP ファイルのファイル名です。サブパスは含まれませ"
"ん。"
#: ../../library/zipimport.rst:162
msgid ""
"The subpath within the ZIP file where modules are searched. This is the "
"empty string for zipimporter objects which point to the root of the ZIP file."
msgstr ""
"モジュールを検索する ZIP ファイル中のサブパスです。この文字列は ZIP ファイル"
"のルートを指している zipimporter オブジェクトでは空です。"
#: ../../library/zipimport.rst:166
msgid ""
"The :attr:`archive` and :attr:`prefix` attributes, when combined with a "
"slash, equal the original *archivepath* argument given to the :class:"
"`zipimporter` constructor."
msgstr ""
"スラッシュでつなげると、:attr:`archive` と :attr:`prefix` 属性は :class:"
"`zipimporter` コンストラクタに渡された元々の *archivepath* 引数と等しくなりま"
"す。"
#: ../../library/zipimport.rst:174
msgid "Examples"
msgstr "使用例"
#: ../../library/zipimport.rst:176
msgid ""
"Here is an example that imports a module from a ZIP archive - note that the :"
"mod:`!zipimport` module is not explicitly used."
msgstr ""
#: ../../library/zipimport.rst:179
msgid ""
"$ unzip -l example_archive.zip\n"
"Archive: example_archive.zip\n"
" Length Date Time Name\n"
" -------- ---- ---- ----\n"
" 8467 01-01-00 12:30 example.py\n"
" -------- -------\n"
" 8467 1 file"
msgstr ""
#: ../../library/zipimport.rst:189
msgid ""
">>> import sys\n"
">>> # Add the archive to the front of the module search path\n"
">>> sys.path.insert(0, 'example_archive.zip')\n"
">>> import example\n"
">>> example.__file__\n"
"'example_archive.zip/example.py'"
msgstr ""