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
1 changed files with 4 additions and 0 deletions

View File

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