[translations] Use configpaths api for getting path
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user