Skip to content

Commit

Permalink
Update translations from Transifex
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 22, 2023
1 parent 854fd48 commit db5b62b
Show file tree
Hide file tree
Showing 22 changed files with 2,182 additions and 2,240 deletions.
269 changes: 119 additions & 150 deletions library/ast.po

Large diffs are not rendered by default.

219 changes: 103 additions & 116 deletions library/csv.po

Large diffs are not rendered by default.

425 changes: 210 additions & 215 deletions library/datetime.po

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions library/exceptions.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
"POT-Creation-Date: 2023-12-22 14:13+0000\n"
"PO-Revision-Date: 2021-06-28 01:05+0000\n"
"Last-Translator: tomo, 2023\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
Expand Down Expand Up @@ -1343,11 +1343,11 @@ msgstr ""

#: ../../library/exceptions.rst:1008
msgid ""
"Note that :exc:`BaseExceptionGroup` defines :meth:`__new__`, so subclasses "
"that need a different constructor signature need to override that rather "
"than :meth:`__init__`. For example, the following defines an exception group "
"subclass which accepts an exit_code and and constructs the group's message "
"from it. ::"
"Note that :exc:`BaseExceptionGroup` defines :meth:`~object.__new__`, so "
"subclasses that need a different constructor signature need to override that "
"rather than :meth:`~object.__init__`. For example, the following defines an "
"exception group subclass which accepts an exit_code and and constructs the "
"group's message from it. ::"
msgstr ""

#: ../../library/exceptions.rst:1023
Expand Down
4 changes: 2 additions & 2 deletions library/itertools.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
"POT-Creation-Date: 2023-12-22 14:13+0000\n"
"PO-Revision-Date: 2021-06-28 01:08+0000\n"
"Last-Translator: righteous righteous, 2023\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
Expand Down Expand Up @@ -1035,6 +1035,6 @@ msgid ""
"term:`generator`\\s which incur interpreter overhead."
msgstr ""

#: ../../library/itertools.rst:1024
#: ../../library/itertools.rst:1025
msgid "The following recipes have a more mathematical flavor:"
msgstr ""
72 changes: 26 additions & 46 deletions library/numbers.po
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
"POT-Creation-Date: 2023-12-22 14:13+0000\n"
"PO-Revision-Date: 2021-06-28 01:10+0000\n"
"Last-Translator: Arihiro TAKASE, 2023\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
Expand All @@ -34,15 +34,11 @@ msgstr "**ソースコード:** :source:`Lib/numbers.py`"

#: ../../library/numbers.rst:11
msgid ""
"The :mod:`numbers` module (:pep:`3141`) defines a hierarchy of numeric :term:"
"`abstract base classes <abstract base class>` which progressively define "
"more operations. None of the types defined in this module are intended to "
"be instantiated."
"The :mod:`!numbers` module (:pep:`3141`) defines a hierarchy of numeric :"
"term:`abstract base classes <abstract base class>` which progressively "
"define more operations. None of the types defined in this module are "
"intended to be instantiated."
msgstr ""
":mod:`numbers` モジュール (:pep:`3141`) は数の :term:`抽象基底クラス "
"<abstract base class>` の階層を定義します。この階層では、さらに多くの演算が順"
"番に定義されます。このモジュールで定義される型はどれもインスタンス化を想定し"
"ていません。"

#: ../../library/numbers.rst:18
msgid ""
Expand Down Expand Up @@ -88,10 +84,9 @@ msgstr ""

#: ../../library/numbers.rst:48
msgid ""
"To :class:`Complex`, :class:`Real` adds the operations that work on real "
"To :class:`Complex`, :class:`!Real` adds the operations that work on real "
"numbers."
msgstr ""
":class:`Real` は、:class:`Complex` 上に、 実数に対して行える演算を加えます。"

#: ../../library/numbers.rst:51
msgid ""
Expand Down Expand Up @@ -185,16 +180,11 @@ msgid ""
"We want to implement the arithmetic operations so that mixed-mode operations "
"either call an implementation whose author knew about the types of both "
"arguments, or convert both to the nearest built in type and do the operation "
"there. For subtypes of :class:`Integral`, this means that :meth:`__add__` "
"and :meth:`__radd__` should be defined as::"
"there. For subtypes of :class:`Integral`, this means that :meth:`~object."
"__add__` and :meth:`~object.__radd__` should be defined as::"
msgstr ""
"算術演算を実装する際には、型混合(mixed-mode)演算を行うと、作者が両方の引数の"
"型について知っているような実装を呼び出すか、両方の引数をそれぞれ最も似ている"
"組み込み型に変換してその型で演算を行うか、どちらになるのが望ましい実装です。"
"つまり、 :class:`Integral` のサブタイプに対しては :meth:`__add__` と :meth:"
"`__radd__` を次のように定義するべきです::"

