Browse Source

Translation of mta.po is finished.

pull/1486/merge
Episword 7 years ago
committed by Rapptz
parent
commit
c662bd9738
  1. 285
      docs/locale/ja/LC_MESSAGES/migrating_to_async.po

285
docs/locale/ja/LC_MESSAGES/migrating_to_async.po

@ -2,7 +2,7 @@
# Copyright (C) 2015-2017, Rapptz # Copyright (C) 2015-2017, Rapptz
# This file is distributed under the same license as the discord.py package. # This file is distributed under the same license as the discord.py package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2018. # FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
# #
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
@ -10,61 +10,67 @@ msgstr ""
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-31 14:21-0400\n" "POT-Creation-Date: 2018-07-31 14:21-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Episword <[email protected]>, 2018\n"
"Language-Team: LANGUAGE <[email protected]>\n" "Language-Team: Japanese (Japan) (https://www.transifex.com/discord-py/teams/88924/ja_JP/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.5.3\n" "Generated-By: Babel 2.5.3\n"
"Language: ja_JP\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../migrating_to_async.rst:8 #: ../../migrating_to_async.rst:8
msgid "Migrating to v0.10.0" msgid "Migrating to v0.10.0"
msgstr "" msgstr "v0.10.0への移行"
#: ../../migrating_to_async.rst:10 #: ../../migrating_to_async.rst:10
msgid "" msgid ""
"v0.10.0 is one of the biggest breaking changes in the library due to " "v0.10.0 is one of the biggest breaking changes in the library due to massive"
"massive fundamental changes in how the library operates." " fundamental changes in how the library operates."
msgstr "" msgstr "v0.10.0は、ライブラリの根本的動作が大幅に変更された、ライブラリの中でも最も大きな更新の一つです。"
#: ../../migrating_to_async.rst:13 #: ../../migrating_to_async.rst:13
msgid "" msgid ""
"The biggest major change is that the library has dropped support to all " "The biggest major change is that the library has dropped support to all "
"versions prior to Python 3.4.2. This was made to support ``asyncio``, in " "versions prior to Python 3.4.2. This was made to support ``asyncio``, in "
"which more detail can be seen :issue:`in the corresponding issue <50>`. " "which more detail can be seen :issue:`in the corresponding issue <50>`. To "
"To reiterate this, the implication is that **python version 2.7 and 3.3 " "reiterate this, the implication is that **python version 2.7 and 3.3 are no "
"are no longer supported**." "longer supported**."
msgstr "" msgstr ""
"最大の大きな変更点はPython 3.4.2以前のすべてのバージョンのサポートが打ち切られたことです。これは ``asyncio`` "
"をサポートするためで、対応する :issue:`in the corresponding issue <50>` "
"で詳細が見られます。繰り返しになりますが、 **Python 2.7及びPython3.3は、既にサポートされていません** 。"
#: ../../migrating_to_async.rst:18 #: ../../migrating_to_async.rst:18
msgid "Below are all the other major changes from v0.9.0 to v0.10.0." msgid "Below are all the other major changes from v0.9.0 to v0.10.0."
msgstr "" msgstr "以下は、v0.9.0からv0.10.0までのその他の主要な変更点です。"
#: ../../migrating_to_async.rst:21 #: ../../migrating_to_async.rst:21
msgid "Event Registration" msgid "Event Registration"
msgstr "" msgstr "イベント登録"
#: ../../migrating_to_async.rst:23 #: ../../migrating_to_async.rst:23
msgid "" msgid ""
"All events before were registered using :meth:`Client.event`. While this " "All events before were registered using :meth:`Client.event`. While this is "
"is still possible, the events must be decorated with " "still possible, the events must be decorated with ``@asyncio.coroutine``."
"``@asyncio.coroutine``."
msgstr "" msgstr ""
"以前まではすべてのイベントが :meth:`Client.event` を使用して登録されていました。このやり方はまだ可能ですが、 "
"``@asyncio.coroutine`` で修飾が必要です。"
#: ../../migrating_to_async.rst:26 ../../migrating_to_async.rst:71 #: ../../migrating_to_async.rst:26 ../../migrating_to_async.rst:71
#: ../../migrating_to_async.rst:105 ../../migrating_to_async.rst:166 #: ../../migrating_to_async.rst:105 ../../migrating_to_async.rst:166
msgid "Before:" msgid "Before:"
msgstr "" msgstr "更新前:"
#: ../../migrating_to_async.rst:34 ../../migrating_to_async.rst:83 #: ../../migrating_to_async.rst:34 ../../migrating_to_async.rst:83
#: ../../migrating_to_async.rst:111 ../../migrating_to_async.rst:174 #: ../../migrating_to_async.rst:111 ../../migrating_to_async.rst:174
#: ../../migrating_to_async.rst:284 #: ../../migrating_to_async.rst:284
msgid "After:" msgid "After:"
msgstr "" msgstr "更新後:"
#: ../../migrating_to_async.rst:43 #: ../../migrating_to_async.rst:43
msgid "Or in Python 3.5+:" msgid "Or in Python 3.5+:"
msgstr "" msgstr "Python 3.5以降の場合:"
#: ../../migrating_to_async.rst:51 #: ../../migrating_to_async.rst:51
msgid "" msgid ""
@ -72,17 +78,21 @@ msgid ""
"(:meth:`Client.async_event`) is provided for easier registration. For " "(:meth:`Client.async_event`) is provided for easier registration. For "
"example:" "example:"
msgstr "" msgstr ""
"多くの型付けがあるため、登録を簡単にするためにユーティリティデコレータ (:meth:`Client.async_event`) "
"が用意されています。例:"
#: ../../migrating_to_async.rst:61 #: ../../migrating_to_async.rst:61
msgid "" msgid ""
"Be aware however, that this is still a coroutine and your other functions" "Be aware however, that this is still a coroutine and your other functions "
" that are coroutines must be decorated with ``@asyncio.coroutine`` or be " "that are coroutines must be decorated with ``@asyncio.coroutine`` or be "
"``async def``." "``async def``."
msgstr "" msgstr ""
"しかし、これはまだコルーチンであり、コルーチンである関数には ``@asyncio.coroutine`` あるいは ``async def`` "
"での修飾が必要であることに注意してください。"
#: ../../migrating_to_async.rst:65 #: ../../migrating_to_async.rst:65
msgid "Event Changes" msgid "Event Changes"
msgstr "" msgstr "イベントの変更"
#: ../../migrating_to_async.rst:67 #: ../../migrating_to_async.rst:67
msgid "" msgid ""
@ -90,6 +100,8 @@ msgid ""
"separate states. The main events that were changed were the ``_update`` " "separate states. The main events that were changed were the ``_update`` "
"events since previously they had no context on what was changed." "events since previously they had no context on what was changed."
msgstr "" msgstr ""
"v0.9.0でいくつかのイベントは、別の状態を持たないために、役に立たないと考えられていました。変更された主なイベントは、更新前と更新後の二つの状態を持つ"
" ``_update`` イベントです。"
#: ../../migrating_to_async.rst:93 #: ../../migrating_to_async.rst:93
msgid "" msgid ""
@ -98,334 +110,359 @@ msgid ""
"information. Other removed events include ``on_socket_closed``, " "information. Other removed events include ``on_socket_closed``, "
"``on_socket_receive``, and ``on_socket_opened``." "``on_socket_receive``, and ``on_socket_opened``."
msgstr "" msgstr ""
"``on_status`` が削除されていることに注意してください。似たような機能が使いたい場合は、 :func:`on_member_update`"
" を使用します。詳細は :ref:`discord-api-events` を参照してください。他に、 ``on_socket_closed`` 、 "
"``on_socket_receive`` や ``on_socket_opened`` も削除されています。"
#: ../../migrating_to_async.rst:98 #: ../../migrating_to_async.rst:98
msgid "Coroutines" msgid "Coroutines"
msgstr "" msgstr "コルーチン"
#: ../../migrating_to_async.rst:100 #: ../../migrating_to_async.rst:100
msgid "" msgid ""
"The biggest change that the library went through is that almost every " "The biggest change that the library went through is that almost every "
"function in :class:`Client` was changed to be a `coroutine " "function in :class:`Client` was changed to be a `coroutine "
"<https://docs.python.org/3/library/asyncio-task.html>`_. Functions that " "<https://docs.python.org/3/library/asyncio-task.html>`_. Functions that are "
"are marked as a coroutine in the documentation must be awaited from or " "marked as a coroutine in the documentation must be awaited from or yielded "
"yielded from in order for the computation to be done. For example..." "from in order for the computation to be done. For example..."
msgstr "" msgstr ""
"ライブラリの最大の変更点は :class:`Client` を使用していたほとんどの関数が `コルーチン "
"<https://docs.python.org/3/library/asyncio-task.html>`_ "
"へと変更されたことです。ドキュメントのコルーチンとして定義された関数は、処理の終了を待機します。例えば、"
#: ../../migrating_to_async.rst:120 #: ../../migrating_to_async.rst:120
msgid "" msgid ""
"In order for you to ``yield from`` or ``await`` a coroutine then your " "In order for you to ``yield from`` or ``await`` a coroutine then your "
"function must be decorated with ``@asyncio.coroutine`` or ``async def``." "function must be decorated with ``@asyncio.coroutine`` or ``async def``."
msgstr "" msgstr ""
"``yield from`` あるいは ``await`` を使用するには、関数が ``@asyncio.coroutine`` または ``async"
" def`` で修飾されている必要があります。"
#: ../../migrating_to_async.rst:124 #: ../../migrating_to_async.rst:124
msgid "Iterables" msgid "Iterables"
msgstr "" msgstr "イテラブル"
#: ../../migrating_to_async.rst:126 #: ../../migrating_to_async.rst:126
msgid "" msgid ""
"For performance reasons, many of the internal data structures were " "For performance reasons, many of the internal data structures were changed "
"changed into a dictionary to support faster lookup. As a consequence, " "into a dictionary to support faster lookup. As a consequence, this meant "
"this meant that some lists that were exposed via the API have changed " "that some lists that were exposed via the API have changed into iterables "
"into iterables and not sequences. In short, this means that certain " "and not sequences. In short, this means that certain attributes now only "
"attributes now only support iteration and not any of the sequence " "support iteration and not any of the sequence functions."
"functions."
msgstr "" msgstr ""
"パフォーマンス上の理由から、より高速な情報の取得を可能とするため、多くの内部データ構造が辞書に変更されました。結果として、これはAPIを介して公開された一部リストが、シーケンスではなくイテラブルに変更されたことを意味します。つまるところ、現在、特定の属性はイテラブルのみをサポートしており、シーケンスを扱うことができないことを意味しています。"
#: ../../migrating_to_async.rst:131 #: ../../migrating_to_async.rst:131
msgid "The affected attributes are as follows:" msgid "The affected attributes are as follows:"
msgstr "" msgstr "影響を受ける属性は以下のとおりです。"
#: ../../migrating_to_async.rst:133 #: ../../migrating_to_async.rst:133
msgid ":attr:`Client.servers`" msgid ":attr:`Client.servers`"
msgstr "" msgstr ":attr:`Client.servers`"
#: ../../migrating_to_async.rst:134 #: ../../migrating_to_async.rst:134
msgid ":attr:`Client.private_channels`" msgid ":attr:`Client.private_channels`"
msgstr "" msgstr ":attr:`Client.private_channels`"
#: ../../migrating_to_async.rst:135 #: ../../migrating_to_async.rst:135
msgid ":attr:`Server.channels`" msgid ":attr:`Server.channels`"
msgstr "" msgstr ":attr:`Server.channels`"
#: ../../migrating_to_async.rst:136 #: ../../migrating_to_async.rst:136
msgid ":attr:`Server.members`" msgid ":attr:`Server.members`"
msgstr "" msgstr ":attr:`Server.members`"
#: ../../migrating_to_async.rst:138 #: ../../migrating_to_async.rst:138
msgid "Some examples of previously valid behaviour that is now invalid" msgid "Some examples of previously valid behaviour that is now invalid"
msgstr "" msgstr "以前は有効であったが、現在は無効である操作の例。"
#: ../../migrating_to_async.rst:145 #: ../../migrating_to_async.rst:145
msgid "" msgid ""
"Since they are no longer :obj:`list`\\s, they no longer support indexing " "Since they are no longer :obj:`list`\\s, they no longer support indexing or "
"or any operation other than iterating. In order to get the old behaviour " "any operation other than iterating. In order to get the old behaviour you "
"you should explicitly cast it to a list." "should explicitly cast it to a list."
msgstr "" msgstr ""
"これらは、既に :obj:`list` "
"ではないため、インデックスや反復処理以外の操作はサポートされなくなりました。以前の動作で処理を行うには、listに明示的にキャストする必要があります。"
#: ../../migrating_to_async.rst:155 #: ../../migrating_to_async.rst:155
msgid "" msgid ""
"Due to internal changes of the structure, the order you receive the data " "Due to internal changes of the structure, the order you receive the data in "
"in is not in a guaranteed order." "is not in a guaranteed order."
msgstr "" msgstr "構造の内部的な変更のため、データを受け取った順序は保証されません。"
#: ../../migrating_to_async.rst:159 #: ../../migrating_to_async.rst:159
msgid "Enumerations" msgid "Enumerations"
msgstr "" msgstr "列挙型"
#: ../../migrating_to_async.rst:161 #: ../../migrating_to_async.rst:161
msgid "" msgid ""
"Due to dropping support for versions lower than Python 3.4.2, the library" "Due to dropping support for versions lower than Python 3.4.2, the library "
" can now use `enumerations " "can now use `enumerations <https://docs.python.org/3/library/enum.html>`_ in"
"<https://docs.python.org/3/library/enum.html>`_ in places where it makes " " places where it makes sense."
"sense."
msgstr "" msgstr ""
"Python 3.4.2以前のバージョンのサポートを打ち切ったため、ライブラリは理にかなった場所での `列挙型 "
"<https://docs.python.org/3/library/enum.html>`_ の使用が可能になりました。"
#: ../../migrating_to_async.rst:164 #: ../../migrating_to_async.rst:164
msgid "" msgid ""
"The common places where this was changed was in the server region, member" "The common places where this was changed was in the server region, member "
" status, and channel type." "status, and channel type."
msgstr "" msgstr "変更された主な場所は、サーバーリージョン、メンバーのステータス、およびチャンネルタイプです。"
#: ../../migrating_to_async.rst:182 #: ../../migrating_to_async.rst:182
msgid "" msgid ""
"The main reason for this change was to reduce the use of finicky strings " "The main reason for this change was to reduce the use of finicky strings in "
"in the API as this could give users a false sense of power. More " "the API as this could give users a false sense of power. More information "
"information can be found in the :ref:`discord-api-enums` page." "can be found in the :ref:`discord-api-enums` page."
msgstr "" msgstr ""
"この変更の主な理由は、APIでの厄介な文字列の使用を削減することでした。ユーザーに誤った感覚を与える可能性があったためです。詳細は :ref"
":`discord-api-enums` を参照してください。"
#: ../../migrating_to_async.rst:186 #: ../../migrating_to_async.rst:186
msgid "Properties" msgid "Properties"
msgstr "" msgstr "プロパティ"
#: ../../migrating_to_async.rst:188 #: ../../migrating_to_async.rst:188
msgid "" msgid ""
"A lot of function calls that returned constant values were changed into " "A lot of function calls that returned constant values were changed into "
"Python properties for ease of use in format strings." "Python properties for ease of use in format strings."
msgstr "" msgstr "定数値を返す関数呼び出しの多くは、書式化した文字列での使いやすさ向上を図るため、Pythonのプロパティに変更されました。"
#: ../../migrating_to_async.rst:191 #: ../../migrating_to_async.rst:191
msgid "The following functions were changed into properties:" msgid "The following functions were changed into properties:"
msgstr "" msgstr "以下はプロパティに変更された関数です。"
#: ../../migrating_to_async.rst:194 ../../migrating_to_async.rst:223 #: ../../migrating_to_async.rst:194 ../../migrating_to_async.rst:223
#: ../../migrating_to_async.rst:238 #: ../../migrating_to_async.rst:238
msgid "Before" msgid "Before"
msgstr "" msgstr "変更前"
#: ../../migrating_to_async.rst:194 ../../migrating_to_async.rst:223 #: ../../migrating_to_async.rst:194 ../../migrating_to_async.rst:223
#: ../../migrating_to_async.rst:238 #: ../../migrating_to_async.rst:238
msgid "After" msgid "After"
msgstr "" msgstr "変更後"
#: ../../migrating_to_async.rst:196 #: ../../migrating_to_async.rst:196
msgid "``User.avatar_url()``" msgid "``User.avatar_url()``"
msgstr "" msgstr "``User.avatar_url()``"
#: ../../migrating_to_async.rst:196 #: ../../migrating_to_async.rst:196
msgid ":attr:`User.avatar_url`" msgid ":attr:`User.avatar_url`"
msgstr "" msgstr ":attr:`User.avatar_url`"
#: ../../migrating_to_async.rst:198 #: ../../migrating_to_async.rst:198
msgid "``User.mention()``" msgid "``User.mention()``"
msgstr "" msgstr "``User.mention()``"
#: ../../migrating_to_async.rst:198 #: ../../migrating_to_async.rst:198
msgid ":attr:`User.mention`" msgid ":attr:`User.mention`"
msgstr "" msgstr ":attr:`User.mention`"
#: ../../migrating_to_async.rst:200 #: ../../migrating_to_async.rst:200
msgid "``Channel.mention()``" msgid "``Channel.mention()``"
msgstr "" msgstr "``Channel.mention()``"
#: ../../migrating_to_async.rst:200 #: ../../migrating_to_async.rst:200
msgid ":attr:`Channel.mention`" msgid ":attr:`Channel.mention`"
msgstr "" msgstr ":attr:`Channel.mention`"
#: ../../migrating_to_async.rst:202 #: ../../migrating_to_async.rst:202
msgid "``Channel.is_default_channel()``" msgid "``Channel.is_default_channel()``"
msgstr "" msgstr "``Channel.is_default_channel()``"
#: ../../migrating_to_async.rst:202 #: ../../migrating_to_async.rst:202
msgid ":attr:`Channel.is_default`" msgid ":attr:`Channel.is_default`"
msgstr "" msgstr ":attr:`Channel.is_default`"
#: ../../migrating_to_async.rst:204 #: ../../migrating_to_async.rst:204
msgid "``Role.is_everyone()``" msgid "``Role.is_everyone()``"
msgstr "" msgstr "``Role.is_everyone()``"
#: ../../migrating_to_async.rst:204 #: ../../migrating_to_async.rst:204
msgid ":attr:`Role.is_everyone`" msgid ":attr:`Role.is_everyone`"
msgstr "" msgstr ":attr:`Role.is_everyone`"
#: ../../migrating_to_async.rst:206 #: ../../migrating_to_async.rst:206
msgid "``Server.get_default_role()``" msgid "``Server.get_default_role()``"
msgstr "" msgstr "``Server.get_default_role()``"
#: ../../migrating_to_async.rst:206 #: ../../migrating_to_async.rst:206
msgid ":attr:`Server.default_role`" msgid ":attr:`Server.default_role`"
msgstr "" msgstr ":attr:`Server.default_role`"
#: ../../migrating_to_async.rst:208 #: ../../migrating_to_async.rst:208
msgid "``Server.icon_url()``" msgid "``Server.icon_url()``"
msgstr "" msgstr "``Server.icon_url()``"
#: ../../migrating_to_async.rst:208 #: ../../migrating_to_async.rst:208
msgid ":attr:`Server.icon_url`" msgid ":attr:`Server.icon_url`"
msgstr "" msgstr ":attr:`Server.icon_url`"
#: ../../migrating_to_async.rst:210 #: ../../migrating_to_async.rst:210
msgid "``Server.get_default_channel()``" msgid "``Server.get_default_channel()``"
msgstr "" msgstr "``Server.get_default_channel()``"
#: ../../migrating_to_async.rst:210 #: ../../migrating_to_async.rst:210
msgid ":attr:`Server.default_channel`" msgid ":attr:`Server.default_channel`"
msgstr "" msgstr ":attr:`Server.default_channel`"
#: ../../migrating_to_async.rst:212 #: ../../migrating_to_async.rst:212
msgid "``Message.get_raw_mentions()``" msgid "``Message.get_raw_mentions()``"
msgstr "" msgstr "``Message.get_raw_mentions()``"
#: ../../migrating_to_async.rst:212 #: ../../migrating_to_async.rst:212
msgid ":attr:`Message.raw_mentions`" msgid ":attr:`Message.raw_mentions`"
msgstr "" msgstr ":attr:`Message.raw_mentions`"
#: ../../migrating_to_async.rst:214 #: ../../migrating_to_async.rst:214
msgid "``Message.get_raw_channel_mentions()``" msgid "``Message.get_raw_channel_mentions()``"
msgstr "" msgstr "``Message.get_raw_channel_mentions()``"
#: ../../migrating_to_async.rst:214 #: ../../migrating_to_async.rst:214
msgid ":attr:`Message.raw_channel_mentions`" msgid ":attr:`Message.raw_channel_mentions`"
msgstr "" msgstr ":attr:`Message.raw_channel_mentions`"
#: ../../migrating_to_async.rst:218 #: ../../migrating_to_async.rst:218
msgid "Member Management" msgid "Member Management"
msgstr "" msgstr "メンバー管理"
#: ../../migrating_to_async.rst:220 #: ../../migrating_to_async.rst:220
msgid "Functions that involved banning and kicking were changed." msgid "Functions that involved banning and kicking were changed."
msgstr "" msgstr "BANやキックを含む関数が追加されました。"
#: ../../migrating_to_async.rst:225 #: ../../migrating_to_async.rst:225
msgid "``Client.ban(server, user)``" msgid "``Client.ban(server, user)``"
msgstr "" msgstr "``Client.ban(server, user)``"
#: ../../migrating_to_async.rst:225 #: ../../migrating_to_async.rst:225
msgid "``Client.ban(member)``" msgid "``Client.ban(member)``"
msgstr "" msgstr "``Client.ban(member)``"
#: ../../migrating_to_async.rst:227 #: ../../migrating_to_async.rst:227
msgid "``Client.kick(server, user)``" msgid "``Client.kick(server, user)``"
msgstr "" msgstr "``Client.kick(server, user)``"
#: ../../migrating_to_async.rst:227 #: ../../migrating_to_async.rst:227
msgid "``Client.kick(member)``" msgid "``Client.kick(member)``"
msgstr "" msgstr "``Client.kick(member)``"
#: ../../migrating_to_async.rst:233 #: ../../migrating_to_async.rst:233
msgid "Renamed Functions" msgid "Renamed Functions"
msgstr "" msgstr "関数の改名"
#: ../../migrating_to_async.rst:235 #: ../../migrating_to_async.rst:235
msgid "Functions have been renamed." msgid "Functions have been renamed."
msgstr "" msgstr "いくつかの関数名が変更されました。"
#: ../../migrating_to_async.rst:240 #: ../../migrating_to_async.rst:240
msgid "``Client.set_channel_permissions``" msgid "``Client.set_channel_permissions``"
msgstr "" msgstr "``Client.set_channel_permissions``"
#: ../../migrating_to_async.rst:240 ../../migrating_to_async.rst:263 #: ../../migrating_to_async.rst:240 ../../migrating_to_async.rst:263
msgid ":meth:`Client.edit_channel_permissions`" msgid ":meth:`Client.edit_channel_permissions`"
msgstr "" msgstr ":meth:`Client.edit_channel_permissions`"
#: ../../migrating_to_async.rst:243 #: ../../migrating_to_async.rst:243
msgid "" msgid ""
"All the :class:`Permissions` related attributes have been renamed and the" "All the :class:`Permissions` related attributes have been renamed and the "
" `can_` prefix has been dropped. So for example, ``can_manage_messages`` " "`can_` prefix has been dropped. So for example, ``can_manage_messages`` has "
"has become ``manage_messages``." "become ``manage_messages``."
msgstr "" msgstr ""
"すべての :class:`Permissions` 関連の属性の名称が変更され、 接頭詞であった `can_` が削除されました。例を挙げると "
"``can_manage_messages`` が ``manage_messages`` になりました。"
#: ../../migrating_to_async.rst:247 #: ../../migrating_to_async.rst:247
msgid "Forced Keyword Arguments" msgid "Forced Keyword Arguments"
msgstr "" msgstr "強制キーワード引数"
#: ../../migrating_to_async.rst:249 #: ../../migrating_to_async.rst:249
msgid "" msgid ""
"Since 3.0+ of Python, we can now force questions to take in forced " "Since 3.0+ of Python, we can now force questions to take in forced keyword "
"keyword arguments. A keyword argument is when you explicitly specify the " "arguments. A keyword argument is when you explicitly specify the name of the"
"name of the variable and assign to it, for example: ``foo(name='test')``." " variable and assign to it, for example: ``foo(name='test')``. Due to this "
" Due to this support, some functions in the library were changed to force" "support, some functions in the library were changed to force things to take "
" things to take said keyword arguments. This is to reduce errors of " "said keyword arguments. This is to reduce errors of knowing the argument "
"knowing the argument order and the issues that could arise from them." "order and the issues that could arise from them."
msgstr "" msgstr ""
"Python "
"3.0以降では、強制的にキーワード引数をとるようにすることができるようになりました。キーワード引数は、変数の名前を明示的に指定してそれに割り当てることで、例えば"
" ``foo(name='test')`` "
"などです。このサポートにより、ライブラリ内のいくつかの関数が変更され、キーワード引数を取るようになりました。これは引数の順序が誤っていることが原因で発生するエラーを減らすためです。"
#: ../../migrating_to_async.rst:254 #: ../../migrating_to_async.rst:254
msgid "The following parameters are now exclusively keyword arguments:" msgid "The following parameters are now exclusively keyword arguments:"
msgstr "" msgstr "次のパラメータは、現在、排他的なキーワード引数です。"
#: ../../migrating_to_async.rst:256 #: ../../migrating_to_async.rst:256
msgid ":meth:`Client.send_message`" msgid ":meth:`Client.send_message`"
msgstr "" msgstr ":meth:`Client.send_message`"
#: ../../migrating_to_async.rst:257 #: ../../migrating_to_async.rst:257
msgid "``tts``" msgid "``tts``"
msgstr "" msgstr "``tts``"
#: ../../migrating_to_async.rst:259 #: ../../migrating_to_async.rst:259
msgid ":meth:`Client.logs_from`" msgid ":meth:`Client.logs_from`"
msgstr "" msgstr ":meth:`Client.logs_from`"
#: ../../migrating_to_async.rst:259 #: ../../migrating_to_async.rst:259
msgid "``before``" msgid "``before``"
msgstr "" msgstr "``before``"
#: ../../migrating_to_async.rst:260 #: ../../migrating_to_async.rst:260
msgid "``after``" msgid "``after``"
msgstr "" msgstr "``after``"
#: ../../migrating_to_async.rst:262 #: ../../migrating_to_async.rst:262
msgid "``allow``" msgid "``allow``"
msgstr "" msgstr "``allow``"
#: ../../migrating_to_async.rst:263 #: ../../migrating_to_async.rst:263
msgid "``deny``" msgid "``deny``"
msgstr "" msgstr "``deny``"
#: ../../migrating_to_async.rst:265 #: ../../migrating_to_async.rst:265
msgid "" msgid ""
"In the documentation you can tell if a function parameter is a forced " "In the documentation you can tell if a function parameter is a forced "
"keyword argument if it is after ``\\*,`` in the function signature." "keyword argument if it is after ``\\*,`` in the function signature."
msgstr "" msgstr ""
"ドキュメントでは、関数シグネチャ内の ``\\*,`` の後に引数があるかどうかで、関数の引数が強制的なキーワード引数であるかを知ることができます。"
#: ../../migrating_to_async.rst:271 #: ../../migrating_to_async.rst:271
msgid "Running the Client" msgid "Running the Client"
msgstr "" msgstr "クライアントの実行"
#: ../../migrating_to_async.rst:273 #: ../../migrating_to_async.rst:273
msgid "" msgid ""
"In earlier versions of discord.py, ``client.run()`` was a blocking call " "In earlier versions of discord.py, ``client.run()`` was a blocking call to "
"to the main thread that called it. In v0.10.0 it is still a blocking call" "the main thread that called it. In v0.10.0 it is still a blocking call but "
" but it handles the event loop for you. However, in order to do that you " "it handles the event loop for you. However, in order to do that you must "
"must pass in your credentials to :meth:`Client.run`." "pass in your credentials to :meth:`Client.run`."
msgstr "" msgstr ""
"以前のバージョンのdiscord.pyでは ``client.run()`` "
"は呼び出したメインスレッドをブロッキングするブロック付き呼び出しでした。v0.10.0でも未だブロック付き呼び出しですが、イベントループで処理を行います。ただし、それを行うためには認証情報を"
" :meth:`Client.run` に渡す必要があります。"
#: ../../migrating_to_async.rst:277 #: ../../migrating_to_async.rst:277
msgid "Basically, before:" msgid "Basically, before:"
msgstr "" msgstr "以前:"
#: ../../migrating_to_async.rst:292 #: ../../migrating_to_async.rst:292
msgid "" msgid ""
"Like in the older ``Client.run`` function, the newer one must be the one " "Like in the older ``Client.run`` function, the newer one must be the one of "
"of the last functions to call. This is because the function is " "the last functions to call. This is because the function is **blocking**. "
"**blocking**. Registering events or doing anything after " "Registering events or doing anything after :meth:`Client.run` will not "
":meth:`Client.run` will not execute until the function returns." "execute until the function returns."
msgstr "" msgstr ""
"以前の ``Client.run`` 同様、新しくなった関数も最後に呼び出す必要があります。これは関数がブロッキングを行うためです。 "
":meth:`Client.run` の後に何かを定義しても、この関数が終了するまで、それらの処理は行われません。"
#: ../../migrating_to_async.rst:297 #: ../../migrating_to_async.rst:297
msgid "" msgid ""
"This is a utility function that abstracts the event loop for you. There's" "This is a utility function that abstracts the event loop for you. There's no"
" no need for the run call to be blocking and out of your control. Indeed," " need for the run call to be blocking and out of your control. Indeed, if "
" if you want control of the event loop then doing so is quite " "you want control of the event loop then doing so is quite straightforward:"
"straightforward:"
msgstr "" msgstr ""
"これはイベントループを抽象化するユーティリティ関数です。 "
"実行呼び出しがブロックされ、コントロールから外れる必要はありません。実際に、イベントループを制御したい場合、この方法では非常に簡単です。"

Loading…
Cancel
Save