GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-docs-ja/library/email.contentmanager.po at 3.14 · python/python-docs-ja

Expand file tree

/

email.contentmanager.po

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
370 lines (328 loc) · 18.1 KB
/

email.contentmanager.po

Copy path

File metadata and controls

370 lines (328 loc) · 18.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
# 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-10-15 17:56+0000\n"
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
"Last-Translator: python-doc bot, 2025\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid ":mod:`!email.contentmanager`: Managing MIME Content"
msgstr ":mod:`!email.contentmanager`: MIME コンテンツの管理"
#: ../../library/email.contentmanager.rst:7
msgid "**Source code:** :source:`Lib/email/contentmanager.py`"
msgstr "**ソースコード:** :source:`Lib/email/contentmanager.py`"
#: ../../library/email.contentmanager.rst:11
msgid "[1]_"
msgstr "[1]_"
msgid ""
"Base class for content managers. Provides the standard registry mechanisms "
"to register converters between MIME content and other representations, as "
"well as the ``get_content`` and ``set_content`` dispatch methods."
msgstr ""
"コンテンツマネージャーの基底クラスです。\n"
"MIME コンテンツと他の表現との変換処理を登録する標準のレジストリ機構と、処理を"
"振り分ける ``get_content()``、``set_content()`` メソッドを提供します。"
msgid ""
"Look up a handler function based on the ``mimetype`` of *msg* (see next "
"paragraph), call it, passing through all arguments, and return the result of "
"the call. The expectation is that the handler will extract the payload from "
"*msg* and return an object that encodes information about the extracted data."
msgstr ""
"*msg* の ``mimetype`` に基づいてハンドラー関数を探し (次の段落を参照)、すべて"
"の引数をそのまま渡して呼び出し、その結果を返します。\n"
"ハンドラーは *msg* からペイロードを抽出し、抽出したデータの情報を表すオブジェ"
"クトを返すことを想定しています。"
msgid ""
"To find the handler, look for the following keys in the registry, stopping "
"with the first one found:"
msgstr ""
"ハンドラーを見つけるには、レジストリで次のキーを順に探し、最初に見つかったも"
"のを使います。"
#: ../../library/email.contentmanager.rst:32
msgid "the string representing the full MIME type (``maintype/subtype``)"
msgstr "完全な MIME 型を表す文字列 (``maintype/subtype``)"
#: ../../library/email.contentmanager.rst:33
msgid "the string representing the ``maintype``"
msgstr "``maintype`` を表す文字列"
#: ../../library/email.contentmanager.rst:34
msgid "the empty string"
msgstr "空の文字列"
msgid ""
"If none of these keys produce a handler, raise a :exc:`KeyError` for the "
"full MIME type."
msgstr ""
"どのキーでもハンドラーが見つからない場合、完全な MIME 型を示"
"す :exc:`KeyError` を送出します。"
msgid ""
"If the ``maintype`` is ``multipart``, raise a :exc:`TypeError`; otherwise "
"look up a handler function based on the type of *obj* (see next paragraph), "
"call :meth:`~email.message.EmailMessage.clear_content` on the *msg*, and "
"call the handler function, passing through all arguments. The expectation "
"is that the handler will transform and store *obj* into *msg*, possibly "
"making other changes to *msg* as well, such as adding various MIME headers "
"to encode information needed to interpret the stored data."
msgstr ""
"``maintype`` が ``multipart`` の場合は :exc:`TypeError` を送出します。\n"
"そうでなければ、*obj* の型に基づいてハンドラー関数を探し (次の段落を参照)、"
"*msg* の :meth:`~email.message.EmailMessage.clear_content` を呼び出してから、"
"すべての引数をそのまま渡してハンドラー関数を呼び出します。\n"
"ハンドラーは *obj* を変換して *msg* に格納することを想定しています。\n"
"格納したデータの解釈に必要な情報を表す MIME ヘッダーを追加するなど、*msg* に"
"他の変更を加えることもあります。"
msgid ""
"To find the handler, obtain the type of *obj* (``typ = type(obj)``), and "
"look for the following keys in the registry, stopping with the first one "
"found:"
msgstr ""
"ハンドラーを見つけるには、*obj* の型を取得し (``typ = type(obj)``)、レジスト"
"リで次のキーを順に探して最初に見つかったものを使います。"
#: ../../library/email.contentmanager.rst:55
msgid "the type itself (``typ``)"
msgstr "型自身 (``typ``)"
#: ../../library/email.contentmanager.rst:56
msgid ""
"the type's fully qualified name (``typ.__module__ + '.' + "
"typ.__qualname__``)."
msgstr "型の完全修飾名 (``typ.__module__ + '.' + typ.__qualname__``)."
msgid "the type's :attr:`qualname <type.__qualname__>` (``typ.__qualname__``)"
msgstr "型の :attr:`qualname <type.__qualname__>` (``typ.__qualname__``)"
msgid "the type's :attr:`name <type.__name__>` (``typ.__name__``)."
msgstr "型の :attr:`name <type.__name__>` (``typ.__name__``)。"
msgid ""
"If none of the above match, repeat all of the checks above for each of the "
"types in the :term:`MRO` (:attr:`typ.__mro__ <type.__mro__>`). Finally, if "
"no other key yields a handler, check for a handler for the key ``None``. If "
"there is no handler for ``None``, raise a :exc:`KeyError` for the fully "
"qualified name of the type."
msgstr ""
"いずれも一致しない場合、:term:`MRO` (:attr:`typ.__mro__ <type.__mro__>`) 内の"
"各型について、上記の確認をすべて繰り返します。\n"
"それでもハンドラーが見つからない場合、最後にキー ``None`` のハンドラーを探し"
"ます。\n"
"``None`` のハンドラーもなければ、型の完全修飾名を示す :exc:`KeyError` を送出"
"します。"
#: ../../library/email.contentmanager.rst:68
msgid ""
"Also add a :mailheader:`MIME-Version` header if one is not present (see "
"also :class:`.MIMEPart`)."
msgstr ""
msgid ""
"Record the function *handler* as the handler for *key*. For the possible "
"values of *key*, see :meth:`get_content`."
msgstr ""
"関数 *handler* を *key* のハンドラーとして登録します。\n"
"*key* に指定できる値は :meth:`get_content` を参照してください。"
msgid ""
"Record *handler* as the function to call when an object of a type matching "
"*typekey* is passed to :meth:`set_content`. For the possible values of "
"*typekey*, see :meth:`set_content`."
msgstr ""
"*typekey* に一致する型のオブジェクトが :meth:`set_content` に渡されたときに呼"
"び出す関数として、*handler* を登録します。\n"
"*typekey* に指定できる値は :meth:`set_content` を参照してください。"
msgid "Content Manager Instances"
msgstr "コンテンツマネージャーのインスタンス"
msgid ""
"Currently the email package provides only one concrete content "
"manager, :data:`raw_data_manager`, although more may be added in the "
"future. :data:`raw_data_manager` is "
"the :attr:`~email.policy.EmailPolicy.content_manager` provided "
"by :attr:`~email.policy.EmailPolicy` and its derivatives."
msgstr ""
"現在、email パッケージが提供する具体的なコンテンツマネージャー"
"は :data:`raw_data_manager` だけですが、将来さらに追加される可能性がありま"
"す。\n"
":data:`raw_data_manager` は :attr:`~email.policy.EmailPolicy` とその派生クラ"
"スが提供する :attr:`~email.policy.EmailPolicy.content_manager` です。"
msgid ""
"This content manager provides only a minimum interface beyond that provided "
"by :class:`~email.message.Message` itself: it deals only with text, raw "
"bytes, and :class:`~email.message.Message` objects. Nevertheless, it "
"provides significant advantages compared to the base API: ``get_content`` on "
"a text part will return a string without the application needing to manually "
"decode it, ``set_content`` provides a rich set of options for controlling "
"the headers added to a part and controlling the content transfer encoding, "
"and it enables the use of the various ``add_`` methods, thereby simplifying "
"the creation of multipart messages."
msgstr ""
"このコンテンツマネージャーが :class:`~email.message.Message` 自体に加えて提供"
"するインターフェースは最小限で、テキスト、生のバイト"
"列、:class:`~email.message.Message` オブジェクトだけを扱います。\n"
"それでも、基本の API と比べて大きな利点があります。\n"
"テキストパートの ``get_content()`` は文字列を返すため、アプリケーションで手動"
"デコードする必要がありません。\n"
"``set_content()`` には、パートに追加するヘッダーやコンテンツ転送エンコーディ"
"ングを制御する豊富なオプションがあります。\n"
"また、各種の ``add_`` メソッドを利用でき、マルチパートメッセージを簡単に作成"
"できます。"
#: ../../library/email.contentmanager.rst:109
msgid ""
"Return the payload of the part as either a string (for ``text`` parts), "
"an :class:`~email.message.EmailMessage` object (for ``message/rfc822`` "
"parts), or a ``bytes`` object (for all other non-multipart types). Raise "
"a :exc:`KeyError` if called on a ``multipart``. If the part is a ``text`` "
"part and *errors* is specified, use it as the error handler when decoding "
"the payload to a string. The default error handler is ``replace``."
msgstr ""
msgid "Add headers and payload to *msg*:"
msgstr "*msg* にヘッダーとペイロードを追加します。"
msgid ""
"Add a :mailheader:`Content-Type` header with a ``maintype/subtype`` value."
msgstr ""
"``maintype/subtype`` の値を持つ :mailheader:`Content-Type` ヘッダーを追加しま"
"す。"
msgid ""
"For ``str``, set the MIME ``maintype`` to ``text``, and set the subtype to "
"*subtype* if it is specified, or ``plain`` if it is not."
msgstr ""
"``str`` の場合、MIME の ``maintype`` を ``text`` に設定します。\n"
"サブタイプは *subtype* が指定されていればその値に、そうでなければ ``plain`` "
"に設定します。"
msgid ""
"For ``bytes``, use the specified *maintype* and *subtype*, or raise "
"a :exc:`TypeError` if they are not specified."
msgstr ""
"``bytes`` の場合、指定された *maintype* と *subtype* を使います。\n"
"指定されていなければ :exc:`TypeError` を送出します。"
msgid ""
"For :class:`~email.message.EmailMessage` objects, set the maintype to "
"``message``, and set the subtype to *subtype* if it is specified or "
"``rfc822`` if it is not. If *subtype* is ``partial``, raise an error "
"(``bytes`` objects must be used to construct ``message/partial`` parts)."
msgstr ""
":class:`~email.message.EmailMessage` オブジェクトの場合、メインタイプを "
"``message`` に設定します。\n"
"サブタイプは *subtype* が指定されていればその値に、そうでなければ ``rfc822`` "
"に設定します。\n"
"*subtype* が ``partial`` の場合はエラーを送出します (``message/partial`` パー"
"トの作成には ``bytes`` オブジェクトを使う必要があります)。"
msgid ""
"If *charset* is provided (which is valid only for ``str``), encode the "
"string to bytes using the specified character set. The default is "
"``utf-8``. If the specified *charset* is a known alias for a standard MIME "
"charset name, use the standard charset instead."
msgstr ""
"*charset* が指定されている場合 (``str`` でのみ有効)、指定された文字セットで文"
"字列をバイト列にエンコードします。\n"
"デフォルトは ``utf-8`` です。\n"
"指定された *charset* が標準の MIME 文字セット名の既知の別名であれば、標準の文"
"字セット名を使います。"
msgid ""
"If *cte* is set, encode the payload using the specified content transfer "
"encoding, and set the :mailheader:`Content-Transfer-Encoding` header to that "
"value. Possible values for *cte* are ``quoted-printable``, ``base64``, "
"``7bit``, ``8bit``, and ``binary``. If the input cannot be encoded in the "
"specified encoding (for example, specifying a *cte* of ``7bit`` for an input "
"that contains non-ASCII values), raise a :exc:`ValueError`."
msgstr ""
"*cte* が設定されている場合、指定されたコンテンツ転送エンコーディングでペイ"
"ロードをエンコードし、:mailheader:`Content-Transfer-Encoding` ヘッダーをその"
"値に設定します。\n"
"*cte* に指定できる値は ``quoted-printable``、``base64``、``7bit``、``8bit``、"
"``binary`` です。\n"
"非 ASCII 値を含む入力に *cte* として ``7bit`` を指定するなど、入力を指定され"
"た形式でエンコードできない場合は :exc:`ValueError` を送出します。"
msgid ""
"For ``str`` objects, if *cte* is not set use heuristics to determine the "
"most compact encoding. Prior to encoding, :meth:`str.splitlines` is used to "
"normalize all line boundaries, ensuring that each line of the payload is "
"terminated by the current policy's :data:`~email.policy.Policy.linesep` "
"property (even if the original string did not end with one)."
msgstr ""
"``str`` オブジェクトで *cte* を設定していない場合、ヒューリスティックによって"
"最もコンパクトなエンコーディングを決めます。\n"
"エンコード前に :meth:`str.splitlines` ですべての行境界を正規化し、ペイロード"
"の各行が現在のポリシーの :data:`~email.policy.Policy.linesep` プロパティで終"
"わるようにします (元の文字列が改行で終わっていなくても同様です)。"
msgid ""
"For ``bytes`` objects, *cte* is taken to be base64 if not set, and the "
"aforementioned newline translation is not performed."
msgstr ""
"``bytes`` オブジェクトの場合、*cte* を設定していなければ base64 とみなし、上"
"記の改行変換は行いません。"
msgid ""
"For :class:`~email.message.EmailMessage`, per :rfc:`2046`, raise an error if "
"a *cte* of ``quoted-printable`` or ``base64`` is requested for *subtype* "
"``rfc822``, and for any *cte* other than ``7bit`` for *subtype* ``external-"
"body``. For ``message/rfc822``, use ``8bit`` if *cte* is not specified. "
"For all other values of *subtype*, use ``7bit``."
msgstr ""
":class:`~email.message.EmailMessage` の場合、:rfc:`2046` に従い、*subtype* "
"が ``rfc822`` で *cte* に ``quoted-printable`` または ``base64`` を指定した場"
"合と、*subtype* が ``external-body`` で *cte* に ``7bit`` 以外を指定した場合"
"にはエラーを送出します。\n"
"``message/rfc822`` で *cte* が指定されていなければ ``8bit`` を使います。\n"
"それ以外の *subtype* では ``7bit`` を使います。"
msgid ""
"A *cte* of ``binary`` does not actually work correctly yet. The "
"``EmailMessage`` object as modified by ``set_content`` is correct, "
"but :class:`~email.generator.BytesGenerator` does not serialize it correctly."
msgstr ""
"*cte* の ``binary`` は、まだ正しく動作しません。\n"
"``set_content()`` によって変更された ``EmailMessage`` オブジェクトは正しいも"
"のの、:class:`~email.generator.BytesGenerator` が正しく直列化しません。"
msgid ""
"If *disposition* is set, use it as the value of the :mailheader:`Content-"
"Disposition` header. If not specified, and *filename* is specified, add the "
"header with the value ``attachment``. If *disposition* is not specified and "
"*filename* is also not specified, do not add the header. The only valid "
"values for *disposition* are ``attachment`` and ``inline``."
msgstr ""
"*disposition* が設定されていれば、:mailheader:`Content-Disposition` ヘッダー"
"の値として使います。\n"
"指定されておらず、*filename* が指定されている場合は、値を ``attachment`` とし"
"てヘッダーを追加します。\n"
"*disposition* も *filename* も指定されていなければ、ヘッダーは追加しませ"
"ん。\n"
"*disposition* に有効な値は ``attachment`` と ``inline`` だけです。"
msgid ""
"If *filename* is specified, use it as the value of the ``filename`` "
"parameter of the :mailheader:`Content-Disposition` header."
msgstr ""
"*filename* が指定されている場合、:mailheader:`Content-Disposition` ヘッダー"
"の ``filename`` パラメータの値として使います。"
msgid ""
"If *cid* is specified, add a :mailheader:`Content-ID` header with *cid* as "
"its value."
msgstr ""
"*cid* が指定されている場合、その値を持つ :mailheader:`Content-ID` ヘッダーを"
"追加します。"
msgid ""
"If *params* is specified, iterate its ``items`` method and use the resulting "
"``(key, value)`` pairs to set additional parameters on "
"the :mailheader:`Content-Type` header."
msgstr ""
"*params* が指定されている場合、その ``items()`` メソッドの結果を反復処理し、"
"得られた ``(key, value)`` ペアを使って :mailheader:`Content-Type` ヘッダーに"
"追加のパラメータを設定します。"
msgid ""
"If *headers* is specified and is a list of strings of the form ``headername: "
"headervalue`` or a list of ``header`` objects (distinguished from strings by "
"having a ``name`` attribute), add the headers to *msg*."
msgstr ""
"*headers* が指定されていて、``headername: headervalue`` 形式の文字列のリス"
"ト、または ``header`` オブジェクトのリスト (``name`` 属性を持つことで文字列と"
"区別します) である場合、そのヘッダーを *msg* に追加します。"
#: ../../library/email.contentmanager.rst:200
msgid "Footnotes"
msgstr "脚注"
msgid ""
"Originally added in 3.4 as a :term:`provisional module <provisional package>`"
msgstr ""
"当初は 3.4 で :term:`暫定モジュール <provisional package>` として追加されまし"
"た。"
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.