#: ../../library/numbers.rst:156
#: ../../library/numbers.rst:157
msgid ""
"There are 5 different cases for a mixed-type operation on subclasses of :"
"class:`Complex`. I'll refer to all of the above code that doesn't refer to "
Expand All @@ -208,43 +198,35 @@ msgstr ""
"ブタイプである ``A`` のインスタンス (``a : A <: Complex``)、同様に ``b : B "
"<: Complex`` として、 ``a + b`` を考えます:"

#: ../../library/numbers.rst:163
msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
#: ../../library/numbers.rst:164
msgid ""
"If ``A`` defines an :meth:`~object.__add__` which accepts ``b``, all is well."
msgstr ""
"``A`` が ``b`` を受け付ける :meth:`__add__` を定義している場合、何も問題はあ"
"りません。"

#: ../../library/numbers.rst:165
#: ../../library/numbers.rst:166
msgid ""
"If ``A`` falls back to the boilerplate code, and it were to return a value "
"from :meth:`__add__`, we'd miss the possibility that ``B`` defines a more "
"intelligent :meth:`__radd__`, so the boilerplate should return :const:"
"`NotImplemented` from :meth:`__add__`. (Or ``A`` may not implement :meth:"
"`__add__` at all.)"
"from :meth:`~object.__add__`, we'd miss the possibility that ``B`` defines a "
"more intelligent :meth:`~object.__radd__`, so the boilerplate should return :"
"const:`NotImplemented` from :meth:`!__add__`. (Or ``A`` may not implement :"
"meth:`!__add__` at all.)"
msgstr ""
"``A`` でボイラープレート部分に落ち込み、その結果 :meth:`__add__` が値を返すな"
"らば、 ``B`` に良く考えられた :meth:`__radd__` が定義されている可能性を見逃し"
"てしまいますので、ボイラープレートは :meth:`__add__` から :const:"
"`NotImplemented` を返すのが良いでしょう。(若しくは、 ``A`` はまったく :meth:"
"`__add__` を実装すべきではなかったかもしれません。)"

#: ../../library/numbers.rst:171
#: ../../library/numbers.rst:172
msgid ""
"Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
"well."
"Then ``B``'s :meth:`~object.__radd__` gets a chance. If it accepts ``a``, "
"all is well."
msgstr ""
"そうすると、 ``B`` の :meth:`__radd__` にチャンスが巡ってきます。ここで "
"``a`` が受け付けられるならば、結果は上々です。"

#: ../../library/numbers.rst:173
#: ../../library/numbers.rst:174
msgid ""
"If it falls back to the boilerplate, there are no more possible methods to "
"try, so this is where the default implementation should live."
msgstr ""
"ここでボイラープレートに落ち込むならば、もう他に試すべきメソッドはありません"
"ので、デフォルト実装の出番です。"

#: ../../library/numbers.rst:176
#: ../../library/numbers.rst:177
msgid ""
"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok, "
"because it was implemented with knowledge of ``A``, so it can handle those "
Expand All @@ -254,17 +236,15 @@ msgstr ""
"ます。これで良い理由は、 ``A`` についての知識を持って実装しており、 :class:"
"`Complex` に委ねる前にこれらのインスタンスを扱えるはずだからです。"

#: ../../library/numbers.rst:181
#: ../../library/numbers.rst:182
msgid ""
"If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, "
"then the appropriate shared operation is the one involving the built in :"
"class:`complex`, and both :meth:`__radd__` s land there, so ``a+b == b+a``."
"class:`complex`, and both :meth:`~object.__radd__` s land there, so ``a+b == "
"b+a``."
msgstr ""
"もし ``A <: Complex`` かつ ``B <: Real`` で他に共有された知識が無いならば、適"
"切な共通の演算は組み込みの :class:`complex` を使ったものになり、どちらの :"
"meth:`__radd__` ともそこに着地するでしょうから、 ``a+b == b+a`` です。"

#: ../../library/numbers.rst:186
#: ../../library/numbers.rst:187
msgid ""
"Because most of the operations on any given type will be very similar, it "
"can be useful to define a helper function which generates the forward and "
Expand Down
Loading

0 comments on commit db5b62b

Please sign in to comment.