remove use of gettext: _("...") style translation now its handled by rna.
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
import bpy
|
||||
from bpy.types import Panel
|
||||
from rna_prop_ui import PropertyPanel
|
||||
from blf import gettext as _
|
||||
|
||||
|
||||
class CameraButtonsPanel():
|
||||
@@ -92,16 +91,16 @@ class DATA_PT_camera(CameraButtonsPanel, Panel):
|
||||
split = layout.split()
|
||||
|
||||
col = split.column(align=True)
|
||||
col.label(text=_("Shift:"))
|
||||
col.label(text="Shift:")
|
||||
col.prop(cam, "shift_x", text="X")
|
||||
col.prop(cam, "shift_y", text="Y")
|
||||
|
||||
col = split.column(align=True)
|
||||
col.label(text=_("Clipping:"))
|
||||
col.prop(cam, "clip_start", text=_("Start"))
|
||||
col.prop(cam, "clip_end", text=_("End"))
|
||||
col.label(text="Clipping:")
|
||||
col.prop(cam, "clip_start", text="Start")
|
||||
col.prop(cam, "clip_end", text="End")
|
||||
|
||||
layout.label(text=_("Depth of Field:"))
|
||||
layout.label(text="Depth of Field:")
|
||||
|
||||
split = layout.split()
|
||||
split.prop(cam, "dof_object", text="")
|
||||
@@ -110,7 +109,7 @@ class DATA_PT_camera(CameraButtonsPanel, Panel):
|
||||
|
||||
if cam.dof_object is not None:
|
||||
col.enabled = False
|
||||
col.prop(cam, "dof_distance", text=_("Distance"))
|
||||
col.prop(cam, "dof_distance", text="Distance")
|
||||
|
||||
|
||||
class DATA_PT_camera_display(CameraButtonsPanel, Panel):
|
||||
@@ -125,19 +124,19 @@ class DATA_PT_camera_display(CameraButtonsPanel, Panel):
|
||||
split = layout.split()
|
||||
|
||||
col = split.column()
|
||||
col.prop(cam, "show_limits", text=_("Limits"))
|
||||
col.prop(cam, "show_mist", text=_("Mist"))
|
||||
col.prop(cam, "show_title_safe", text=_("Title Safe"))
|
||||
col.prop(cam, "show_name", text=_("Name"))
|
||||
col.prop(cam, "show_limits", text="Limits")
|
||||
col.prop(cam, "show_mist", text="Mist")
|
||||
col.prop(cam, "show_title_safe", text="Title Safe")
|
||||
col.prop(cam, "show_name", text="Name")
|
||||
col.prop_menu_enum(cam, "show_guide")
|
||||
|
||||
col = split.column()
|
||||
col.prop(cam, "draw_size", text=_("Size"))
|
||||
col.prop(cam, "draw_size", text="Size")
|
||||
col.separator()
|
||||
col.prop(cam, "show_passepartout", text=_("Passepartout"))
|
||||
col.prop(cam, "show_passepartout", text="Passepartout")
|
||||
sub = col.column()
|
||||
sub.active = cam.show_passepartout
|
||||
sub.prop(cam, "passepartout_alpha", text=_("Alpha"), slider=True)
|
||||
sub.prop(cam, "passepartout_alpha", text="Alpha", slider=True)
|
||||
|
||||
|
||||
class DATA_PT_custom_props_camera(CameraButtonsPanel, PropertyPanel, Panel):
|
||||
|
Reference in New Issue
Block a user