mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Reset translation dict when reloading a locale.
This commit is contained in:
parent
30c56ae19f
commit
989c674c58
@ -143,6 +143,7 @@ class _PluginInternationalization:
|
|||||||
|
|
||||||
def loadLocale(self, localeName=None):
|
def loadLocale(self, localeName=None):
|
||||||
"""(Re)loads the locale used by this class."""
|
"""(Re)loads the locale used by this class."""
|
||||||
|
self.translations = {}
|
||||||
if localeName is None:
|
if localeName is None:
|
||||||
localeName = currentLocale
|
localeName = currentLocale
|
||||||
self.currentLocaleName = localeName
|
self.currentLocaleName = localeName
|
||||||
|
Loading…
Reference in New Issue
Block a user