feat(commands:locale|Utils): add translations for source info and credits

This commit is contained in:
Romain J 2020-11-11 02:46:48 +01:00
parent 42d7cad0e5
commit b4194dcadf
12 changed files with 411 additions and 45 deletions

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Tuxbot-bot\n" "Project-Id-Version: Tuxbot-bot\n"
"Report-Msgid-Bugs-To: rick@gnous.eu\n" "Report-Msgid-Bugs-To: rick@gnous.eu\n"
"POT-Creation-Date: 2020-06-11 19:07+0200\n" "POT-Creation-Date: 2020-11-11 02:40+0100\n"
"PO-Revision-Date: 2020-06-10 00:38+0200\n" "PO-Revision-Date: 2020-06-10 00:38+0200\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: none\n" "Language-Team: none\n"
@ -17,11 +17,11 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: tuxbot/cogs/admin/admin.py:33 #: tuxbot/cogs/Admin/admin.py:50
#, python-brace-format #, python-brace-format
msgid "Locale changed to {lang} successfully" msgid "Locale changed to {lang} successfully"
msgstr "" msgstr ""
#: tuxbot/cogs/admin/admin.py:43 #: tuxbot/cogs/Admin/admin.py:65
msgid "List of available locales: " msgid "List of available locales: "
msgstr "" msgstr ""

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Tuxbot-bot\n" "Project-Id-Version: Tuxbot-bot\n"
"Report-Msgid-Bugs-To: rick@gnous.eu\n" "Report-Msgid-Bugs-To: rick@gnous.eu\n"
"POT-Creation-Date: 2020-06-11 18:24+0200\n" "POT-Creation-Date: 2020-10-21 01:13+0200\n"
"PO-Revision-Date: 2020-06-10 00:38+0200\n" "PO-Revision-Date: 2020-06-10 00:38+0200\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: none\n" "Language-Team: none\n"
@ -17,11 +17,11 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: tuxbot/cogs/admin/admin.py:38 #: tuxbot/cogs/admin/admin.py:47
#, python-brace-format #, python-brace-format
msgid "Locale changed to {lang} successfully" msgid "Locale changed to {lang} successfully"
msgstr "" msgstr ""
#: tuxbot/cogs/admin/admin.py:47 #: tuxbot/cogs/admin/admin.py:62
msgid "List of available locales: " msgid "List of available locales: "
msgstr "" msgstr ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Tuxbot-bot\n" "Project-Id-Version: Tuxbot-bot\n"
"Report-Msgid-Bugs-To: rick@gnous.eu\n" "Report-Msgid-Bugs-To: rick@gnous.eu\n"
"POT-Creation-Date: 2020-06-11 19:07+0200\n" "POT-Creation-Date: 2020-11-11 02:40+0100\n"
"PO-Revision-Date: 2020-06-10 00:38+0200\n" "PO-Revision-Date: 2020-06-10 00:38+0200\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: none\n" "Language-Team: none\n"
@ -18,11 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: tuxbot/cogs/admin/admin.py:33 #: tuxbot/cogs/Admin/admin.py:50
#, fuzzy, python-brace-format #, fuzzy, python-brace-format
msgid "Locale changed to {lang} successfully" msgid "Locale changed to {lang} successfully"
msgstr "Langue changée pour {lang} avec succès" msgstr "Langue changée pour {lang} avec succès"
#: tuxbot/cogs/admin/admin.py:43 #: tuxbot/cogs/Admin/admin.py:65
msgid "List of available locales: " msgid "List of available locales: "
msgstr "Liste des langues disponibles : " msgstr "Liste des langues disponibles : "

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Tuxbot-bot\n" "Project-Id-Version: Tuxbot-bot\n"
"Report-Msgid-Bugs-To: rick@gnous.eu\n" "Report-Msgid-Bugs-To: rick@gnous.eu\n"
"POT-Creation-Date: 2020-06-11 18:24+0200\n" "POT-Creation-Date: 2020-10-21 01:13+0200\n"
"PO-Revision-Date: 2020-06-10 00:38+0200\n" "PO-Revision-Date: 2020-06-10 00:38+0200\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: none\n" "Language-Team: none\n"
@ -18,11 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: tuxbot/cogs/admin/admin.py:38 #: tuxbot/cogs/admin/admin.py:47
#, fuzzy, python-brace-format #, fuzzy, python-brace-format
msgid "Locale changed to {lang} successfully" msgid "Locale changed to {lang} successfully"
msgstr "Langue changée pour {lang} avec succès" msgstr "Langue changée pour {lang} avec succès"
#: tuxbot/cogs/admin/admin.py:47 #: tuxbot/cogs/admin/admin.py:62
msgid "List of available locales: " msgid "List of available locales: "
msgstr "Liste des langues disponibles : " msgstr "Liste des langues disponibles : "

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Tuxbot-bot\n" "Project-Id-Version: Tuxbot-bot\n"
"Report-Msgid-Bugs-To: rick@gnous.eu\n" "Report-Msgid-Bugs-To: rick@gnous.eu\n"
"POT-Creation-Date: 2020-10-21 01:13+0200\n" "POT-Creation-Date: 2020-11-11 02:44+0100\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: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,11 +17,11 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: tuxbot/cogs/admin/admin.py:47 #: tuxbot/cogs/Admin/admin.py:50
#, python-brace-format #, python-brace-format
msgid "Locale changed to {lang} successfully" msgid "Locale changed to {lang} successfully"
msgstr "" msgstr ""
#: tuxbot/cogs/admin/admin.py:62 #: tuxbot/cogs/Admin/admin.py:65
msgid "List of available locales: " msgid "List of available locales: "
msgstr "" msgstr ""

