Recreated diff from !84 without conflict issues

This commit is contained in:
Frisk 2021-04-11 15:05:05 +02:00
parent 41929a98c5
commit ee9f8f6da8
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -459,7 +459,7 @@ def compact_formatter(action, change, parsed_comment, categories, recent_changes
content = _("[{author}]({author_url}) locked a wiki *{wiki_name}*{comment}").format( content = _("[{author}]({author_url}) locked 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/namespaces": elif action == "managewiki/namespaces":
content = _("[{author}]({author_url}) modified a namespace *{namespace_name}* on *{wiki_name}*{comment}").format( content = _("[{author}]({author_url}) modified namespace *{namespace_name}* on *{wiki_name}*{comment}").format(
author=author, author_url=author_url, namespace_name=change["logparams"].get("namespace", _("Unknown")), author=author, author_url=author_url, namespace_name=change["logparams"].get("namespace", _("Unknown")),
wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment) wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment)
elif action == "managewiki/namespaces-delete": elif action == "managewiki/namespaces-delete":
@ -1144,7 +1144,7 @@ def embed_formatter(action, change, parsed_comment, categories, recent_changes):
embed["title"] = _("Locked a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown"))) embed["title"] = _("Locked 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/namespaces": elif action == "managewiki/namespaces":
embed["title"] = _("Modified a \"{namespace_name}\" namespace").format(namespace_name=change["logparams"].get("namespace", _("Unknown"))) embed["title"] = _("Modified \"{namespace_name}\" namespace").format(namespace_name=change["logparams"].get("namespace", _("Unknown")))
link = create_article_path(change["title"]) link = create_article_path(change["title"])
embed.add_field(_('Wiki'), change["logparams"].get("wiki", _("Unknown"))) embed.add_field(_('Wiki'), change["logparams"].get("wiki", _("Unknown")))
elif action == "managewiki/namespaces-delete": elif action == "managewiki/namespaces-delete":