mirror of https://github.com/Mikaela/Limnoria.git
Prevent last string of a file from being untranslated if .po does not end with a blank like.
This commit is contained in:
parent
9a345cff40
commit
6ccfe95751
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue