"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8-bit\n"
-#: 240:field.aihu.org_unit.label 257:field.ancihu.org_unit.label
+#: field.aihu.org_unit.label:240 field.ancihu.org_unit.label:257
msgid "Using Library"
msgstr "Utiliser la bibliothèque"
-#: 2475:field.rxbt.voided.label
+#: field.rxbt.voided.label:2475
msgid ""
"\n"
"Super crazy long and repetitive message ID from hell\n"
"Super crazy long and repetitive message ID from hell"
msgstr "ôèàéç"
-#: 524:field.bre.source.label
+#: field.bre.source.label:524
msgid "Record Source"
msgstr ""
#!/usr/bin/env python
+# -*- coding: utf=8 -*-
# vim: set fileencoding=utf-8 :
"""
Test the BaseL10N class to ensure that we have a solid foundation.
canonpo = os.path.join(basedir, 'data/complex.po')
poentries = [{
'msgid': 'Using Library',
- 'msgstr': 'Utiliser la bibliothèque',
+ 'msgstr': u'Utiliser la bibliothèque',
'occurrences': [
{'line': 240, 'name': 'field.aihu.org_unit.label'},
{'line': 257, 'name': 'field.ancihu.org_unit.label'},
]},
{
'msgid': '\nSuper crazy long and repetitive message ID from hell\nSuper crazy long and repetitive message ID from hell\nSuper crazy long and repetitive message ID from hell\nSuper crazy long and repetitive message ID from hell\nSuper crazy long and repetitive message ID from hell',
- 'msgstr': 'ôèàéç',
+ 'msgstr': u'ôèàéç',
'occurrences': [
{'line': 2475, 'name': 'field.rxbt.voided.label'},
]},
for msg in self.poentries:
poe = polib.POEntry()
for x in msg['occurrences']:
- poe.occurrences.append((x['line'], x['name']))
+ poe.occurrences.append((x['name'], x['line']))
poe.msgid = msg['msgid']
if msg.has_key('msgstr'):
poe.msgstr = msg['msgstr']
pogen.pot.append(poe)
- self.assertEqual(str(poload), str(pogen))
+ self.assertEqual(unicode(poload), unicode(pogen))
def testsavepot(self):
"""