Commit e09abd3c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

rename plagins_translations to plugins_translations

parent 006aa608
from plagins_translations import PlaginsTranslationsPlugin
<?xml version="1.0"?>
<interface>
<!-- interface-naming-policy toplevel-contextual -->
</interface>
This diff is collapsed.
from plugins_translations import PluginsTranslationsPlugin
[info] [info]
name: Plagins translations name: Plugins translations
short_name: plagins_translations short_name: plugins_translations
version: 0.2 version: 0.2
description: This plugin contains translations files for Gajim plugins description: This plugin contains translations files for Gajim plugins
authors = Denis Fomin <fominde@gmail.com> authors = Denis Fomin <fominde@gmail.com>
......
...@@ -10,9 +10,9 @@ from plugins.helpers import log_calls ...@@ -10,9 +10,9 @@ from plugins.helpers import log_calls
from plugins.plugins_i18n import _ from plugins.plugins_i18n import _
class PlaginsTranslationsPlugin(GajimPlugin): class PluginsTranslationsPlugin(GajimPlugin):
@log_calls('PlaginsTranslationsPlugin') @log_calls('PluginsTranslationsPlugin')
def init(self): def init(self):
self.description = _('This plugin contains translations files ' self.description = _('This plugin contains translations files '
'for Gajim plugins') 'for Gajim plugins')
...@@ -20,7 +20,7 @@ class PlaginsTranslationsPlugin(GajimPlugin): ...@@ -20,7 +20,7 @@ class PlaginsTranslationsPlugin(GajimPlugin):
self.config_default_values = {'last_version': '0'} self.config_default_values = {'last_version': '0'}
self.locale_dir = os.path.join(gajim.PLUGINS_DIRS[1], 'locale') self.locale_dir = os.path.join(gajim.PLUGINS_DIRS[1], 'locale')
@log_calls('PlaginsTranslationsPlugin') @log_calls('PluginsTranslationsPlugin')
def activate(self): def activate(self):
if self.config['last_version'] == self.version: if self.config['last_version'] == self.version:
return return
...@@ -48,6 +48,6 @@ class PlaginsTranslationsPlugin(GajimPlugin): ...@@ -48,6 +48,6 @@ class PlaginsTranslationsPlugin(GajimPlugin):
import shutil import shutil
shutil.rmtree(self.locale_dir) shutil.rmtree(self.locale_dir)
@log_calls('PlaginsTranslationsPlugin') @log_calls('PluginsTranslationsPlugin')
def deactivate(self): def deactivate(self):
self.remove_translations() self.remove_translations()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment