Skip to content

Commit 3e7c3fe

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent 8b35f42 commit 3e7c3fe

File tree

3 files changed

+139
-6
lines changed

3 files changed

+139
-6
lines changed

c-api/conversion.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.13\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2024-08-23 14:16+0000\n"
15+
"POT-Creation-Date: 2024-09-13 14:16+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1717
"Last-Translator: Arihiro TAKASE, 2023\n"
1818
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"

c-api/memoryview.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.13\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2024-08-23 14:16+0000\n"
16+
"POT-Creation-Date: 2024-09-13 14:16+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:49+0000\n"
1818
"Last-Translator: Osamu NAKAMURA, 2023\n"
1919
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"

library/functions.po

+137-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ msgid ""
2727
msgstr ""
2828
"Project-Id-Version: Python 3.13\n"
2929
"Report-Msgid-Bugs-To: \n"
30-
"POT-Creation-Date: 2024-09-06 14:16+0000\n"
30+
"POT-Creation-Date: 2024-09-13 14:16+0000\n"
3131
"PO-Revision-Date: 2021-06-28 01:06+0000\n"
3232
"Last-Translator: TENMYO Masakazu, 2024\n"
3333
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -2153,6 +2153,10 @@ msgid ""
21532153
" for block in iter(partial(f.read, 64), b''):\n"
21542154
" process_block(block)"
21552155
msgstr ""
2156+
"from functools import partial\n"
2157+
"with open('mydata.db', 'rb') as f:\n"
2158+
" for block in iter(partial(f.read, 64), b''):\n"
2159+
" process_block(block)"
21562160

21572161
#: ../../library/functions.rst:1116
21582162
msgid ""
@@ -2202,12 +2206,15 @@ msgid ""
22022206
"At class scope, it returns the namespace that will be passed to the "
22032207
"metaclass constructor."
22042208
msgstr ""
2209+
"クラス スコープでは、メタクラス コンストラクタに渡された名前空間を返します。"
22052210

22062211
#: ../../library/functions.rst:1148
22072212
msgid ""
22082213
"When using ``exec()`` or ``eval()`` with separate local and global "
22092214
"arguments, it returns the local namespace passed in to the function call."
22102215
msgstr ""
2216+
"``exec()`` や ``eval()`` が引数 local と global が分けて使われてる場合では、"
2217+
"関数の呼び出しで渡されたローカル名前空間を返します。"
22112218

22122219
#: ../../library/functions.rst:1151
22132220
msgid ""
@@ -2218,6 +2225,11 @@ msgid ""
22182225
"deleting local variables will immediately affect the contents of the "
22192226
"returned mapping object."
22202227
msgstr ""
2228+
"上記どの場合でも、特定の実行フレーム内での各 ``locals()`` は *同じ* マッピン"
2229+
"グ オブジェクトを返します。 ``locals()`` から返されたマッピング オブジェクト"
2230+
"を通じて行われた変更は、代入、再代入、または削除されたローカル変数として可視"
2231+
"化されます。そしてローカル変数の代入、再代入、または削除は、返されたマッピン"
2232+
"グ オブジェクトの内容へ直ちに反映されます。"
22212233

22222234
#: ../../library/functions.rst:1158
22232235
msgid ""
@@ -2230,6 +2242,12 @@ msgid ""
22302242
"variables and nonlocal cell references does *not* affect the contents of "
22312243
"previously returned dictionaries."
22322244
msgstr ""
2245+
"term:`optimized scope` (関数、ジェネレーター、コルーチンを含む)では、 "
2246+
"``locals()`` を呼び出すと、代わりに関数のローカル変数と非ローカル セル参照の"
2247+
"現在のバインディングを含んだ新しい辞書を返します。この場合、返された辞書を"
2248+
"使って行われた変更は、対応するローカル変数や非ローカル セル参照には *書き戻さ"
2249+
"れません* 。また、ローカル変数や非ローカル セル参照へ代入、再代入、削除を行っ"
2250+
"ても、以前に返された辞書の内容には *影響しません* 。"
22332251

22342252
#: ../../library/functions.rst:1167
22352253
msgid ""
@@ -2239,18 +2257,26 @@ msgid ""
22392257
"other scopes, it behaves as if the comprehension were running as a nested "
22402258
"function."
22412259
msgstr ""
2260+
"``locals()`` 呼び出しが関数、ジェネレータ、コルーチン内の内包表記内にあれば、"
2261+
"これはそれを含むスコープから呼び出すことと同等です。ただし内包表記の初期化さ"
2262+
"れた反復変数が含まれます。他のスコープでは、内包表記がネストされた関数として"
2263+
"実行されているかのように振舞います。"
22422264

22432265
#: ../../library/functions.rst:1173
22442266
msgid ""
22452267
"Calling ``locals()`` as part of a generator expression is equivalent to "
22462268
"calling it in a nested generator function."
22472269
msgstr ""
2270+
"``locals()`` 呼び出しがジェネレータ式の一部であれば、ネストされたジェネレータ"
2271+
"関数内の呼び出しと同等です。"
22482272

22492273
#: ../../library/functions.rst:1176
22502274
msgid ""
22512275
"The behaviour of ``locals()`` in a comprehension has been updated as "
22522276
"described in :pep:`709`."
22532277
msgstr ""
2278+
"内包表記における ``locals()`` の振る舞い は、 :pep:`709` で説明されているよう"
2279+
"に更新されました。"
22542280

22552281
#: ../../library/functions.rst:1180
22562282
msgid ""
@@ -2260,6 +2286,10 @@ msgid ""
22602286
"being defined, the behaviour in other scopes remains unchanged from previous "
22612287
"versions."
22622288
msgstr ""
2289+
":pep:`667` の一部として、この関数から返されるマッピングオブジェクトを変更する"
2290+
"セマンティクスが定義されました。 :term:`optimized scopes <optimized scope>` "
2291+
"の振る舞いは上記のようになりました。定義されただけで、その他のスコープの振る"
2292+
"舞いは以前のバージョンのままです。"
22632293

22642294
#: ../../library/functions.rst:1190
22652295
msgid ""
@@ -2454,6 +2484,16 @@ msgid ""
24542484
"reading and writing raw bytes use binary mode and leave *encoding* "
24552485
"unspecified.) The available modes are:"
24562486
msgstr ""
2487+
"*mode* オプション文字列はファイルが開かれる際のモードを指定します。デフォルト"
2488+
"は ``'r'`` で、読み込み用にテキストモードで開くという意味です。その他によく使"
2489+
"われるモードとして、書き込み用の ``'w'`` (ファイルが既に存在する場合は上書き"
2490+
"します) 、排他的な生成をあらわす ``'x'`` 、そして追記用の ``'a'`` ( *いくつか"
2491+
"の* Unix システムでは、 *すべての* 書き込みは現在のシーク位置にかかわらずファ"
2492+
"イルの末尾に追記する、という意味です) です。テキストモードで *encoding* が指"
2493+
"定されない場合に使われるエンコーディングは、プラットフォーム依存です: 現在の"
2494+
"ロケールエンコーディングを取得するために :func:`locale.getencoding` が呼ばれ"
2495+
"ます。 (生のバイトデータを読み書きする際にはバイナリモードを使い、 "
2496+
"*encoding* は指定しません。) 指定できるモードは以下の通りです:"
24572497

24582498
#: ../../library/functions.rst:1342
24592499
msgid "Character"
@@ -2789,6 +2829,15 @@ msgid ""
27892829
"...\n"
27902830
">>> os.close(dir_fd) # don't leak a file descriptor"
27912831
msgstr ""
2832+
">>> import os\n"
2833+
">>> dir_fd = os.open('somedir', os.O_RDONLY)\n"
2834+
">>> def opener(path, flags):\n"
2835+
"... return os.open(path, flags, dir_fd=dir_fd)\n"
2836+
"...\n"
2837+
">>> with open('spamspam.txt', 'w', opener=opener) as f:\n"
2838+
"... print('This will be written to somedir/spamspam.txt', file=f)\n"
2839+
"...\n"
2840+
">>> os.close(dir_fd) # ファイル記述子の解放漏れがないように"
27922841

27932842
#: ../../library/functions.rst:1480
27942843
msgid ""
@@ -2976,6 +3025,10 @@ msgid ""
29763025
">>> 23 * 38 % 97 == 1\n"
29773026
"True"
29783027
msgstr ""
3028+
">>> pow(38, -1, mod=97)\n"
3029+
"23\n"
3030+
">>> 23 * 38 % 97 == 1\n"
3031+
"True"
29793032

