diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-10 13:56:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-10 13:56:05 +0400 |
commit | 3b8a0f3d674a0da3bb17cbda30f0a2dc19a40e4f (patch) | |
tree | d7569e91a6160407d8d4cbce01aab4e0d6448ecd /release/scripts/startup/bl_ui | |
parent | b5962b7ccdf2ec9dabf92df5b32302aaa1cfda0a (diff) |
use import rather then assignment for loading '_' into scripts.
Diffstat (limited to 'release/scripts/startup/bl_ui')
10 files changed, 11 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index a0909b52760..303015ebac2 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -20,7 +20,7 @@ import bpy from bpy.types import Panel -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ class ModifierButtonsPanel(): diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 8c6a67ea17e..f3a83d225b9 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -21,7 +21,7 @@ import bpy from bpy.types import Menu, Panel, UIList from rna_prop_ui import PropertyPanel -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ def active_node_mat(mat): diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 24e65622854..fb930e9de5b 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -21,7 +21,7 @@ import bpy from bpy.types import Panel from rna_prop_ui import PropertyPanel -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ from bl_ui.properties_physics_common import (point_cache_ui, effector_weights_ui, diff --git a/release/scripts/startup/bl_ui/properties_physics_fluid.py b/release/scripts/startup/bl_ui/properties_physics_fluid.py index 623c6377954..c9eaa7a4acc 100644 --- a/release/scripts/startup/bl_ui/properties_physics_fluid.py +++ b/release/scripts/startup/bl_ui/properties_physics_fluid.py @@ -20,7 +20,7 @@ import bpy from bpy.types import Panel, Menu -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ class FLUID_MT_presets(Menu): diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py index cd232fc50f3..e26f44675fb 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -21,7 +21,7 @@ import bpy from bpy.types import Panel, Header, Menu, UIList -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ class CLIP_UL_tracking_objects(UIList): diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 44b84eba919..ed4b28a62d7 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -19,10 +19,9 @@ # <pep8 compliant> import bpy from bpy.types import Header, Menu, Panel -from bl_ui.properties_paint_common import UnifiedPaintPanel -from bl_ui.properties_paint_common import brush_texture_settings +from bl_ui.properties_paint_common import UnifiedPaintPanel, brush_texture_settings -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ class ImagePaintPanel(UnifiedPaintPanel): diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 5d927e6b477..c8d7d1e60c1 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -20,7 +20,7 @@ import bpy from bpy.types import Header, Menu, Panel -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ def act_strip(context): diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 53b806cc7ea..089bffd7e75 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -20,7 +20,7 @@ import bpy from bpy.types import Header, Menu, Panel -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ class TEXT_HT_header(Header): diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index eb9446f0fd0..239597d54f9 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -20,7 +20,7 @@ import bpy from bpy.types import Header, Menu, Panel -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ def ui_style_items(col, context): diff --git a/release/scripts/startup/bl_ui/space_userpref_keymap.py b/release/scripts/startup/bl_ui/space_userpref_keymap.py index 83815366824..1c0e54c2c47 100644 --- a/release/scripts/startup/bl_ui/space_userpref_keymap.py +++ b/release/scripts/startup/bl_ui/space_userpref_keymap.py @@ -20,7 +20,7 @@ import bpy from bpy.types import Menu -_ = bpy.app.translations.pgettext +from bpy.app.translations import pgettext as _ class USERPREF_MT_keyconfigs(Menu): |