mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fix message for log action "managewiki/undelete"
This commit is contained in:
parent
8b1afd0c21
commit
8caa25ed01
|
@ -474,7 +474,7 @@ def compact_formatter(action, change, parsed_comment, categories, recent_changes
|
||||||
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":
|
||||||
|
@ -1157,7 +1157,7 @@ def embed_formatter(action, change, parsed_comment, categories, recent_changes):
|
||||||
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"])
|
link = create_article_path(change["title"])
|
||||||
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"])
|
link = create_article_path(change["title"])
|
||||||
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")))
|
||||||
|
|
Loading…
Reference in a new issue