4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # Osamu NAKAMURA, 2019
7
+ # Osamu NAKAMURA, 2018
8
8
# tomo, 2020
9
9
# Takanori Suzuki <takanori@takanory.net>, 2021
10
10
#
@@ -13,7 +13,7 @@ msgid ""
13
13
msgstr ""
14
14
"Project-Id-Version : Python 3.9\n "
15
15
"Report-Msgid-Bugs-To : \n "
16
- "POT-Creation-Date : 2021-04-27 06:12 +0000\n "
16
+ "POT-Creation-Date : 2021-05-07 06:17 +0000\n "
17
17
"PO-Revision-Date : 2018-06-29 21:06+0000\n "
18
18
"Last-Translator : Takanori Suzuki <takanori@takanory.net>, 2021\n "
19
19
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -44,13 +44,12 @@ msgstr ""
44
44
#: ../../library/dataclasses.rst:19
45
45
msgid ""
46
46
"The member variables to use in these generated methods are defined using "
47
- ":pep:`526` type annotations. For example this code::"
47
+ ":pep:`526` type annotations. For example, this code::"
48
48
msgstr ""
49
- "これらの生成されたメソッドで利用されるメンバー変数は :pep:`526` 型アノテーションを用いて定義されます。例えば、このコードでは::"
50
49
51
50
#: ../../library/dataclasses.rst:34
52
- msgid "Will add, among other things, a :meth:`__init__` that looks like::"
53
- msgstr "とりわけ、以下のような :meth:`__init__` が追加されます:: "
51
+ msgid "will add, among other things, a :meth:`__init__` that looks like::"
52
+ msgstr ""
54
53
55
54
#: ../../library/dataclasses.rst:41
56
55
msgid ""
@@ -73,13 +72,10 @@ msgstr "この関数は、後述する :term:`special method` を生成し、ク
73
72
#: ../../library/dataclasses.rst:54
74
73
msgid ""
75
74
"The :func:`dataclass` decorator examines the class to find ``field``\\ s. A "
76
- "``field`` is defined as class variable that has a :term:`type annotation "
75
+ "``field`` is defined as a class variable that has a :term:`type annotation "
77
76
"<variable annotation>`. With two exceptions described below, nothing in "
78
77
":func:`dataclass` examines the type specified in the variable annotation."
79
78
msgstr ""
80
- ":func:`dataclass` デコレータは、``フィールド`` を探すためにクラスを検査します。\n"
81
- "``フィールド`` は :term:`型アノテーション <variable annotation>` を持つクラス変数として定義されます。\n"
82
- "後述する2つの例外を除き、 :func:`dataclass` は変数アノテーションで指定した型を検査しません。"
83
79
84
80
#: ../../library/dataclasses.rst:60
85
81
msgid ""
@@ -90,13 +86,11 @@ msgstr "生成されるすべてのメソッドの中でのフィールドの順
90
86
#: ../../library/dataclasses.rst:63
91
87
msgid ""
92
88
"The :func:`dataclass` decorator will add various \" dunder\" methods to the "
93
- "class, described below. If any of the added methods already exist on the "
89
+ "class, described below. If any of the added methods already exist in the "
94
90
"class, the behavior depends on the parameter, as documented below. The "
95
- "decorator returns the same class that is called on; no new class is created."
91
+ "decorator returns the same class that it is called on; no new class is "
92
+ "created."
96
93
msgstr ""
97
- ":func:`dataclass` デコレータは、後述する様々な \" ダンダー\" メソッド (訳注:dunderはdouble "
98
- "underscoreの略で、メソッド名の前後にアンダースコアが2つ付いているメソッド) "
99
- "をクラスに追加します。クラスに既にこれらのメソッドが存在する場合の動作は、後述する引数によって異なります。デコレータは呼び出した際に指定したクラスと同じクラスを返します。新しいクラスは生成されません。"
100
94
101
95
#: ../../library/dataclasses.rst:69
102
96
msgid ""
@@ -276,11 +270,9 @@ msgstr ""
276
270
#: ../../library/dataclasses.rst:177
277
271
msgid ""
278
272
":exc:`TypeError` will be raised if a field without a default value follows a"
279
- " field with a default value. This is true either when this occurs in a "
280
- "single class, or as a result of class inheritance."
273
+ " field with a default value. This is true whether this occurs in a single "
274
+ "class, or as a result of class inheritance."
281
275
msgstr ""
282
- "デフォルト値を指定しないフィールドを、デフォルト値を指定したフィールドの後ろに定義すると、 :exc:`TypeError` "
283
- "が送出されます。これは、単一のクラスであっても、クラス継承の結果でも起きえます。"
284
276
285
277
#: ../../library/dataclasses.rst:183
286
278
msgid ""
@@ -525,14 +517,11 @@ msgstr "は、次のコードと等しいです::"
525
517
526
518
#: ../../library/dataclasses.rst:364
527
519
msgid ""
528
- "Creates a new object of the same type of ``instance``, replacing fields with"
520
+ "Creates a new object of the same type as ``instance``, replacing fields with"
529
521
" values from ``changes``. If ``instance`` is not a Data Class, raises "
530
522
":exc:`TypeError`. If values in ``changes`` do not specify fields, raises "
531
523
":exc:`TypeError`."
532
524
msgstr ""
533
- "``instance`` と同じ型のオブジェクトを新しく作成し、フィールドを ``changes`` にある値で置き換えます。\n"
534
- "``instance`` がデータクラスではなかった場合、 :exc:`TypeError` を送出します。\n"
535
- "``changes`` にある値がフィールドを指定していなかった場合も、 :exc:`TypeError` を送出します。"
536
525
537
526
#: ../../library/dataclasses.rst:369
538
527
msgid ""
0 commit comments