diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-04-19 20:24:18 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-04-19 20:24:18 +0400 |
commit | 86fb6178a6c89b5f92261696ff47c6d7294c87a0 (patch) | |
tree | 4fc86ff5d7d62f020674d3f212a75f0fc2f8674b /ui_translate/settings.py | |
parent | 30aa7d5bc8426ed1867c069d865bdb2af830ea84 (diff) |
Some cleanups and fixes, and use new "progressbar" api for main translation operators (which can be rather long), thanks Gaia! :)
Diffstat (limited to 'ui_translate/settings.py')
-rw-r--r-- | ui_translate/settings.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ui_translate/settings.py b/ui_translate/settings.py index 34195e68..07479f08 100644 --- a/ui_translate/settings.py +++ b/ui_translate/settings.py @@ -41,9 +41,9 @@ import os settings = settings_i18n.I18nSettings() -class UI_OT_settings_i18n_load(bpy.types.Operator): +class UI_OT_i18n_settings_load(bpy.types.Operator): """Load translations' settings from a persistent JSon file""" - bl_idname = "ui.settings_i18n_load" + bl_idname = "ui.i18n_settings_load" bl_label = "I18n Load Settings" bl_option = {'REGISTER'} @@ -66,9 +66,9 @@ class UI_OT_settings_i18n_load(bpy.types.Operator): return {'FINISHED'} -class UI_OT_settings_i18n_save(bpy.types.Operator): +class UI_OT_i18n_settings_save(bpy.types.Operator): """Save translations' settings in a persistent JSon file""" - bl_idname = "ui.settings_i18n_save" + bl_idname = "ui.i18n_settings_save" bl_label = "I18n Save Settings" bl_option = {'REGISTER'} @@ -95,7 +95,7 @@ def _setattr(self, name, val): print(self, name, val) setattr(self, name, val) -class UI_AP_settings_i18n(bpy.types.AddonPreferences): +class UI_AP_i18n_settings(bpy.types.AddonPreferences): bl_idname = __name__.split(".")[0] # We want "top" module name! bl_option = {'REGISTER'} @@ -189,8 +189,8 @@ class UI_AP_settings_i18n(bpy.types.AddonPreferences): col = split.column() col.prop(self, "persistent_data_path") row = col.row() - row.operator("UI_OT_settings_i18n_save", text="Save").filepath = self.persistent_data_path - row.operator("UI_OT_settings_i18n_load", text="Load").filepath = self.persistent_data_path + row.operator("ui.i18n_settings_save", text="Save").filepath = self.persistent_data_path + row.operator("ui.i18n_settings_load", text="Load").filepath = self.persistent_data_path col = split.column() - col.operator("UI_OT_settings_i18n_save", text="Save Persistent To...") - col.operator("UI_OT_settings_i18n_load", text="Load Persistent From...") + col.operator("ui.i18n_settings_save", text="Save Persistent To...") + col.operator("ui.i18n_settings_load", text="Load Persistent From...") |