diff src/plugins/plugin_exp_lang_detect.py @ 2145:33c8c4973743

core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 18:59:10 +0100
parents 1d3f73e065e1
children 8b37a62336c3
line wrap: on
line diff
--- a/src/plugins/plugin_exp_lang_detect.py	Sun Feb 12 17:55:43 2017 +0100
+++ b/src/plugins/plugin_exp_lang_detect.py	Sun Feb 12 18:59:10 2017 +0100
@@ -18,6 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from sat.core.i18n import _, D_
+from sat.core.constants import Const as C
 from sat.core.log import getLogger
 log = getLogger(__name__)
 from sat.core import exceptions
@@ -31,14 +32,14 @@
 
 
 PLUGIN_INFO = {
-    "name": "Language detection plugin",
-    "import_name": "EXP-LANG-DETECT",
-    "type": "EXP",
-    "protocols": [],
-    "dependencies": [],
-    "main": "LangDetect",
-    "handler": "no",
-    "description": _("""Detect and set message language when unknown""")
+    C.PI_NAME: "Language detection plugin",
+    C.PI_IMPORT_NAME: "EXP-LANG-DETECT",
+    C.PI_TYPE: "EXP",
+    C.PI_PROTOCOLS: [],
+    C.PI_DEPENDENCIES: [],
+    C.PI_MAIN: "LangDetect",
+    C.PI_HANDLER: "no",
+    C.PI_DESCRIPTION: _("""Detect and set message language when unknown""")
 }
 
 CATEGORY = D_(u"Misc")