Skip to content

Commit

Permalink
Merge 3.11 into 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 18, 2023
1 parent 7ff0876 commit a50464c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
29 changes: 27 additions & 2 deletions library/zoneinfo.po
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ msgid ""
"if no system time zone data is available, the library will fall back to "
"using the first-party `tzdata`_ package available on PyPI."
msgstr ""
":mod:`zoneinfo` モジュールは :pep:`615` で規定された、IANAのタイムゾーンデー"
"タベースをサポートした具体的なタイムゾーン実装を提供します。 デフォルトで"
"は、:mod:`zoneinfo` はシステムのタイムゾーンデータが利用可能であれば使用しま"
"す。システムのタイムゾーンデータが利用できない場合、ライブラリはPyPIにある"
"ファーストパーティーのパッケージ `tzdata`_ を代わりに使用します。"

#: ../../library/zoneinfo.rst:24
msgid "Module: :mod:`datetime`"
Expand All @@ -44,6 +49,8 @@ msgid ""
"Provides the :class:`~datetime.time` and :class:`~datetime.datetime` types "
"with which the :class:`ZoneInfo` class is designed to be used."
msgstr ""
":class:`ZoneInfo` クラスを使用するように設計されたデータ型 :class:`~datetime."
"time` と :class:`~datetime.datetime` を提供します。"

#: ../../library/zoneinfo.rst:27
msgid "Package `tzdata`_"
Expand All @@ -54,6 +61,8 @@ msgid ""
"First-party package maintained by the CPython core developers to supply time "
"zone data via PyPI."
msgstr ""
"CPythonコアデベロッパーによってメンテナンスされているファーストパーティーの"
"パッケージ。タイムゾーンデータを供給し、PyPIで配布されている。"

#: ../../library/zoneinfo.rst:32
msgid "Using ``ZoneInfo``"
Expand All @@ -67,6 +76,10 @@ msgid ""
"replace>` method or :meth:`datetime.astimezone <datetime.datetime."
"astimezone>`::"
msgstr ""
":class:`ZoneInfo` は :class:`datetime.tzinfo` 抽象基底クラスの具体的な実装で"
"あり、``tzinfo`` に指定することを想定しています。コンストラクタ、:meth:"
"`datetime.replace <datetime.datetime.replace>` メソッド、:meth:`datetime."
"astimezone <datetime.datetime.astimezone>` メソッドのいずれかで指定します。"

#: ../../library/zoneinfo.rst:49
msgid ""
Expand Down Expand Up @@ -200,7 +213,7 @@ msgstr ""

#: ../../library/zoneinfo.rst:168
msgid "The ``ZoneInfo`` class"
msgstr ""
msgstr "``ZoneInfo`` クラス"

#: ../../library/zoneinfo.rst:172
msgid ""
Expand All @@ -210,6 +223,11 @@ msgid ""
"cache invalidation via :meth:`ZoneInfo.clear_cache`, for all values of "
"``key``, the following assertion will always be true:"
msgstr ""
"文字列 ``key`` でIANAタイムゾーンを指定した、具体的な :class:`datetime."
"tzinfo` のサブクラス。Calls to the primary constructor will always return "
"objects that compare identically; put another way, barring cache "
"invalidation via :meth:`ZoneInfo.clear_cache`, for all values of ``key``, "
"the following assertion will always be true:"

#: ../../library/zoneinfo.rst:184
msgid ""
Expand All @@ -223,17 +241,22 @@ msgid ""
"If no file matching ``key`` is found, the constructor will raise :exc:"
"`ZoneInfoNotFoundError`."
msgstr ""
"``key`` に一致するファイルが見つからない場合、コンストラクタは :exc:"
"`ZoneInfoNotFoundError` を送出します。"

#: ../../library/zoneinfo.rst:192
msgid "The ``ZoneInfo`` class has two alternate constructors:"
msgstr ""
msgstr "``ZoneInfo`` クラスには2つの別のコンストラクターがあります:"

