mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 02:24:12 +01:00
i18n: Prevent untranslated strings from having empty translations
This commit is contained in:
parent
f191e21970
commit
c6cb4fa394
@ -231,6 +231,7 @@ class _PluginInternationalization:
|
||||
def _addToDatabase(self, untranslated, translated):
|
||||
untranslated = self._unescape(untranslated, True)
|
||||
translated = self._unescape(translated)
|
||||
if translated:
|
||||
self.translations.update({untranslated: translated})
|
||||
|
||||
def _unescape(self, string, removeNewline=False):
|
||||
|
Loading…
Reference in New Issue
Block a user