[Downloader] Fix various formatting issues in cog update notices (#5185)

* again :P

* some more

* fix
This commit is contained in:
Kreus Amredes 2021-08-31 22:20:29 +01:00 committed by GitHub
parent d15011e2c5
commit 6bf85a42f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1441,7 +1441,7 @@ class Downloader(commands.Cog):
message += ( message += (
_("\nSome cogs with these names are already installed from different repos: ") _("\nSome cogs with these names are already installed from different repos: ")
if len(name_already_used) > 1 if len(name_already_used) > 1
else _("Cog with this name is already installed from a different repo.") else _("\nCog with this name is already installed from a different repo.")
) + humanize_list(name_already_used) ) + humanize_list(name_already_used)
correct_cogs, add_to_message = self._filter_incorrect_cogs(cogs) correct_cogs, add_to_message = self._filter_incorrect_cogs(cogs)
if add_to_message: if add_to_message:
@ -1486,7 +1486,7 @@ class Downloader(commands.Cog):
message += ( message += (
_("\nThese cogs require higher python version than you have: ") _("\nThese cogs require higher python version than you have: ")
if len(outdated_python_version) if len(outdated_python_version)
else _("This cog requires higher python version than you have: ") else _("\nThis cog requires higher python version than you have: ")
) + humanize_list(outdated_python_version) ) + humanize_list(outdated_python_version)
if outdated_bot_version: if outdated_bot_version:
message += ( message += (
@ -1589,7 +1589,7 @@ class Downloader(commands.Cog):
) )
else: else:
message += ( message += (
_("End user data statement of this cog has changed:") _("\nEnd user data statement of this cog has changed:")
+ inline(next(iter(cogs_with_changed_eud_statement))) + inline(next(iter(cogs_with_changed_eud_statement)))
+ _("\nYou can use {command} to see the updated statement.\n").format( + _("\nYou can use {command} to see the updated statement.\n").format(
command=inline(f"{ctx.clean_prefix}cog info <repo> <cog>") command=inline(f"{ctx.clean_prefix}cog info <repo> <cog>")