mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Added #128
This commit is contained in:
parent
b494011e94
commit
278fa65c9e
|
@ -1297,7 +1297,10 @@ class Recent_Changes_Class(object):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.tags[tag["name"]] = None # Tags with no display name are hidden and should not appear on RC as well
|
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"]:
|
for message in startup_info["allmessages"]:
|
||||||
|
if not "missing" in message: # ignore missing strings
|
||||||
self.mw_messages[message["name"]] = message["*"]
|
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():
|
for key, message in self.mw_messages.items():
|
||||||
if key.startswith("recentchanges-page-"):
|
if key.startswith("recentchanges-page-"):
|
||||||
self.mw_messages[key] = re.sub(r'\[\[.*?\]\]', '', message)
|
self.mw_messages[key] = re.sub(r'\[\[.*?\]\]', '', message)
|
||||||
|
|
Loading…
Reference in a new issue