7
7
# Shin Saito, 2021
8
8
# tomo, 2022
9
9
# Takanori Suzuki <takanori@takanory.net>, 2023
10
+ # souma987, 2023
10
11
#
11
12
#, fuzzy
12
13
msgid ""
13
14
msgstr ""
14
15
"Project-Id-Version : Python 3.12\n "
15
16
"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 "
17
18
"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 "
19
20
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
20
21
"ja/)\n "
21
22
"MIME-Version : 1.0\n "
@@ -200,7 +201,7 @@ msgid ""
200
201
"``('blue', 1)`` is guaranteed to precede ``('blue', 2)``."
201
202
msgstr ""
202
203
"二つの *blue* のレコードが元々の順序を維持して、 ``('blue', 1)`` が "
203
- "``('blue', 2)`` の前にあること注意してください 。"
204
+ "``('blue', 2)`` の前にあることに注意してください 。"
204
205
205
206
#: ../../howto/sorting.rst:162
206
207
msgid ""
@@ -232,7 +233,7 @@ msgstr ""
232
233
233
234
#: ../../howto/sorting.rst:190
234
235
msgid "Decorate-Sort-Undecorate"
235
- msgstr ""
236
+ msgstr "デコレート - ソート - アンデコレート (DSU) "
236
237
237
238
#: ../../howto/sorting.rst:192
238
239
msgid "This idiom is called Decorate-Sort-Undecorate after its three steps:"
@@ -320,13 +321,15 @@ msgstr ""
320
321
321
322
#: ../../howto/sorting.rst:230
322
323
msgid "Comparison Functions"
323
- msgstr ""
324
+ msgstr "比較関数 "
324
325
325
326
#: ../../howto/sorting.rst:232
326
327
msgid ""
327
328
"Unlike key functions that return an absolute value for sorting, a comparison "
328
329
"function computes the relative ordering for two inputs."
329
330
msgstr ""
331
+ "ソートのための絶対的な値を返すキー関数と違って、2つの入力を受け取り、その相対"
332
+ "的な順序を計算するような関数を比較関数といいます。"
330
333
331
334
#: ../../howto/sorting.rst:235
332
335
msgid ""
@@ -336,6 +339,11 @@ msgid ""
336
339
"function such as ``cmp(a, b)`` will return a negative value for less-than, "
337
340
"zero if the inputs are equal, or a positive value for greater-than."
338
341
msgstr ""
342
+ "例えば、 `天秤 <https://upload.wikimedia.org/wikipedia/commons/1/17/"
343
+ "Balance_à_tabac_1850.JPG>`_ は2つのサンプルを比較し、より軽いか、同じか、より"
344
+ "重いかの相対的な順序を与えます。同じように、 ``cmp(a, b)`` などの比較関数はよ"
345
+ "り小さいときは負の値を、入力が等しい場合は 0 を、より大きい場合は正の値を返し"
346
+ "ます。"
339
347
340
348
#: ../../howto/sorting.rst:242
341
349
msgid ""
@@ -344,13 +352,18 @@ msgid ""
344
352
"part of their API. For example, :func:`locale.strcoll` is a comparison "
345
353
"function."
346
354
msgstr ""
355
+ "他のプログラミング言語で書かれたアルゴリズムを Python に書き直すときに比較関"
356
+ "数を目にすることがよくあります。また、その API の一部として比較関数を提供して"
357
+ "いるライブラリもあります。例えば、 :func:`locale.strcoll` は比較関数です。"
347
358
348
359
#: ../../howto/sorting.rst:246
349
360
msgid ""
350
361
"To accommodate those situations, Python provides :class:`functools."
351
362
"cmp_to_key` to wrap the comparison function to make it usable as a key "
352
363
"function::"
353
364
msgstr ""
365
+ "このような場合に対処するため、Python は比較関数をラップしてキー関数として使え"
366
+ "るようにする関数 :class:`functools.cmp_to_key` を提供しています。"
354
367
355
368
#: ../../howto/sorting.rst:253
356
369
msgid "Odds and Ends"
@@ -363,6 +376,10 @@ msgid ""
363
376
"\" alphabetical\" sort orderings can vary across cultures even if the "
364
377
"underlying alphabet is the same."
365
378
msgstr ""
379
+ "ロケールに対応したソートを行うには、キー関数に :func:`locale.strxfrm` を使う"
380
+ "か、比較関数に :func:`locale.strcoll` を使ってください。これが必要なのは、同"
381
+ "じアルファベットを使っていたとしても、文化が違えば \" アルファベット順\" の意"
382
+ "味するものが変わることがあるからです。"
366
383
367
384
#: ../../howto/sorting.rst:260
368
385
msgid ""
@@ -381,12 +398,18 @@ msgid ""
381
398
"it is easy to add a standard sort order to a class by defining an :meth:"
382
399
"`~object.__lt__` method:"
383
400
msgstr ""
401
+ "ソート関数は、2つのオブジェクトを比較する際 ``<`` を用います。したがって、ク"
402
+ "ラスに標準のソート順序を追加することは :meth:`~object.__lt__` メソッドを定義"
403
+ "することで達成できます。"
384
404
385
405
#: ../../howto/sorting.rst:284
386
406
msgid ""
387
407
"However, note that ``<`` can fall back to using :meth:`~object.__gt__` if :"
388
408
"meth:`~object.__lt__` is not implemented (see :func:`object.__lt__`)."
389
409
msgstr ""
410
+ "注意するべきなのは、 :meth:`~object.__lt__` が実装されていない場合、 ``<`` "
411
+ "は :meth:`~object.__gt__` にフォールバックする場合があるということです( :"
412
+ "func:`object.__lt__` を参照)。"
390
413
391
414
#: ../../howto/sorting.rst:287
392
415
msgid ""
0 commit comments