diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-03-19 19:04:15 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-03-19 19:04:15 +0300 |
commit | 7f6ae93c548a8ce99ae0a21b10e9a686105f08d3 (patch) | |
tree | 588291f203d2ce6266b49bdef0fb534ea45249f7 /ui_translate/__init__.py | |
parent | 1acd28885f77a3c655b20dd1d9837f24336a9940 (diff) |
UITranslation: remove usage of register_module.
Diffstat (limited to 'ui_translate/__init__.py')
-rw-r--r-- | ui_translate/__init__.py | 12 |
1 files changed, 8 insertions, 4 deletions
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) |