29803033
#: ../../library/functions.rst:1578
29813034
msgid ""
@@ -3077,6 +3130,20 @@ msgid ""
30773130
"\n"
30783131
" x = property(getx, setx, delx, \"I'm the 'x' property.\")"
30793132
msgstr ""
3133+
"class C:\n"
3134+
" def __init__(self):\n"
3135+
" self._x = None\n"
3136+
"\n"
3137+
" def getx(self):\n"
3138+
" return self._x\n"
3139+
"\n"
3140+
" def setx(self, value):\n"
3141+
" self._x = value\n"
3142+
"\n"
3143+
" def delx(self):\n"
3144+
" del self._x\n"
3145+
"\n"
3146+
" x = property(getx, setx, delx, \"I'm the 'x' property.\")"
30803147

30813148
#: ../../library/functions.rst:1638
30823149
msgid ""
@@ -3110,6 +3177,14 @@ msgid ""
31103177
" \"\"\"Get the current voltage.\"\"\"\n"
31113178
" return self._voltage"
31123179
msgstr ""
3180+
"class Parrot:\n"
3181+
" def __init__(self):\n"
3182+
" self._voltage = 100000\n"
3183+
"\n"
3184+
" @property\n"
3185+
" def voltage(self):\n"
3186+
" \"\"\"Get the current voltage.\"\"\"\n"
3187+
" return self._voltage"
31133188

31143189
#: ../../library/functions.rst:1654
31153190
msgid ""
@@ -3152,6 +3227,22 @@ msgid ""
31523227
" def x(self):\n"
31533228
" del self._x"
31543229
msgstr ""
3230+
"class C:\n"
3231+
" def __init__(self):\n"
3232+
" self._x = None\n"
3233+
"\n"
3234+
" @property\n"
3235+
" def x(self):\n"
3236+
" \"\"\"I'm the 'x' property.\"\"\"\n"
3237+
" return self._x\n"
3238+
"\n"
3239+
" @x.setter\n"
3240+
" def x(self, value):\n"
3241+
" self._x = value\n"
3242+
"\n"
3243+
" @x.deleter\n"
3244+
" def x(self):\n"
3245+
" del self._x"
31553246

31563247
#: ../../library/functions.rst:1686
31573248
msgid ""
@@ -3178,7 +3269,7 @@ msgstr "属性オブジェクトのドックストリングが書き込み可能
31783269
msgid ""
31793270
"Attribute holding the name of the property. The name of the property can be "
31803271
"changed at runtime."
3181-
msgstr ""
3272+
msgstr "プロパティ名を保持する属性。プロパティ名は実行時に変更できます。"
31823273

31833274
#: ../../library/functions.rst:1709
31843275
msgid ""
@@ -3223,6 +3314,13 @@ msgid ""
32233314
" def __repr__(self):\n"
32243315
" return f\"Person('{self.name}', {self.age})\""
32253316
msgstr ""
3317+
"class Person:\n"
3318+
" def __init__(self, name, age):\n"
3319+
" self.name = name\n"
3320+
" self.age = age\n"
3321+
"\n"
3322+
" def __repr__(self):\n"
3323+
" return f\"Person('{self.name}', {self.age})\""
32263324

32273325
#: ../../library/functions.rst:1739
32283326
msgid ""
@@ -3477,6 +3575,9 @@ msgid ""
34773575
" @staticmethod\n"
34783576
" def f(arg1, arg2, argN): ..."
34793577
msgstr ""
3578+
"class C:\n"
3579+
" @staticmethod\n"
3580+
" def f(arg1, arg2, argN): ..."
34803581

34813582
#: ../../library/functions.rst:1876
34823583
msgid ""
@@ -3530,6 +3631,11 @@ msgid ""
35303631
"class C:\n"
35313632
" method = staticmethod(regular_function)"
35323633
msgstr ""
3634+
"def regular_function():\n"
3635+
" ...\n"
3636+
"\n"
3637+
"class C:\n"
3638+
" method = staticmethod(regular_function)"
35333639

35343640
#: ../../library/functions.rst:1900
35353641
msgid "For more information on static methods, see :ref:`types`."
@@ -3633,6 +3739,9 @@ msgid ""
36333739
"`getattr` and :func:`super`. The attribute is dynamic and can change "
36343740
"whenever the inheritance hierarchy is updated."
36353741
msgstr ""
3742+
"*object_or_type* に対応するクラスの :attr:`~class.__mro__` 属性は、 :func:"
3743+
"`getattr` と :func:`super` の 両方で使われる、メソッド解決の探索順序を列記し"
3744+
"ます。 この属性は動的で、継承の階層構造が更新されれば、随時変化します。"
36363745

