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 Nov 20, 2023
1 parent 47dfe17 commit f60cc54
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions howto/sorting.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
# Shin Saito, 2021
# tomo, 2022
# Takanori Suzuki <takanori@takanory.net>, 2023
# souma987, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-11-05 17:24+0000\n"
"POT-Creation-Date: 2023-11-17 14:14+0000\n"
"PO-Revision-Date: 2021-06-28 00:53+0000\n"
"Last-Translator: Takanori Suzuki <takanori@takanory.net>, 2023\n"
"Last-Translator: souma987, 2023\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -200,7 +201,7 @@ msgid ""
"``('blue', 1)`` is guaranteed to precede ``('blue', 2)``."
msgstr ""
"二つの *blue* のレコードが元々の順序を維持して、 ``('blue', 1)`` が "
"``('blue', 2)`` の前にあること注意してください。"
"``('blue', 2)`` の前にあることに注意してください。"

#: ../../howto/sorting.rst:162
msgid ""
Expand Down Expand Up @@ -232,7 +233,7 @@ msgstr ""

#: ../../howto/sorting.rst:190
msgid "Decorate-Sort-Undecorate"
msgstr ""
msgstr "デコレート - ソート - アンデコレート (DSU)"

#: ../../howto/sorting.rst:192
msgid "This idiom is called Decorate-Sort-Undecorate after its three steps:"
Expand Down Expand Up @@ -320,13 +321,15 @@ msgstr ""

#: ../../howto/sorting.rst:230
msgid "Comparison Functions"
msgstr ""
msgstr "比較関数"

#: ../../howto/sorting.rst:232
msgid ""
"Unlike key functions that return an absolute value for sorting, a comparison "
"function computes the relative ordering for two inputs."
msgstr ""
"ソートのための絶対的な値を返すキー関数と違って、2つの入力を受け取り、その相対"
"的な順序を計算するような関数を比較関数といいます。"

#: ../../howto/sorting.rst:235
msgid ""
Expand All @@ -336,6 +339,11 @@ msgid ""
"function such as ``cmp(a, b)`` will return a negative value for less-than, "
"zero if the inputs are equal, or a positive value for greater-than."
msgstr ""
"例えば、 `天秤 <https://upload.wikimedia.org/wikipedia/commons/1/17/"
"Balance_à_tabac_1850.JPG>`_ は2つのサンプルを比較し、より軽いか、同じか、より"
"重いかの相対的な順序を与えます。同じように、 ``cmp(a, b)`` などの比較関数はよ"
"り小さいときは負の値を、入力が等しい場合は 0 を、より大きい場合は正の値を返し"
"ます。"

#: ../../howto/sorting.rst:242
msgid ""
Expand All @@ -344,13 +352,18 @@ msgid ""
"part of their API. For example, :func:`locale.strcoll` is a comparison "
"function."
msgstr ""
"他のプログラミング言語で書かれたアルゴリズムを Python に書き直すときに比較関"
"数を目にすることがよくあります。また、その API の一部として比較関数を提供して"
"いるライブラリもあります。例えば、 :func:`locale.strcoll` は比較関数です。"

#: ../../howto/sorting.rst:246
msgid ""
"To accommodate those situations, Python provides :class:`functools."
"cmp_to_key` to wrap the comparison function to make it usable as a key "
"function::"
msgstr ""
"このような場合に対処するため、Python は比較関数をラップしてキー関数として使え"
"るようにする関数 :class:`functools.cmp_to_key` を提供しています。"

#: ../../howto/sorting.rst:253
msgid "Odds and Ends"
Expand All @@ -363,6 +376,10 @@ msgid ""
"\"alphabetical\" sort orderings can vary across cultures even if the "
"underlying alphabet is the same."
msgstr ""
"ロケールに対応したソートを行うには、キー関数に :func:`locale.strxfrm` を使う"
"か、比較関数に :func:`locale.strcoll` を使ってください。これが必要なのは、同"
"じアルファベットを使っていたとしても、文化が違えば \"アルファベット順\" の意"
"味するものが変わることがあるからです。"

#: ../../howto/sorting.rst:260
msgid ""
Expand All @@ -381,12 +398,18 @@ msgid ""
"it is easy to add a standard sort order to a class by defining an :meth:"
"`~object.__lt__` method:"
msgstr ""
"ソート関数は、2つのオブジェクトを比較する際 ``<`` を用います。したがって、ク"
"ラスに標準のソート順序を追加することは :meth:`~object.__lt__` メソッドを定義"
"することで達成できます。"

#: ../../howto/sorting.rst:284
msgid ""
"However, note that ``<`` can fall back to using :meth:`~object.__gt__` if :"
"meth:`~object.__lt__` is not implemented (see :func:`object.__lt__`)."
msgstr ""
"注意するべきなのは、 :meth:`~object.__lt__` が実装されていない場合、 ``<`` "
"は :meth:`~object.__gt__` にフォールバックする場合があるということです( :"
"func:`object.__lt__` を参照)。"

#: ../../howto/sorting.rst:287
msgid ""
Expand Down

0 comments on commit f60cc54

Please sign in to comment.