mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-22 00:14:10 +00:00
Updated translations and added some documentation
This commit is contained in:
parent
e4a1ecedaa
commit
822d810056
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: RcGcDw\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-11-30 11:58+0100\n"
|
||||
"POT-Creation-Date: 2022-07-14 18:17+0200\n"
|
||||
"PO-Revision-Date: 2021-07-11 12:33+0000\n"
|
||||
"Last-Translator: しぃ <lzmashili@icloud.com>\n"
|
||||
"Language-Team: Japanese <https://translate.wikibot.de/projects/rcgcdw/misc/"
|
||||
|
@ -71,7 +71,7 @@ msgstr "Discordアカウントへのリンク"
|
|||
msgid "Battle.net handle"
|
||||
msgstr "Battle.net アカウントへのリンク"
|
||||
|
||||
#: src/misc.py:119
|
||||
#: src/misc.py:140
|
||||
msgid ""
|
||||
"\n"
|
||||
"__And more__"
|
||||
|
@ -79,10 +79,10 @@ msgstr ""
|
|||
"\n"
|
||||
"__その他色々__"
|
||||
|
||||
#: src/misc.py:276
|
||||
#: src/misc.py:330
|
||||
msgid "Unknown"
|
||||
msgstr "不明"
|
||||
|
||||
#: src/misc.py:278
|
||||
#: src/misc.py:332
|
||||
msgid "unknown"
|
||||
msgstr "不明"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: RcGcDw\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-11-30 11:58+0100\n"
|
||||
"POT-Creation-Date: 2022-07-14 18:17+0200\n"
|
||||
"PO-Revision-Date: 2021-07-11 12:33+0000\n"
|
||||
"Last-Translator: しぃ <lzmashili@icloud.com>\n"
|
||||
"Language-Team: Japanese <https://translate.wikibot.de/projects/rcgcdw/"
|
||||
|
@ -19,7 +19,13 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Weblate 4.6.2\n"
|
||||
|
||||
#: src/discord/redaction.py:59 src/discord/redaction.py:62
|
||||
#: src/discord/redaction.py:67
|
||||
msgid "Removed"
|
||||
msgstr "削除"
|
||||
#: src/discord/redaction.py:79
|
||||
msgid "hidden"
|
||||
msgstr ""
|
||||
|
||||
#: src/discord/redaction.py:82 src/discord/redaction.py:87
|
||||
msgid "~~hidden~~"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Removed"
|
||||
#~ msgstr "削除"
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: RcGcDw\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-06-16 23:56+0200\n"
|
||||
"POT-Creation-Date: 2022-07-14 18:17+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: RcGcDw\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-06-16 23:56+0200\n"
|
||||
"POT-Creation-Date: 2022-07-14 18:17+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: RcGcDw\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-06-16 23:56+0200\n"
|
||||
"POT-Creation-Date: 2022-07-14 18:17+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -5,7 +5,7 @@ for file in ${StringArray[@]}; do
|
|||
done
|
||||
# Get all translatable files for formatters
|
||||
find extensions/ -name '*.py' -print | xargs xgettext -L Python --package-name=RcGcDw --keyword=pgettext:1c,2 --keyword=npgettext:1c,2,3 -o "locale/templates/formatters.pot" src/api/util.py
|
||||
for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi es
|
||||
for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi es ja
|
||||
do
|
||||
for file in ${StringArray[@]}; do
|
||||
msgmerge -U locale/$language/LC_MESSAGES/$file.po locale/templates/$file.pot
|
||||
|
@ -13,7 +13,7 @@ do
|
|||
done
|
||||
# Exceptions
|
||||
xgettext -L Python --package-name=RcGcDw --keyword=pgettext:1c,2 --keyword=npgettext:1c,2,3 -o "locale/templates/redaction.pot" src/discord/redaction.py
|
||||
for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi es
|
||||
for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi es ja
|
||||
do
|
||||
msgmerge -U locale/$language/LC_MESSAGES/redaction.po locale/templates/redaction.pot
|
||||
msgmerge -U locale/$language/LC_MESSAGES/formatters.po locale/templates/formatters.pot
|
||||
|
|
|
@ -57,15 +57,17 @@ class Client:
|
|||
|
||||
Returns:
|
||||
|
||||
sched.event
|
||||
FIRST sched.event, later cycles have their own sched.event and will be viewable by client.scheduler.queue
|
||||
"""
|
||||
def return_delay(given_time: Union[float, str]) -> float:
|
||||
"""Converts UTC time to amount of seconds from now, if amount of seconds given returns seconds as a float"""
|
||||
if isinstance(given_time, float) or isinstance(given_time, int):
|
||||
return float(given_time)
|
||||
now = datetime.utcnow()
|
||||
then = datetime(now.year, now.month, now.day, *(map(int, given_time.split(':'))), 0, 0)
|
||||
return float((then - now).seconds)
|
||||
def wrap_reschedule(function, period: float, *args, **kwargs):
|
||||
"""Function for rescheduling a function every period of times. It provides args and kwargs to the function"""
|
||||
self.schedule(function, every=period, *args, **kwargs)
|
||||
function(*args, **kwargs)
|
||||
if not any([every, at]) or all([every, at]):
|
||||
|
|
Loading…
Reference in a new issue