1111# Arihiro TAKASE, 2017
1212# Keigo Fushio <fushio.keigo@gmail.com>, 2020
1313# Tetsuo Koyama <tkoyama010@gmail.com>, 2020
14+ # Shin Saito, 2021
1415#
1516#, fuzzy
1617msgid ""
@@ -19,7 +20,7 @@ msgstr ""
1920"Report-Msgid-Bugs-To : \n "
2021"POT-Creation-Date : 2021-01-01 05:02+0000\n "
2122"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 "
2324"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
2425"MIME-Version : 1.0\n "
2526"Content-Type : text/plain; charset=UTF-8\n "
@@ -39,6 +40,9 @@ msgid ""
3940"2to3 supporting library :mod:`lib2to3` is, however, a flexible and generic "
4041"library, so it is possible to write your own fixers for 2to3."
4142msgstr ""
43+ "2to3 は、 Python 2.x のソースコードを読み込み、一連の *変換プログラム (fixer)* を適用して正しい Python 3.x "
44+ "のコードに変換する Python プログラムです。標準ライブラリはほとんど全てのコードを取り扱うのに十分な fixer を含んでいます。ただし 2to3"
45+ " を構成している :mod:`lib2to3` は柔軟かつ一般的なライブラリなので、 2to3 のために独自の fixer を書くこともできます。"
4246
4347#: ../../library/2to3.rst:18
4448msgid "Using 2to3"
@@ -157,6 +161,12 @@ msgid ""
157161"already has had its print statements converted. Also :option:`!-e` can be "
158162"used to make :func:`exec` a function."
159163msgstr ""
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` を使用してください。"
160170
161171#: ../../library/2to3.rst:105
162172msgid ""
@@ -527,14 +537,17 @@ msgid ""
527537"statements are added, e.g. ``import collections.abc``. The following "
528538"mapping are made:"
529539msgstr ""
540+ ":mod:`operator` "
541+ "モジュール内のさまざまな関数呼び出しを、他の、しかし機能的には同等の関数呼び出しに変換します。必要に応じて、``import "
542+ "collections.abc`` などの適切な ``import`` ステートメントが追加されます。以下のマッピングが行われます。"
530543
531544#: ../../library/2to3.rst:352
532545msgid "``operator.isCallable(obj)``"
533546msgstr "``operator.isCallable(obj)``"
534547
535548#: ../../library/2to3.rst:352
536549msgid "``callable(obj)``"
537- msgstr ""
550+ msgstr "``callable(obj)`` "
538551
539552#: ../../library/2to3.rst:353
540553msgid "``operator.sequenceIncludes(obj)``"
@@ -550,15 +563,15 @@ msgstr "``operator.isSequenceType(obj)``"
550563
551564#: ../../library/2to3.rst:354
552565msgid "``isinstance(obj, collections.abc.Sequence)``"
553- msgstr ""
566+ msgstr "``isinstance(obj, collections.abc.Sequence)`` "
554567
555568#: ../../library/2to3.rst:355
556569msgid "``operator.isMappingType(obj)``"
557570msgstr "``operator.isMappingType(obj)``"
558571
559572#: ../../library/2to3.rst:355
560573msgid "``isinstance(obj, collections.abc.Mapping)``"
561- msgstr ""
574+ msgstr "``isinstance(obj, collections.abc.Mapping)`` "
562575
563576#: ../../library/2to3.rst:356
564577msgid "``operator.isNumberType(obj)``"
@@ -617,7 +630,7 @@ msgstr ":func:`reduce` が :func:`functools.reduce` に移動されたことを
617630
618631#: ../../library/2to3.rst:386
619632msgid "Converts :func:`reload` to :func:`importlib.reload`."
620- msgstr ""
633+ msgstr ":func:`reload` を :func:`importlib.reload` に変換します。 "
621634
622635#: ../../library/2to3.rst:390
623636msgid "Changes :data:`sys.maxint` to :data:`sys.maxsize`."
@@ -713,6 +726,10 @@ msgid ""
713726" Python version. Consider third-party alternatives such as `LibCST`_ or "
714727"`parso`_."
715728msgstr ""
729+ "Python 3.9 から構文解析器が PEG パーサに変更になり (:pep:`617` を参照のこと)、Python 3.10 には lib2to3"
730+ " の使用する LL(1) パーサでは解析できない文法が導入される可能性があります。Python の将来のバージョンでは ``lib2to3`` "
731+ "モジュールが標準ライブラリから削除される可能性があります。その場合、代替として `LibCST`_ や `parso`_ "
732+ "のようなサードパーティ・ライブラリの使用を検討してください。"
716733
717734#: ../../library/2to3.rst:476
718735msgid ""
0 commit comments