View file

@ -12,8 +12,8 @@ msgstr ""
"PO-Revision-Date: 2020-10-21 01:15+0200\n" "PO-Revision-Date: 2020-10-21 01:15+0200\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: none\n" "Language-Team: none\n"
"Language: en_US\n" "Language: fr\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"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"

View file

@ -12,8 +12,8 @@ msgstr ""
"PO-Revision-Date: 2020-10-21 01:15+0200\n" "PO-Revision-Date: 2020-10-21 01:15+0200\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: none\n" "Language-Team: none\n"
"Language: en_US\n" "Language: fr\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"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Tuxbot-bot\n" "Project-Id-Version: Tuxbot-bot\n"
"Report-Msgid-Bugs-To: rick@gnous.eu\n" "Report-Msgid-Bugs-To: rick@gnous.eu\n"
"POT-Creation-Date: 2020-06-11 19:07+0200\n" "POT-Creation-Date: 2020-11-11 02:44+0100\n"
"PO-Revision-Date: 2020-06-10 00:38+0200\n" "PO-Revision-Date: 2020-06-10 00:38+0200\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: none\n" "Language-Team: none\n"
@ -16,3 +16,89 @@ msgstr ""
"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"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: tuxbot/cogs/Utils/utils.py:38
msgid "Information about TuxBot"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:44
msgid "__:busts_in_silhouette: Development__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:61
msgid ""
"**{}** physical memory\n"
"**{}** virtual memory"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:72
msgid "__Servers count__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:77
msgid "__Channels count__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:82
msgid "__Members count__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:88
msgid "__:file_folder: Files__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:95
msgid "__¶ Lines__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:105
msgid "__Latest changes__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:111
msgid "__:link: Links__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:116
msgid "| [Invite]"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:131
msgid "Contributors"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:187
msgid "Invite"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:191
msgid "Minimal"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:193
msgid ""
"The minimum permissions include the strict requirements for the proper "
"functioning of all basics commands.\n"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:198 tuxbot/cogs/Utils/utils.py:210
msgid "[Add!]"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:203
msgid "Admin"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:205
msgid ""
"All minimal permissions + extra permissions for admin commands such as kick "
"and ban\n"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:233
msgid "Unable to find `{}`"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:241
msgid "Unable to fetch lines for `{}`"
msgstr ""

View file

