Prevent last string of a file from being untranslated if .po does not end with a blank like.

This commit is contained in:
Valentin Lorentz 2012-07-30 14:33:22 +00:00
parent 9a345cff40
commit 6ccfe95751

View File

@ -205,6 +205,10 @@ class _PluginInternationalization:
if translated == '': if translated == '':
translated = untranslated translated = untranslated
self._addToDatabase(untranslated, translated) self._addToDatabase(untranslated, translated)
if step is IN_MSGSTR:
if translated == '':
translated = untranslated
self._addToDatabase(untranslated, translated)
def _addToDatabase(self, untranslated, translated): def _addToDatabase(self, untranslated, translated):
untranslated = self._unescape(untranslated, True) untranslated = self._unescape(untranslated, True)