Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim-plugins
Commits
71582493
Commit
71582493
authored
May 09, 2022
by
Philipp Hörist
Browse files
[translations] Fix version attr access
parent
860cb62f
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins_translations/plugins_translations.py
View file @
71582493
...
...
@@ -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...'
)
...
...
Daniel Brötzmann
@wurstsalat
mentioned in issue
#586 (closed)
·
May 09, 2022
mentioned in issue
#586 (closed)
mentioned in issue #586
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment