Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
62
Issues
62
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
7edb94d7
Commit
7edb94d7
authored
Apr 25, 2018
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[translations] Use configpaths api for getting path
parent
854ed7e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
plugins_translations/plugins_translations.py
plugins_translations/plugins_translations.py
+4
-3
No files found.
plugins_translations/plugins_translations.py
View file @
7edb94d7
...
...
@@ -3,7 +3,7 @@
import
os
from
gajim.common
import
app
from
gajim.common
import
configpaths
from
gajim.plugins
import
GajimPlugin
from
gajim.plugins.helpers
import
log_calls
from
gajim.plugins.plugins_i18n
import
_
...
...
@@ -14,10 +14,11 @@ class PluginsTranslationsPlugin(GajimPlugin):
@
log_calls
(
'PluginsTranslationsPlugin'
)
def
init
(
self
):
self
.
description
=
_
(
'This plugin contains translation files '
'for Gajim plugins'
)
'for Gajim plugins'
)
self
.
config_dialog
=
None
self
.
config_default_values
=
{
'last_version'
:
'0'
}
self
.
locale_dir
=
os
.
path
.
join
(
app
.
PLUGINS_DIRS
[
1
],
'locale'
)
self
.
locale_dir
=
os
.
path
.
join
(
configpaths
.
get
(
'PLUGINS_USER'
),
'locale'
)
@
log_calls
(
'PluginsTranslationsPlugin'
)
def
activate
(
self
):
...
...
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