4
"Project-Id-Version: discordpy\n"
5
"Report-Msgid-Bugs-To: \n"
6
"POT-Creation-Date: 2020-10-23 22:41-0400\n"
7
"PO-Revision-Date: 2020-10-24 02:41+0000\n"
10
"Language-Team: Japanese\n"
11
"Plural-Forms: nplurals=1; plural=0\n"
13
"Content-Type: text/plain; charset=utf-8\n"
14
"Content-Transfer-Encoding: 8bit\n"
15
"Generated-By: Babel 2.5.3\n"
17
#: ../../ext/tasks/index.rst:4
18
msgid "``disnake.ext.tasks`` -- asyncio.Task helpers"
19
msgstr "``disnake.ext.tasks`` -- asyncio.Task ヘルパー"
21
#: ../../ext/tasks/index.rst:8
23
"One of the most common operations when making a bot is having a loop run "
24
"in the background at a specified interval. This pattern is very common "
25
"but has a lot of things you need to look out for:"
26
msgstr "ボットを作成するときの最も一般的な操作の1つは、指定した間隔でバックグラウンドでループを実行させることです。このパターンは非常に一般的ですが、注意すべきことがたくさんあります。"
28
#: ../../ext/tasks/index.rst:10
29
msgid "How do I handle :exc:`asyncio.CancelledError`?"
30
msgstr ":exc:`asyncio.CancelledError` はどのように処理するべきですか?"
32
#: ../../ext/tasks/index.rst:11
33
msgid "What do I do if the internet goes out?"
34
msgstr "インターネット接続が切れた場合はどうするべきですか?"
36
#: ../../ext/tasks/index.rst:12
37
msgid "What is the maximum number of seconds I can sleep anyway?"
38
msgstr "スリープできる最大時間は何秒ですか?"
40
#: ../../ext/tasks/index.rst:14
42
"The goal of this disnake extension is to abstract all these worries "
44
msgstr "disnake.pyの拡張機能の目的は、こういった苦労の種を抽象化することです。"
46
#: ../../ext/tasks/index.rst:17
50
#: ../../ext/tasks/index.rst:19
51
msgid "A simple background task in a :class:`~disnake.ext.commands.Cog`:"
52
msgstr ":class:`~disnake.ext.commands.Cog` におけるシンプルなバックグラウンドタスク:"
54
#: ../../ext/tasks/index.rst:38
55
msgid "Adding an exception to handle during reconnect:"
56
msgstr "再接続中に処理する例外を追加します:"
58
#: ../../ext/tasks/index.rst:61
59
msgid "Looping a certain amount of times before exiting:"
62
#: ../../ext/tasks/index.rst:77
63
msgid "Waiting until the bot is ready before the loop starts:"
64
msgstr "ループが始まる前に、Botの準備が整うまで待機する: "
66
#: ../../ext/tasks/index.rst:102
67
msgid "Doing something during cancellation:"
68
msgstr "キャンセルする場合、その間に何らかの処理を行う:"
70
#: ../../ext/tasks/index.rst:136
74
#: disnake.ext.tasks.Loop:1 of
76
"A background task helper that abstracts the loop and reconnection logic "
78
msgstr "ループと再接続処理を抽象化するバックグラウンドタスクのヘルパー。"
80
#: disnake.ext.tasks.Loop:3 of
81
msgid "The main interface to create this is through :func:`loop`."
82
msgstr ":func:`loop` はこれを作成するための主要なインタフェースです。"
84
#: disnake.ext.tasks.Loop.current_loop:1 of
85
msgid "The current iteration of the loop."
88
#: disnake.ext.tasks.Loop.current_loop disnake.ext.tasks.Loop.next_iteration of
92
#: disnake.ext.tasks.Loop.current_loop:3 of
95
msgstr ":class:`asyncio.Task`"
97
#: disnake.ext.tasks.Loop.next_iteration:1 of
98
msgid "When the next iteration of the loop will occur."
101
#: disnake.ext.tasks.Loop.next_iteration:5 of
102
msgid "Optional[:class:`datetime.datetime`]"
105
#: disnake.ext.tasks.Loop.start:1 of
106
msgid "Starts the internal task in the event loop."
109
#: disnake.ext.tasks.Loop.add_exception_type disnake.ext.tasks.Loop.after_loop
110
#: disnake.ext.tasks.Loop.before_loop disnake.ext.tasks.Loop.change_interval
111
#: disnake.ext.tasks.Loop.error disnake.ext.tasks.Loop.remove_exception_type
112
#: disnake.ext.tasks.Loop.restart disnake.ext.tasks.Loop.start
113
#: disnake.ext.tasks.loop of
117
#: disnake.ext.tasks.Loop.start:3 of
118
msgid "The arguments to use."
121
#: disnake.ext.tasks.Loop.restart:9 disnake.ext.tasks.Loop.start:4 of
122
msgid "The keyword arguments to use."
125
#: disnake.ext.tasks.Loop.add_exception_type disnake.ext.tasks.Loop.after_loop
126
#: disnake.ext.tasks.Loop.before_loop disnake.ext.tasks.Loop.change_interval
127
#: disnake.ext.tasks.Loop.error disnake.ext.tasks.Loop.start
128
#: disnake.ext.tasks.loop of
133
#: disnake.ext.tasks.Loop.start:6 of
134
msgid "A task has already been launched and is running."
137
#: disnake.ext.tasks.Loop.remove_exception_type disnake.ext.tasks.Loop.start of
141
#: disnake.ext.tasks.Loop.start:8 of
142
msgid "The task that has been created."
145
#: disnake.ext.tasks.Loop.remove_exception_type disnake.ext.tasks.Loop.start of
149
#: disnake.ext.tasks.Loop.start:9 of
150
msgid ":class:`asyncio.Task`"
151
msgstr ":class:`asyncio.Task`"
153
#: disnake.ext.tasks.Loop.stop:1 of
154
msgid "Gracefully stops the task from running."
157
#: disnake.ext.tasks.Loop.stop:3 of
159
"Unlike :meth:`cancel`\\, this allows the task to finish its current "
160
"iteration before gracefully exiting."
163
#: disnake.ext.tasks.Loop.stop:8 of
165
"If the internal function raises an error that can be handled before "
166
"finishing then it will retry until it succeeds."
169
#: disnake.ext.tasks.Loop.stop:12 of
171
"If this is undesirable, either remove the error handling before stopping "
172
"via :meth:`clear_exception_types` or use :meth:`cancel` instead."
175
#: disnake.ext.tasks.Loop.cancel:1 of
176
msgid "Cancels the internal task, if it is running."
179
#: disnake.ext.tasks.Loop.restart:1 of
180
msgid "A convenience method to restart the internal task."
183
#: disnake.ext.tasks.Loop.restart:5 of
185
"Due to the way this function works, the task is not returned like "
189
#: disnake.ext.tasks.Loop.restart:8 of
190
msgid "The arguments to to use."
193
#: disnake.ext.tasks.Loop.add_exception_type:1 of
195
msgid "Adds exception types to be handled during the reconnect logic."
196
msgstr "再接続中に処理する例外を追加します:"
198
#: disnake.ext.tasks.Loop.add_exception_type:3 of
200
"By default the exception types handled are those handled by "
201
":meth:`disnake.Client.connect`\\, which includes a lot of internet "
202
"disconnection errors."
205
#: disnake.ext.tasks.Loop.add_exception_type:7 of
207
"This function is useful if you're interacting with a 3rd party library "
208
"that raises its own set of exceptions."
211
#: disnake.ext.tasks.Loop.add_exception_type:10
212
#: disnake.ext.tasks.Loop.remove_exception_type:3 of
213
msgid "An argument list of exception classes to handle."
216
#: disnake.ext.tasks.Loop.add_exception_type:13 of
218
"An exception passed is either not a class or not inherited from "
219
":class:`BaseException`."
222
#: disnake.ext.tasks.Loop.clear_exception_types:1 of
223
msgid "Removes all exception types that are handled."
226
#: disnake.ext.tasks.Loop.clear_exception_types:5 of
227
msgid "This operation obviously cannot be undone!"
230
#: disnake.ext.tasks.Loop.remove_exception_type:1 of
232
msgid "Removes exception types from being handled during the reconnect logic."
233
msgstr "再接続中に処理する例外を追加します:"
235
#: disnake.ext.tasks.Loop.remove_exception_type:6 of
236
msgid "Whether all exceptions were successfully removed."
239
#: disnake.ext.tasks.Loop.remove_exception_type:7 of
243
#: disnake.ext.tasks.Loop.get_task:1 of
245
"Optional[:class:`asyncio.Task`]: Fetches the internal task or ``None`` if"
246
" there isn't one running."
249
#: disnake.ext.tasks.Loop.is_being_cancelled:1 of
250
msgid "Whether the task is being cancelled."
253
#: disnake.ext.tasks.Loop.failed:1 of
254
msgid ":class:`bool`: Whether the internal task has failed."
257
#: disnake.ext.tasks.Loop.is_running:1 of
258
msgid ":class:`bool`: Check if the task is currently running."
261
#: disnake.ext.tasks.Loop.before_loop:1 of
263
"A decorator that registers a coroutine to be called before the loop "
267
#: disnake.ext.tasks.Loop.before_loop:3 of
269
"This is useful if you want to wait for some bot state before the loop "
270
"starts, such as :meth:`disnake.Client.wait_until_ready`."
273
#: disnake.ext.tasks.Loop.after_loop:3 disnake.ext.tasks.Loop.before_loop:6 of
274
msgid "The coroutine must take no arguments (except ``self`` in a class context)."
277
#: disnake.ext.tasks.Loop.before_loop:8 of
278
msgid "The coroutine to register before the loop runs."
281
#: disnake.ext.tasks.Loop.after_loop:14 disnake.ext.tasks.Loop.before_loop:11
282
#: disnake.ext.tasks.Loop.error:13 disnake.ext.tasks.loop:22 of
283
msgid "The function was not a coroutine."
286
#: disnake.ext.tasks.Loop.after_loop:1 of
288
"A decorator that register a coroutine to be called after the loop "
292
#: disnake.ext.tasks.Loop.after_loop:7 of
294
"This coroutine is called even during cancellation. If it is desirable to "
295
"tell apart whether something was cancelled or not, check to see whether "
296
":meth:`is_being_cancelled` is ``True`` or not."
299
#: disnake.ext.tasks.Loop.after_loop:11 of
300
msgid "The coroutine to register after the loop finishes."
303
#: disnake.ext.tasks.Loop.error:1 of
305
"A decorator that registers a coroutine to be called if the task "
306
"encounters an unhandled exception."
309
#: disnake.ext.tasks.Loop.error:3 of
311
"The coroutine must take only one argument the exception raised (except "
312
"``self`` in a class context)."
315
#: disnake.ext.tasks.Loop.error:5 of
317
"By default this prints to :data:`sys.stderr` however it could be "
318
"overridden to have a different implementation."
321
#: disnake.ext.tasks.Loop.error:10 of
322
msgid "The coroutine to register in the event of an unhandled exception."
325
#: disnake.ext.tasks.Loop.change_interval:1 of
326
msgid "Changes the interval for the sleep time."
329
#: disnake.ext.tasks.Loop.change_interval:5 of
331
"This only applies on the next loop iteration. If it is desirable for the "
332
"change of interval to be applied right away, cancel the task with "
336
#: disnake.ext.tasks.Loop.change_interval:10 disnake.ext.tasks.loop:4 of
337
msgid "The number of seconds between every iteration."
340
#: disnake.ext.tasks.Loop.change_interval:12 disnake.ext.tasks.loop:6 of
341
msgid "The number of minutes between every iteration."
344
#: disnake.ext.tasks.Loop.change_interval:14 disnake.ext.tasks.loop:8 of
345
msgid "The number of hours between every iteration."
348
#: disnake.ext.tasks.Loop.change_interval:17 disnake.ext.tasks.loop:21 of
349
msgid "An invalid value was given."
352
#: disnake.ext.tasks.loop:1 of
354
"A decorator that schedules a task in the background for you with optional"
355
" reconnect logic. The decorator returns a :class:`Loop`."
358
#: disnake.ext.tasks.loop:10 of
359
msgid "The number of loops to do, ``None`` if it should be an infinite loop."
362
#: disnake.ext.tasks.loop:13 of
364
"Whether to handle errors and restart the task using an exponential back-"
365
"off algorithm similar to the one used in :meth:`disnake.Client.connect`."
368
#: disnake.ext.tasks.loop:17 of
370
"The loop to use to register the task, if not given defaults to "
371
":func:`asyncio.get_event_loop`."
374
#~ msgid ":class:`int` -- The current iteration of the loop."
377
#~ msgid ":exc:`RuntimeError` -- A task has already been launched and is running."
380
#~ msgid "Adds an exception type to be handled during the reconnect logic."
383
#~ msgid "The exception class to handle."
387
#~ ":exc:`TypeError` -- The exception passed "
388
#~ "is either not a class or not "
389
#~ "inherited from :class:`BaseException`."
393
#~ "Removes an exception type from being "
394
#~ "handled during the reconnect logic."
397
#~ msgid "Whether it was successfully removed."
400
#~ msgid ":exc:`TypeError` -- The function was not a coroutine."
403
#~ msgid ":exc:`ValueError` -- An invalid value was given."
407
#~ "A decorator that schedules a task "
408
#~ "in the background for you with "
409
#~ "optional reconnect logic."
412
#~ msgid "The loop helper that handles the background task."
415
#~ msgid ":class:`Loop`"