Skip to content

Commit f60cc54

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent 47dfe17 commit f60cc54

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

howto/sorting.po

+28-5
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
# Shin Saito, 2021
88
# tomo, 2022
99
# Takanori Suzuki <takanori@takanory.net>, 2023
10+
# souma987, 2023
1011
#
1112
#, fuzzy
1213
msgid ""
1314
msgstr ""
1415
"Project-Id-Version: Python 3.12\n"
1516
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2023-11-05 17:24+0000\n"
17+
"POT-Creation-Date: 2023-11-17 14:14+0000\n"
1718
"PO-Revision-Date: 2021-06-28 00:53+0000\n"
18-
"Last-Translator: Takanori Suzuki <takanori@takanory.net>, 2023\n"
19+
"Last-Translator: souma987, 2023\n"
1920
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
2021
"ja/)\n"
2122
"MIME-Version: 1.0\n"
@@ -200,7 +201,7 @@ msgid ""
200201
"``('blue', 1)`` is guaranteed to precede ``('blue', 2)``."
201202
msgstr ""
202203
"二つの *blue* のレコードが元々の順序を維持して、 ``('blue', 1)`` が "
203-
"``('blue', 2)`` の前にあること注意してください。"
204+
"``('blue', 2)`` の前にあることに注意してください。"
204205

205206
#: ../../howto/sorting.rst:162
206207
msgid ""
@@ -232,7 +233,7 @@ msgstr ""
232233

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

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

321322
#: ../../howto/sorting.rst:230
322323
msgid "Comparison Functions"
323-
msgstr ""
324+
msgstr "比較関数"
324325

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

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

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

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

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

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

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

391414
#: ../../howto/sorting.rst:287
392415
msgid ""

0 commit comments

Comments
 (0)