Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:WindBOT/Filters: Difference between revisions

From the Portal Wiki
m Implement {{tl|Dictionary}}: Enforce at least one whitespace character before translations
m rstrip
Line 221: Line 221:
                   data = {}
                   data = {}
                   isTranslation = True
                   isTranslation = True
                   for translation in self.translationExtract.finditer(dataString.strip()):
                   for translation in self.translationExtract.finditer(dataString.rstrip()):
                       data[u(translation.group(1))] = u(translation.group(2))
                       data[u(translation.group(1))] = u(translation.group(2))
                       if u(translation.group(1)) not in self.languages:
                       if u(translation.group(1)) not in self.languages: