Browse Source

Support multiline message ids.

pull/338/head
Joachim Bauch 9 years ago
parent
commit
dc4585080d
  1. 7
      src/i18n/helpers/polint.py

7
src/i18n/helpers/polint.py

@ -62,8 +62,11 @@ def parsepo(fn):
msgstr = None msgstr = None
elif line.startswith("msgstr"): elif line.startswith("msgstr"):
msgstr = line.strip()[8:-1] msgstr = line.strip()[8:-1]
elif line.startswith('"') and msgstr is not None and msgid is not None: elif line.startswith('"'):
msgstr += line.strip()[1:-1] if msgstr is None:
msgid += line.strip()[1:-1]
elif msgstr is not None:
msgstr += line.strip()[1:-1]
elif line.startswith("#. Default: "): elif line.startswith("#. Default: "):
default = line.strip()[13:-1] default = line.strip()[13:-1]
elif line.startswith("#"): elif line.startswith("#"):

Loading…
Cancel
Save