src/i18n.py: Fix encoding issue with Python 3.

This commit is contained in:
Valentin Lorentz 2012-08-05 13:37:37 +02:00
parent f1165333e5
commit 306105abad

View File

@ -166,7 +166,7 @@ class _PluginInternationalization:
self.translations = {}
for line in translationFile:
line = line[0:-1] # Remove the ending \n
line = line.decode('utf8', errors='replace')
line = line
if line.startswith(MSGID):
# Don't check if step is WAITING_FOR_MSGID