From 7f6ae93c548a8ce99ae0a21b10e9a686105f08d3 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 19 Mar 2017 17:04:15 +0100 Subject: UITranslation: remove usage of register_module. --- ui_translate/__init__.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'ui_translate/__init__.py') diff --git a/ui_translate/__init__.py b/ui_translate/__init__.py index 2912ec3d..23f03d43 100644 --- a/ui_translate/__init__.py +++ b/ui_translate/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "Manage UI translations", "author": "Bastien Montagne", - "version": (1, 1, 2), + "version": (1, 1, 3), "blender": (2, 75, 0), "location": "Main \"File\" menu, text editor, any UI control", "description": "Allow to manage UI translations directly from Blender " @@ -53,8 +53,12 @@ else: import os +classes = settings.classes + edit_translation.classes + update_svn.classes + update_addon.classes + update_ui.classes + + def register(): - bpy.utils.register_module(__name__) + for cls in classes: + bpy.utils.register_class(cls) bpy.types.WindowManager.i18n_update_svn_settings = \ bpy.props.PointerProperty(type=update_ui.I18nUpdateTranslationSettings) @@ -68,5 +72,5 @@ def register(): def unregister(): del bpy.types.WindowManager.i18n_update_svn_settings - - bpy.utils.unregister_module(__name__) + for cls in classes: + bpy.utils.unregister_class(cls) -- cgit v1.2.3