11
11
# Arihiro TAKASE, 2017
12
12
# Keigo Fushio <fushio.keigo@gmail.com>, 2020
13
13
# Tetsuo Koyama <tkoyama010@gmail.com>, 2020
14
+ # Shin Saito, 2021
14
15
#
15
16
#, fuzzy
16
17
msgid ""
@@ -19,7 +20,7 @@ msgstr ""
19
20
"Report-Msgid-Bugs-To : \n "
20
21
"POT-Creation-Date : 2021-01-01 05:02+0000\n "
21
22
"PO-Revision-Date : 2017-02-16 17:46+0000\n "
22
- "Last-Translator : Tetsuo Koyama <tkoyama010@gmail.com>, 2020 \n "
23
+ "Last-Translator : Shin Saito, 2021 \n "
23
24
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
24
25
"MIME-Version : 1.0\n "
25
26
"Content-Type : text/plain; charset=UTF-8\n "
@@ -39,6 +40,9 @@ msgid ""
39
40
"2to3 supporting library :mod:`lib2to3` is, however, a flexible and generic "
40
41
"library, so it is possible to write your own fixers for 2to3."
41
42
msgstr ""
43
+ "2to3 は、 Python 2.x のソースコードを読み込み、一連の *変換プログラム (fixer)* を適用して正しい Python 3.x "
44
+ "のコードに変換する Python プログラムです。標準ライブラリはほとんど全てのコードを取り扱うのに十分な fixer を含んでいます。ただし 2to3"
45
+ " を構成している :mod:`lib2to3` は柔軟かつ一般的なライブラリなので、 2to3 のために独自の fixer を書くこともできます。"
42
46
43
47
#: ../../library/2to3.rst:18
44
48
msgid "Using 2to3"
@@ -157,6 +161,12 @@ msgid ""
157
161
"already has had its print statements converted. Also :option:`!-e` can be "
158
162
"used to make :func:`exec` a function."
159
163
msgstr ""
164
+ "いくつかの print 文は関数呼び出しとしても文としても解析できるので、 2to3 は print 関数を含むファイルを常に読めるとは限りません。 "
165
+ "2to3 は ``from __future__ import print_function`` "
166
+ "コンパイラディレクティブが存在することを検出すると、内部の文法を変更して :func:`print` を関数として解釈するようになります。 "
167
+ ":option:`!-p` フラグによって手動でこの変更を有効化することもできます。 print "
168
+ "文を変換済みのコードに対して変換プログラムを適用するには :option:`!-p` を使用してください。同様に、:func:`exec` "
169
+ "を関数として解釈させるには :option:`!-e` を使用してください。"
160
170
161
171
#: ../../library/2to3.rst:105
162
172
msgid ""
@@ -527,14 +537,17 @@ msgid ""
527
537
"statements are added, e.g. ``import collections.abc``. The following "
528
538
"mapping are made:"
529
539
msgstr ""
540
+ ":mod:`operator` "
541
+ "モジュール内のさまざまな関数呼び出しを、他の、しかし機能的には同等の関数呼び出しに変換します。必要に応じて、``import "
542
+ "collections.abc`` などの適切な ``import`` ステートメントが追加されます。以下のマッピングが行われます。"
530
543
531
544
#: ../../library/2to3.rst:352
532
545
msgid "``operator.isCallable(obj)``"
533
546
msgstr "``operator.isCallable(obj)``"
534
547
535
548
#: ../../library/2to3.rst:352
536
549
msgid "``callable(obj)``"
537
- msgstr ""
550
+ msgstr "``callable(obj)`` "
538
551
539
552
#: ../../library/2to3.rst:353
540
553
msgid "``operator.sequenceIncludes(obj)``"
@@ -550,15 +563,15 @@ msgstr "``operator.isSequenceType(obj)``"
550
563
551
564
#: ../../library/2to3.rst:354
552
565
msgid "``isinstance(obj, collections.abc.Sequence)``"
553
- msgstr ""
566
+ msgstr "``isinstance(obj, collections.abc.Sequence)`` "
554
567
555
568
#: ../../library/2to3.rst:355
556
569
msgid "``operator.isMappingType(obj)``"
557
570
msgstr "``operator.isMappingType(obj)``"
558
571
559
572
#: ../../library/2to3.rst:355
560
573
msgid "``isinstance(obj, collections.abc.Mapping)``"
561
- msgstr ""
574
+ msgstr "``isinstance(obj, collections.abc.Mapping)`` "
562
575
563
576
#: ../../library/2to3.rst:356
564
577
msgid "``operator.isNumberType(obj)``"
@@ -617,7 +630,7 @@ msgstr ":func:`reduce` が :func:`functools.reduce` に移動されたことを
617
630
618
631
#: ../../library/2to3.rst:386
619
632
msgid "Converts :func:`reload` to :func:`importlib.reload`."
620
- msgstr ""
633
+ msgstr ":func:`reload` を :func:`importlib.reload` に変換します。 "
621
634
622
635
#: ../../library/2to3.rst:390
623
636
msgid "Changes :data:`sys.maxint` to :data:`sys.maxsize`."
@@ -713,6 +726,10 @@ msgid ""
713
726
" Python version. Consider third-party alternatives such as `LibCST`_ or "
714
727
"`parso`_."
715
728
msgstr ""
729
+ "Python 3.9 から構文解析器が PEG パーサに変更になり (:pep:`617` を参照のこと)、Python 3.10 には lib2to3"
730
+ " の使用する LL(1) パーサでは解析できない文法が導入される可能性があります。Python の将来のバージョンでは ``lib2to3`` "
731
+ "モジュールが標準ライブラリから削除される可能性があります。その場合、代替として `LibCST`_ や `parso`_ "
732
+ "のようなサードパーティ・ライブラリの使用を検討してください。"
716
733
717
734
#: ../../library/2to3.rst:476
718
735
msgid ""
0 commit comments