Fix .po loader for multiple source references

Some .po files appeared to have space-separated source
references.

bzr revid: p_christ@hol.gr-20090129073717-nquq8i09u9bhppfi
This commit is contained in:
P. Christeas
2009-01-29 09:37:17 +02:00
parent 313744ee35
commit 4f31dfb808
+5 -1
View File
@@ -118,7 +118,11 @@ class TinyPoFile(object):
while line.startswith('#'):
if line.startswith('#:'):
tmp_tnrs.append( line[2:].strip().split(':') )
if ' ' in line[2:].strip():
for lpart in line[2:].strip().split(' '):
tmp_tnrs.append(lpart.strip().split(':',2))
else:
tmp_tnrs.append( line[2:].strip().split(':',2) )
elif line.startswith('#,') and (line[2:].strip() == 'fuzzy'):
fuzzy = True
line = self.lines.pop(0).strip()