#: ../../library/zoneinfo.rst:196
msgid ""
"Constructs a ``ZoneInfo`` object from a file-like object returning bytes (e."
"g. a file opened in binary mode or an :class:`io.BytesIO` object). Unlike "
"the primary constructor, this always constructs a new object."
msgstr ""
"file-like オブジェクトが返すbytes(バイナリーモードで開いたファイルや :class:"
"`io.BytesIO` オブジェクト)から ``ZoneInfo`` オブジェクトを構築します。一次"
"コンストラクタと異なり、常に新規オブジェクトを構築します。"

#: ../../library/zoneinfo.rst:200
msgid ""
Expand All @@ -245,6 +268,8 @@ msgstr ""
msgid ""
"Objects created via this constructor cannot be pickled (see `pickling`_)."
msgstr ""
"このコンストラクタで生成したオブジェクトはpickle化できません(`pickling`_ を"
"参照)。"

#: ../../library/zoneinfo.rst:207
msgid ""
Expand Down
18 changes: 16 additions & 2 deletions whatsnew/3.9.po
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ msgid ""
":pep:`615`, the IANA Time Zone Database is now present in the standard "
"library in the :mod:`zoneinfo` module;"
msgstr ""
":pep:`615`、IANAのTime Zone Databaseが標準ライブラリの :mod:`zoneinfo` モ"
"ジュールで提供されるようになりました。"

#: ../../whatsnew/3.9.rst:101
msgid ""
Expand Down Expand Up @@ -316,7 +318,7 @@ msgstr ""

#: ../../whatsnew/3.9.rst:175
msgid "Type Hinting Generics in Standard Collections"
msgstr ""
msgstr "標準コレクション型の型ヒントにおける総称型 (generics) の使用"

#: ../../whatsnew/3.9.rst:177
msgid ""
Expand All @@ -326,6 +328,10 @@ msgid ""
"``typing``. Some other types in the standard library are also now generic, "
"for example ``queue.Queue``."
msgstr ""
"型アノテーションで、``typing`` モジュールからインポートしていた大文字の型"
"(``List`` や ``Dict``)の代わりに、総称型(generics)で ``list`` や "
"``dict`` といった標準コレクション型が使用できるようになりました。いくつかの他"
"の標準ライブラリの型(``queue.Queue`` など)も総称型として使用できます。"

#: ../../whatsnew/3.9.rst:183 ../../whatsnew/3.9.rst:1147
msgid "Example:"
Expand Down Expand Up @@ -485,13 +491,21 @@ msgid ""
"the standard library. It adds :class:`zoneinfo.ZoneInfo`, a concrete :class:"
"`datetime.tzinfo` implementation backed by the system's time zone data."
msgstr ""
":mod:`zoneinfo` モジュールにより標準ライブラリにIANAのタイムゾーンデータベー"
"スへのサポートを導入されます。:class:`zoneinfo.ZoneInfo` という、システムのタ"
"イムゾーンデータを背景とした具体的な :class:`datetime.tzinfo` の実装が追加さ"
"れます。"

#: ../../whatsnew/3.9.rst:305
msgid ""
"As a fall-back source of data for platforms that don't ship the IANA "
"database, the |tzdata|_ module was released as a first-party package -- "
"distributed via PyPI and maintained by the CPython core team."
msgstr ""
"IANAデータベースが提供されていないプラットフォームでのデータの代わりの提供元"
"として、 |tzdata|_ モジュールがファーストパーティーのパッケージとしてリリース"
"されています。tzdataはPyPIで配信されており、CPythonコアチームによってメンテナ"
"ンスされています。"

#: ../../whatsnew/3.9.rst:314
msgid ""
Expand All @@ -500,7 +514,7 @@ msgstr ""

#: ../../whatsnew/3.9.rst:315
msgid "PEP written and implemented by Paul Ganssle"
msgstr ""
msgstr "PEP作成と実装は Paul Ganssle による。"

#: ../../whatsnew/3.9.rst:319
msgid "graphlib"
Expand Down

0 comments on commit a50464c

Please sign in to comment.