Reset translation dict when reloading a locale.

This commit is contained in:
Valentin Lorentz 2012-12-21 19:19:03 +01:00
parent 30c56ae19f
commit 989c674c58
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ class _PluginInternationalization:
def loadLocale(self, localeName=None):
"""(Re)loads the locale used by this class."""
self.translations = {}
if localeName is None:
localeName = currentLocale
self.currentLocaleName = localeName