@ -0,0 +1,100 @@
# English translations for Tuxbot-bot package.
# Copyright (C) 2020 THE Tuxbot-bot'S COPYRIGHT HOLDER
# This file is distributed under the same license as the Tuxbot-bot package.
# Automatically generated, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: Tuxbot-bot\n"
"Report-Msgid-Bugs-To: rick@gnous.eu\n"
"POT-Creation-Date: 2020-11-11 02:40+0100\n"
"PO-Revision-Date: 2020-06-10 00:38+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: tuxbot/cogs/Utils/utils.py:38
msgid "Information about TuxBot"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:44
msgid "__:busts_in_silhouette: Development__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:61
msgid ""
"**{}** physical memory\n"
"**{}** virtual memory"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:72
msgid "__Servers count__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:77
msgid "__Channels count__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:82
msgid "__Members count__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:88
msgid "__:file_folder: Files__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:95
msgid "__¶ Lines__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:105
msgid "__Latest changes__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:111
msgid "__:link: Links__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:116
msgid "| [Invite]"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:131
msgid "Contributors"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:187
msgid "Invite"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:191
msgid "Minimal"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:193
msgid ""
"The minimum permissions include the strict requirements for the proper "
"functioning of all basics commands.\n"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:203
msgid "Admin"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:205
msgid ""
"All minimal permissions + extra permissions for admin commands such as kick "
"and ban\n"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:233
msgid "Unable to find `{}`"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:241
msgid "Unable to fetch lines for `{}`"
msgstr ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Tuxbot-bot\n" "Project-Id-Version: Tuxbot-bot\n"
"Report-Msgid-Bugs-To: rick@gnous.eu\n" "Report-Msgid-Bugs-To: rick@gnous.eu\n"
"POT-Creation-Date: 2020-06-11 19:07+0200\n" "POT-Creation-Date: 2020-11-11 02:44+0100\n"
"PO-Revision-Date: 2020-06-10 00:38+0200\n" "PO-Revision-Date: 2020-06-10 00:38+0200\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: none\n" "Language-Team: none\n"
@ -17,3 +17,95 @@ msgstr ""
"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"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: tuxbot/cogs/Utils/utils.py:38
msgid "Information about TuxBot"
msgstr "Information sur TuxBot"
#: tuxbot/cogs/Utils/utils.py:44
msgid "__:busts_in_silhouette: Development__"
msgstr "__:busts_in_silhouette: Développement__"
#: tuxbot/cogs/Utils/utils.py:61
msgid ""
"**{}** physical memory\n"
"**{}** virtual memory"
msgstr ""
"**{}** mémoire physique\n"
"**{}** mémoire virtuelle"
#: tuxbot/cogs/Utils/utils.py:72
msgid "__Servers count__"
msgstr "__Nombre de serveurs__"
#: tuxbot/cogs/Utils/utils.py:77
msgid "__Channels count__"
msgstr "__Nombre de salons__"
#: tuxbot/cogs/Utils/utils.py:82
msgid "__Members count__"
msgstr "__Nombre de membres__"
#: tuxbot/cogs/Utils/utils.py:88
msgid "__:file_folder: Files__"
msgstr "__:file_folder: Fichiers__"
#: tuxbot/cogs/Utils/utils.py:95
msgid "__¶ Lines__"
msgstr "__¶ Lignes__"
#: tuxbot/cogs/Utils/utils.py:105
msgid "__Latest changes__"
msgstr "__Derniers changements__"
#: tuxbot/cogs/Utils/utils.py:111
msgid "__:link: Links__"
msgstr "__:link: Liens__"
#: tuxbot/cogs/Utils/utils.py:116
msgid "| [Invite]"
msgstr "| [Invitation]"
#: tuxbot/cogs/Utils/utils.py:131
msgid "Contributors"
msgstr "Contributeurs"
#: tuxbot/cogs/Utils/utils.py:187
msgid "Invite"
msgstr "Invitation"
#: tuxbot/cogs/Utils/utils.py:191
msgid "Minimal"
msgstr "Minimale"
#: tuxbot/cogs/Utils/utils.py:193
msgid ""
"The minimum permissions include the strict requirements for the proper "
"functioning of all basics commands.\n"
msgstr ""
"Les permissions minimales avec le strict nécessaire pour le bon "
"fonctionnement des commandes de base\n"
#: tuxbot/cogs/Utils/utils.py:198 tuxbot/cogs/Utils/utils.py:210
msgid "[Add!]"
msgstr "[Ajouter !]"
#: tuxbot/cogs/Utils/utils.py:203
msgid "Admin"
msgstr "Admin"
#: tuxbot/cogs/Utils/utils.py:205
msgid ""
"All minimal permissions + extra permissions for admin commands such as kick "
"and ban\n"
msgstr ""
"Toutes les permissions minimales + les permissions extra pour les commandes "
"d'administration telles que kick et ban\n"
#: tuxbot/cogs/Utils/utils.py:233
msgid "Unable to find `{}`"
msgstr "Impossible de trouver `{}`"
#: tuxbot/cogs/Utils/utils.py:241
msgid "Unable to fetch lines for `{}`"
msgstr "Impossible de récuperer les lignes pour `{}`"