36373746
#: ../../library/functions.rst:1962
36383747
msgid ""
@@ -3706,6 +3815,10 @@ msgid ""
37063815
" super().method(arg) # This does the same thing as:\n"
37073816
" # super(C, self).method(arg)"
37083817
msgstr ""
3818+
"class C(B):\n"
3819+
" def method(self, arg):\n"
3820+
" super().method(arg) # これは次と同じことを行います:\n"
3821+
" # super(C, self).method(arg)"
37093822

37103823
#: ../../library/functions.rst:1996
37113824
msgid ""
@@ -3897,6 +4010,12 @@ msgid ""
38974010
"(2, 'spice')\n"
38984011
"(3, 'everything nice')"
38994012
msgstr ""
4013+
">>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']):\n"
4014+
"... print(item)\n"
4015+
"...\n"
4016+
"(1, 'sugar')\n"
4017+
"(2, 'spice')\n"
4018+
"(3, 'everything nice')"
39004019

39014020
#: ../../library/functions.rst:2107
39024021
msgid ""
@@ -3953,6 +4072,8 @@ msgid ""
39534072
">>> list(zip(range(3), ['fee', 'fi', 'fo', 'fum']))\n"
39544073
"[(0, 'fee'), (1, 'fi'), (2, 'fo')]"
39554074
msgstr ""
4075+
">>> list(zip(range(3), ['fee', 'fi', 'fo', 'fum']))\n"
4076+
"[(0, 'fee'), (1, 'fi'), (2, 'fo')]"
39564077

39574078
#: ../../library/functions.rst:2130
39584079
msgid ""
@@ -3969,6 +4090,8 @@ msgid ""
39694090
">>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True))\n"
39704091
"[('a', 1), ('b', 2), ('c', 3)]"
39714092
msgstr ""
4093+
">>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True))\n"
4094+
"[('a', 1), ('b', 2), ('c', 3)]"
39724095

39734096
#: ../../library/functions.rst:2137
39744097
msgid ""
@@ -4041,6 +4164,13 @@ msgid ""
40414164
">>> x == list(x2) and y == list(y2)\n"
40424165
"True"
40434166
msgstr ""
4167+
">>> x = [1, 2, 3]\n"
4168+
">>> y = [4, 5, 6]\n"
4169+
">>> list(zip(x, y))\n"
4170+
"[(1, 4), (2, 5), (3, 6)]\n"
4171+
">>> x2, y2 = zip(*zip(x, y))\n"
4172+
">>> x == list(x2) and y == list(y2)\n"
4173+
"True"
40444174

40454175
#: ../../library/functions.rst:2185
40464176
msgid "Added the ``strict`` argument."
@@ -4124,15 +4254,15 @@ msgstr ""
41244254

41254255
#: ../../library/functions.rst:2230
41264256
msgid "spam = __import__('spam', globals(), locals(), [], 0)"
4127-
msgstr ""
4257+
msgstr "spam = __import__('spam', globals(), locals(), [], 0)"
41284258

41294259
#: ../../library/functions.rst:2232
41304260
msgid "The statement ``import spam.ham`` results in this call::"
41314261
msgstr "文 ``import spam.ham`` は、この呼び出しになります::"
41324262

41334263
#: ../../library/functions.rst:2234
41344264
msgid "spam = __import__('spam.ham', globals(), locals(), [], 0)"
4135-
msgstr ""
4265+
msgstr "spam = __import__('spam.ham', globals(), locals(), [], 0)"
41364266

41374267
#: ../../library/functions.rst:2236
41384268
msgid ""
@@ -4157,6 +4287,9 @@ msgid ""
41574287
"eggs = _temp.eggs\n"
41584288
"saus = _temp.sausage"
41594289
msgstr ""
4290+
"_temp = __import__('spam.ham', globals(), locals(), ['eggs', 'sausage'], 0)\n"
4291+
"eggs = _temp.eggs\n"
4292+
"saus = _temp.sausage"
41604293

41614294
#: ../../library/functions.rst:2246
41624295
msgid ""

0 commit comments

Comments
 (0)