Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2022-05-09 13:11:39 +0300
committerlovetox <philipp@hoerist.com>2022-05-09 13:12:01 +0300
commit715824932e91d80d694cfea73184c2721dd97e8d (patch)
treed021aac4c3c24bb48f47da25763c5ecaba565f7a
parent860cb62f7632ada2a2bd991aa8f1cf629f387d6a (diff)
[translations] Fix version attr access
-rw-r--r--plugins_translations/plugins_translations.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins_translations/plugins_translations.py b/plugins_translations/plugins_translations.py
index 55f57e3..a8e0c14 100644
--- a/plugins_translations/plugins_translations.py
+++ b/plugins_translations/plugins_translations.py
@@ -22,7 +22,8 @@ class PluginsTranslationsPlugin(GajimPlugin):
self.locale_dir = Path(configpaths.get('PLUGINS_USER')) / 'locale'
def activate(self):
- if self.config['last_version'] == self.version:
+ current_version = str(self.manifest.version)
+ if self.config['last_version'] == current_version:
return
files = glob(self.__path__ + '/*.mo')
@@ -40,7 +41,7 @@ class PluginsTranslationsPlugin(GajimPlugin):
shutil.copy2(os.path.join(self.__path__, '%s.mo' % locale),
str(dst))
- self.config['last_version'] = self.version
+ self.config['last_version'] = current_version
def _remove_translations(self):
log.info('Removing old translations...')