From 0ef302ec7f7da31d6f84a42cc335d9e6e1f6e8b7 Mon Sep 17 00:00:00 2001 From: MarkusRost <2701034-MarkusRost@users.noreply.gitlab.com> Date: Sat, 23 Jan 2021 22:14:41 +0000 Subject: [PATCH] Fix message for log action "managewiki/undelete" See https://github.com/miraheze/ManageWiki/blob/master/i18n/en.json#L41. Also mentioned on Discord. --- src/formatters/rc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formatters/rc.py b/src/formatters/rc.py index 1f9420a..9ee8a40 100644 --- a/src/formatters/rc.py +++ b/src/formatters/rc.py @@ -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 ) 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 ) 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) link = create_article_path(change["title"], WIKI_ARTICLE_PATH) 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) elif action == "managewiki/unlock": embed["title"] = _("Unlocked a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown")))