View file

@ -8,11 +8,93 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Tuxbot-bot\n" "Project-Id-Version: Tuxbot-bot\n"
"Report-Msgid-Bugs-To: rick@gnous.eu\n" "Report-Msgid-Bugs-To: rick@gnous.eu\n"
"POT-Creation-Date: 2020-10-21 01:13+0200\n" "POT-Creation-Date: 2020-11-11 02:44+0100\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: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n" "Language: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: tuxbot/cogs/Utils/utils.py:38
msgid "Information about TuxBot"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:44
msgid "__:busts_in_silhouette: Development__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:61
msgid ""
"**{}** physical memory\n"
"**{}** virtual memory"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:72
msgid "__Servers count__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:77
msgid "__Channels count__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:82
msgid "__Members count__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:88
msgid "__:file_folder: Files__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:95
msgid "__¶ Lines__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:105
msgid "__Latest changes__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:111
msgid "__:link: Links__"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:116
msgid "| [Invite]"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:131
msgid "Contributors"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:187
msgid "Invite"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:191
msgid "Minimal"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:193
msgid "The minimum permissions include the strict requirements for the proper functioning of all basics commands.\n"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:198 tuxbot/cogs/Utils/utils.py:210
msgid "[Add!]"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:203
msgid "Admin"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:205
msgid "All minimal permissions + extra permissions for admin commands such as kick and ban\n"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:233
msgid "Unable to find `{}`"
msgstr ""
#: tuxbot/cogs/Utils/utils.py:241
msgid "Unable to fetch lines for `{}`"
msgstr ""

View file

