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 Sep 15, 2024
1 parent 8b35f42 commit 3e7c3fe
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 6 deletions.
2 changes: 1 addition & 1 deletion c-api/conversion.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-23 14:16+0000\n"
"POT-Creation-Date: 2024-09-13 14:16+0000\n"
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
"Last-Translator: Arihiro TAKASE, 2023\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
Expand Down
2 changes: 1 addition & 1 deletion c-api/memoryview.po
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-23 14:16+0000\n"
"POT-Creation-Date: 2024-09-13 14:16+0000\n"
"PO-Revision-Date: 2021-06-28 00:49+0000\n"
"Last-Translator: Osamu NAKAMURA, 2023\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
Expand Down
141 changes: 137 additions & 4 deletions library/functions.po
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-06 14:16+0000\n"
"POT-Creation-Date: 2024-09-13 14:16+0000\n"
"PO-Revision-Date: 2021-06-28 01:06+0000\n"
"Last-Translator: TENMYO Masakazu, 2024\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
Expand Down Expand Up @@ -2153,6 +2153,10 @@ msgid ""
" for block in iter(partial(f.read, 64), b''):\n"
" process_block(block)"
msgstr ""
"from functools import partial\n"
"with open('mydata.db', 'rb') as f:\n"
" for block in iter(partial(f.read, 64), b''):\n"
" process_block(block)"

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

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

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

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

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

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

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

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

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

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

#: ../../library/functions.rst:1480
msgid ""
Expand Down Expand Up @@ -2976,6 +3025,10 @@ msgid ""
">>> 23 * 38 % 97 == 1\n"
"True"
msgstr ""
">>> pow(38, -1, mod=97)\n"
"23\n"
">>> 23 * 38 % 97 == 1\n"
"True"

#: ../../library/functions.rst:1578
msgid ""
Expand Down Expand Up @@ -3077,6 +3130,20 @@ msgid ""
"\n"
" x = property(getx, setx, delx, \"I'm the 'x' property.\")"
msgstr ""
"class C:\n"
" def __init__(self):\n"
" self._x = None\n"
"\n"
" def getx(self):\n"
" return self._x\n"
"\n"
" def setx(self, value):\n"
" self._x = value\n"
"\n"
" def delx(self):\n"
" del self._x\n"
"\n"
" x = property(getx, setx, delx, \"I'm the 'x' property.\")"

#: ../../library/functions.rst:1638
msgid ""
Expand Down Expand Up @@ -3110,6 +3177,14 @@ msgid ""
" \"\"\"Get the current voltage.\"\"\"\n"
" return self._voltage"
msgstr ""
"class Parrot:\n"
" def __init__(self):\n"
" self._voltage = 100000\n"
"\n"
" @property\n"
" def voltage(self):\n"
" \"\"\"Get the current voltage.\"\"\"\n"
" return self._voltage"

#: ../../library/functions.rst:1654
msgid ""
Expand Down Expand Up @@ -3152,6 +3227,22 @@ msgid ""
" def x(self):\n"
" del self._x"
msgstr ""
"class C:\n"
" def __init__(self):\n"
" self._x = None\n"
"\n"
" @property\n"
" def x(self):\n"
" \"\"\"I'm the 'x' property.\"\"\"\n"
" return self._x\n"
"\n"
" @x.setter\n"
" def x(self, value):\n"
" self._x = value\n"
"\n"
" @x.deleter\n"
" def x(self):\n"
" del self._x"

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

#: ../../library/functions.rst:1709
msgid ""
Expand Down Expand Up @@ -3223,6 +3314,13 @@ msgid ""
" def __repr__(self):\n"
" return f\"Person('{self.name}', {self.age})\""
msgstr ""
"class Person:\n"
" def __init__(self, name, age):\n"
" self.name = name\n"
" self.age = age\n"
"\n"
" def __repr__(self):\n"
" return f\"Person('{self.name}', {self.age})\""

