Fix message for log action "managewiki/undelete"

See https://github.com/miraheze/ManageWiki/blob/master/i18n/en.json#L41. Also mentioned on Discord.
This commit is contained in:
MarkusRost 2021-01-23 22:14:41 +00:00
parent d4c44da126
commit 0ef302ec7f

View file

@ -388,7 +388,7 @@ async def compact_formatter(action, change, parsed_comment, categories, recent_c
author=author, author_url=author_url, group_name=group_name, comment=parsed_comment author=author, author_url=author_url, group_name=group_name, comment=parsed_comment
) )
elif action == "managewiki/undelete": elif action == "managewiki/undelete":
content = _("[{author}]({author_url}) restored a wiki *{wiki_name}*{comment}").format( content = _("[{author}]({author_url}) undeleted a wiki *{wiki_name}*{comment}").format(
author=author, author_url=author_url, wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment author=author, author_url=author_url, wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment
) )
elif action == "managewiki/unlock": elif action == "managewiki/unlock":
@ -1018,7 +1018,7 @@ async def embed_formatter(action, change, parsed_comment, categories, recent_cha
embed["title"] = _("Modified \"{usergroup_name}\" usergroup").format(usergroup_name=group_name) embed["title"] = _("Modified \"{usergroup_name}\" usergroup").format(usergroup_name=group_name)
link = create_article_path(change["title"], WIKI_ARTICLE_PATH) link = create_article_path(change["title"], WIKI_ARTICLE_PATH)
elif action == "managewiki/undelete": elif action == "managewiki/undelete":
embed["title"] = _("Restored a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown"))) embed["title"] = _("Undeleted a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown")))
link = create_article_path(change["title"], WIKI_ARTICLE_PATH) link = create_article_path(change["title"], WIKI_ARTICLE_PATH)
elif action == "managewiki/unlock": elif action == "managewiki/unlock":
embed["title"] = _("Unlocked a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown"))) embed["title"] = _("Unlocked a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown")))