diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-03-19 12:33:58 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-03-19 12:33:58 +0400 |
commit | 49312dff28d192b4eb0c8662609b77da47b40f6a (patch) | |
tree | 4542c2ad74f1321031b13a1102a3181ca875b66c /ui_translate/settings.py | |
parent | d85eb440aea446a5359f73365e7e0159932e108a (diff) |
Some renaming/cleanup in i18n tools.
Diffstat (limited to 'ui_translate/settings.py')
-rw-r--r-- | ui_translate/settings.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ui_translate/settings.py b/ui_translate/settings.py index bd971f44..34195e68 100644 --- a/ui_translate/settings.py +++ b/ui_translate/settings.py @@ -20,7 +20,7 @@ if "bpy" in locals(): import imp - imp.reload(i18n_settings) + imp.reload(settings_i18n) else: import bpy from bpy.props import (BoolProperty, @@ -32,18 +32,18 @@ else: PointerProperty, StringProperty, ) - from bl_i18n_utils import settings as i18n_settings + from bl_i18n_utils import settings as settings_i18n import os -settings = i18n_settings.I18nSettings() +settings = settings_i18n.I18nSettings() -class UI_OT_i18n_settings_load(bpy.types.Operator): +class UI_OT_settings_i18n_load(bpy.types.Operator): """Load translations' settings from a persistent JSon file""" - bl_idname = "ui.i18n_settings_load" + bl_idname = "ui.settings_i18n_load" bl_label = "I18n Load Settings" bl_option = {'REGISTER'} @@ -66,9 +66,9 @@ class UI_OT_i18n_settings_load(bpy.types.Operator): return {'FINISHED'} -class UI_OT_i18n_settings_save(bpy.types.Operator): +class UI_OT_settings_i18n_save(bpy.types.Operator): """Save translations' settings in a persistent JSon file""" - bl_idname = "ui.i18n_settings_save" + bl_idname = "ui.settings_i18n_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_i18n_settings(bpy.types.AddonPreferences): +class UI_AP_settings_i18n(bpy.types.AddonPreferences): bl_idname = __name__.split(".")[0] # We want "top" module name! bl_option = {'REGISTER'} @@ -189,8 +189,8 @@ class UI_AP_i18n_settings(bpy.types.AddonPreferences): col = split.column() col.prop(self, "persistent_data_path") row = col.row() - row.operator("UI_OT_i18n_settings_save", text="Save").filepath = self.persistent_data_path - row.operator("UI_OT_i18n_settings_load", text="Load").filepath = self.persistent_data_path + 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 col = split.column() - col.operator("UI_OT_i18n_settings_save", text="Save Persistent To...") - col.operator("UI_OT_i18n_settings_load", text="Load Persistent From...") + col.operator("UI_OT_settings_i18n_save", text="Save Persistent To...") + col.operator("UI_OT_settings_i18n_load", text="Load Persistent From...") |