#: ../../library/functions.rst:1739
msgid ""
Expand Down Expand Up @@ -3477,6 +3575,9 @@ msgid ""
" @staticmethod\n"
" def f(arg1, arg2, argN): ..."
msgstr ""
"class C:\n"
" @staticmethod\n"
" def f(arg1, arg2, argN): ..."

#: ../../library/functions.rst:1876
msgid ""
Expand Down Expand Up @@ -3530,6 +3631,11 @@ msgid ""
"class C:\n"
" method = staticmethod(regular_function)"
msgstr ""
"def regular_function():\n"
" ...\n"
"\n"
"class C:\n"
" method = staticmethod(regular_function)"

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

#: ../../library/functions.rst:1962
msgid ""
Expand Down Expand Up @@ -3706,6 +3815,10 @@ msgid ""
" super().method(arg) # This does the same thing as:\n"
" # super(C, self).method(arg)"
msgstr ""
"class C(B):\n"
" def method(self, arg):\n"
" super().method(arg) # これは次と同じことを行います:\n"
" # super(C, self).method(arg)"

#: ../../library/functions.rst:1996
msgid ""
Expand Down Expand Up @@ -3897,6 +4010,12 @@ msgid ""
"(2, 'spice')\n"
"(3, 'everything nice')"
msgstr ""
">>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']):\n"
"... print(item)\n"
"...\n"
"(1, 'sugar')\n"
"(2, 'spice')\n"
"(3, 'everything nice')"

#: ../../library/functions.rst:2107
msgid ""
Expand Down Expand Up @@ -3953,6 +4072,8 @@ msgid ""
">>> list(zip(range(3), ['fee', 'fi', 'fo', 'fum']))\n"
"[(0, 'fee'), (1, 'fi'), (2, 'fo')]"
msgstr ""
">>> list(zip(range(3), ['fee', 'fi', 'fo', 'fum']))\n"
"[(0, 'fee'), (1, 'fi'), (2, 'fo')]"

#: ../../library/functions.rst:2130
msgid ""
Expand All @@ -3969,6 +4090,8 @@ msgid ""
">>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True))\n"
"[('a', 1), ('b', 2), ('c', 3)]"
msgstr ""
">>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True))\n"
"[('a', 1), ('b', 2), ('c', 3)]"

#: ../../library/functions.rst:2137
msgid ""
Expand Down Expand Up @@ -4041,6 +4164,13 @@ msgid ""
">>> x == list(x2) and y == list(y2)\n"
"True"
msgstr ""
">>> x = [1, 2, 3]\n"
">>> y = [4, 5, 6]\n"
">>> list(zip(x, y))\n"
"[(1, 4), (2, 5), (3, 6)]\n"
">>> x2, y2 = zip(*zip(x, y))\n"
">>> x == list(x2) and y == list(y2)\n"
"True"

#: ../../library/functions.rst:2185
msgid "Added the ``strict`` argument."
Expand Down Expand Up @@ -4124,15 +4254,15 @@ msgstr ""

#: ../../library/functions.rst:2230
msgid "spam = __import__('spam', globals(), locals(), [], 0)"
msgstr ""
msgstr "spam = __import__('spam', globals(), locals(), [], 0)"

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

#: ../../library/functions.rst:2234
msgid "spam = __import__('spam.ham', globals(), locals(), [], 0)"
msgstr ""
msgstr "spam = __import__('spam.ham', globals(), locals(), [], 0)"

#: ../../library/functions.rst:2236
msgid ""
Expand All @@ -4157,6 +4287,9 @@ msgid ""
"eggs = _temp.eggs\n"
"saus = _temp.sausage"
msgstr ""
"_temp = __import__('spam.ham', globals(), locals(), ['eggs', 'sausage'], 0)\n"
"eggs = _temp.eggs\n"
"saus = _temp.sausage"

#: ../../library/functions.rst:2246
msgid ""
Expand Down

0 comments on commit 3e7c3fe

Please sign in to comment.