@ -40,8 +40,11 @@ class Utils(commands.Cog, name="Utils"):
) )
e.add_field( e.add_field(
name=f"__:busts_in_silhouette: " name=_(
f"{_('Development', ctx, self.bot.config)}__", "__:busts_in_silhouette: Development__",
ctx,
self.bot.config,
),
value="**Romain#5117:** [git](https://git.gnous.eu/Romain)\n" value="**Romain#5117:** [git](https://git.gnous.eu/Romain)\n"
"**Outout#4039:** [git](https://git.gnous.eu/mael)\n", "**Outout#4039:** [git](https://git.gnous.eu/mael)\n",
inline=True, inline=True,
@ -54,39 +57,42 @@ class Utils(commands.Cog, name="Utils"):
) )
e.add_field( e.add_field(
name="__:gear: Usage__", name="__:gear: Usage__",
value=f"**{humanize.naturalsize(mem.rss)}** " value=_(
f"{_('physical memory', ctx, self.bot.config)}\n" "**{}** physical memory\n**{}** virtual memory",
f"**{humanize.naturalsize(mem.vms)}** " ctx,
f"{_('virtual memory', ctx, self.bot.config)}\n", self.bot.config,
).format(
humanize.naturalsize(mem.rss),
humanize.naturalsize(mem.vms),
),
inline=True, inline=True,
) )
e.add_field( e.add_field(
name=f"__{_('Servers count', ctx, self.bot.config)}__", name=_("__Servers count__", ctx, self.bot.config),
value=str(len(self.bot.guilds)), value=str(len(self.bot.guilds)),
inline=True, inline=True,
) )
e.add_field( e.add_field(
name=f"__{_('Channels count', ctx, self.bot.config)}__", name=_("__Channels count__", ctx, self.bot.config),
value=str(len(list(self.bot.get_all_channels()))), value=str(len(list(self.bot.get_all_channels()))),
inline=True, inline=True,
) )
e.add_field( e.add_field(
name=f"__{_('Members count', ctx, self.bot.config)}__", name=_("__Members count__", ctx, self.bot.config),
value=str(len(list(self.bot.get_all_members()))), value=str(len(list(self.bot.get_all_members()))),
inline=True, inline=True,
) )
e.add_field( e.add_field(
name=f"__:file_folder: " name=_("__:file_folder: Files__", ctx, self.bot.config),
f"{_('Files', ctx, self.bot.config)}__",
value=f"{infos.get('file_amount')} " value=f"{infos.get('file_amount')} "
f"*({infos.get('python_file_amount')}" f"*({infos.get('python_file_amount')}"
f" <:python:596577462335307777>)*", f" <:python:596577462335307777>)*",
inline=True, inline=True,
) )
e.add_field( e.add_field(
name=f"__¶ {_('Lines', ctx, self.bot.config)}__", name=_("__¶ Lines__", ctx, self.bot.config),
value=f"{infos.get('total_lines')} " value=f"{infos.get('total_lines')} "
f"*({infos.get('total_python_class')} class," f"*({infos.get('total_python_class')} class,"
f" {infos.get('total_python_functions')} functions," f" {infos.get('total_python_functions')} functions,"
@ -96,20 +102,20 @@ class Utils(commands.Cog, name="Utils"):
) )
e.add_field( e.add_field(
name=f"__{_('Latest changes', ctx, self.bot.config)}__", name=_("__Latest changes__", ctx, self.bot.config),
value=version_info.info, value=version_info.info,
inline=False, inline=False,
) )
e.add_field( e.add_field(
name=f"__:link: {_('Links', ctx, self.bot.config)}__", name=_("__:link: Links__", ctx, self.bot.config),
value="[tuxbot.gnous.eu](https://tuxbot.gnous.eu/) " value="[tuxbot.gnous.eu](https://tuxbot.gnous.eu/) "
"| [gnous.eu](https://gnous.eu/) " "| [gnous.eu](https://gnous.eu/) "
"| [git](https://git.gnous.eu/gnouseu/tuxbot-bot) " "| [git](https://git.gnous.eu/gnouseu/tuxbot-bot) "
"| [status](https://status.gnous.eu/check/154250) " "| [status](https://status.gnous.eu/check/154250) "
f"| [{_('Invite', ctx, self.bot.config)}]" + _("| [Invite]", ctx, self.bot.config)
f"(https://discordapp.com/oauth2/authorize?client_id=" + "(https://discordapp.com/oauth2/authorize?client_id="
f"301062143942590465&scope=bot&permissions=268749888)", "301062143942590465&scope=bot&permissions=268749888)",
inline=False, inline=False,
) )
@ -189,8 +195,8 @@ class Utils(commands.Cog, name="Utils"):
ctx, ctx,
self.bot.config, self.bot.config,
) )
+ f"[{_('Add!', ctx, self.bot.config, )}]" + _("[Add!]", ctx, self.bot.config)
f"({discord.utils.oauth_url(self.bot.user.id, basic_perms)})", + f"({discord.utils.oauth_url(self.bot.user.id, basic_perms)})",
inline=False, inline=False,
) )
e.add_field( e.add_field(
@ -201,8 +207,8 @@ class Utils(commands.Cog, name="Utils"):
ctx, ctx,
self.bot.config, self.bot.config,
) )
+ f"[{_('Add!', ctx, self.bot.config, )}]" + _("[Add!]", ctx, self.bot.config)
f"({discord.utils.oauth_url(self.bot.user.id, admin_perms)})", + f"({discord.utils.oauth_url(self.bot.user.id, admin_perms)})",
inline=False, inline=False,
) )
@ -211,7 +217,7 @@ class Utils(commands.Cog, name="Utils"):
# ========================================================================= # =========================================================================
@command_extra(name="source") @command_extra(name="source")
async def _invite(self, ctx: ContextPlus, *, name=None): async def _source(self, ctx: ContextPlus, *, name=None):
base_url = "https://github.com/Rom1-J/tuxbot-bot" base_url = "https://github.com/Rom1-J/tuxbot-bot"
if not name: if not name: