Merge branch '1.12' into 'testing'

Added #128

See merge request piotrex43/RcGcDw!69
This commit is contained in:
Frisk 2020-07-04 23:11:49 +00:00
commit 863917b2f3

View file

@ -1297,7 +1297,10 @@ class Recent_Changes_Class(object):
except KeyError:
self.tags[tag["name"]] = None # Tags with no display name are hidden and should not appear on RC as well
for message in startup_info["allmessages"]:
if not "missing" in message: # ignore missing strings
self.mw_messages[message["name"]] = message["*"]
else:
logging.warning("Could not fetch the MW message translation for: {}".format(message["name"]))
for key, message in self.mw_messages.items():
if key.startswith("recentchanges-page-"):
self.mw_messages[key] = re.sub(r'\[\[.*?\]\]', '', message)