I18n: Disambiguate "Power"
- In the context of color balance, refers to a power function. Uses ID_MOVIECLIP context, because the ID_NODE is already used for math functions. - In the context of the scale constraint, also a power function. - In the context of physics and particle settings, refers to a falloff. - In the context of property subtypes and units, refers to a quantity. Issue reported by Hoang Duy Tran.
This commit is contained in:
committed by
Bastien Montagne
parent
88dbe8dcd1
commit
c3d071e469
@@ -1384,32 +1384,33 @@ rna_custom_property_type_items = (
|
||||
('PYTHON', "Python", "Edit a Python value directly, for unsupported property types"),
|
||||
)
|
||||
|
||||
rna_custom_property_subtype_none_item = ('NONE', n_("Plain Data"), n_("Data values without special behavior"))
|
||||
rna_custom_property_subtype_none_item = ('NONE', n_(
|
||||
"Plain Data", i18n_contexts.unit), n_("Data values without special behavior"))
|
||||
|
||||
rna_custom_property_subtype_number_items = (
|
||||
rna_custom_property_subtype_none_item,
|
||||
('PIXEL', n_("Pixel"), n_("A distance on screen")),
|
||||
('PERCENTAGE', n_("Percentage"), n_("A percentage between 0 and 100")),
|
||||
('FACTOR', n_("Factor"), n_("A factor between 0.0 and 1.0")),
|
||||
('ANGLE', n_("Angle"), n_("A rotational value specified in radians")),
|
||||
('TIME_ABSOLUTE', n_("Time"), n_("Time specified in seconds")),
|
||||
('DISTANCE', n_("Distance"), n_("A distance between two points")),
|
||||
('POWER', n_("Power"), ""),
|
||||
('TEMPERATURE', n_("Temperature"), ""),
|
||||
('PIXEL', n_("Pixel", i18n_contexts.unit), n_("A distance on screen")),
|
||||
('PERCENTAGE', n_("Percentage", i18n_contexts.unit), n_("A percentage between 0 and 100")),
|
||||
('FACTOR', n_("Factor", i18n_contexts.unit), n_("A factor between 0.0 and 1.0")),
|
||||
('ANGLE', n_("Angle", i18n_contexts.unit), n_("A rotational value specified in radians")),
|
||||
('TIME_ABSOLUTE', n_("Time", i18n_contexts.unit), n_("Time specified in seconds")),
|
||||
('DISTANCE', n_("Distance", i18n_contexts.unit), n_("A distance between two points")),
|
||||
('POWER', n_("Power", i18n_contexts.unit), ""),
|
||||
('TEMPERATURE', n_("Temperature", i18n_contexts.unit), ""),
|
||||
)
|
||||
|
||||
rna_custom_property_subtype_vector_items = (
|
||||
rna_custom_property_subtype_none_item,
|
||||
('COLOR', n_("Linear Color"), n_("Color in the linear space")),
|
||||
('COLOR_GAMMA', n_("Gamma-Corrected Color"), n_("Color in the gamma corrected space")),
|
||||
('TRANSLATION', n_("Translation"), ""),
|
||||
('DIRECTION', n_("Direction"), ""),
|
||||
('VELOCITY', n_("Velocity"), ""),
|
||||
('ACCELERATION', n_("Acceleration"), ""),
|
||||
('EULER', n_("Euler Angles"), n_("Euler rotation angles in radians")),
|
||||
('QUATERNION', n_("Quaternion Rotation"), n_("Quaternion rotation (affects NLA blending)")),
|
||||
('AXISANGLE', n_("Axis-Angle"), n_("Angle and axis to rotate around")),
|
||||
('XYZ', n_("XYZ"), ""),
|
||||
('COLOR', n_("Linear Color", i18n_contexts.unit), n_("Color in the linear space")),
|
||||
('COLOR_GAMMA', n_("Gamma-Corrected Color", i18n_contexts.unit), n_("Color in the gamma corrected space")),
|
||||
('TRANSLATION', n_("Translation", i18n_contexts.unit), ""),
|
||||
('DIRECTION', n_("Direction", i18n_contexts.unit), ""),
|
||||
('VELOCITY', n_("Velocity", i18n_contexts.unit), ""),
|
||||
('ACCELERATION', n_("Acceleration", i18n_contexts.unit), ""),
|
||||
('EULER', n_("Euler Angles", i18n_contexts.unit), n_("Euler rotation angles in radians")),
|
||||
('QUATERNION', n_("Quaternion Rotation", i18n_contexts.unit), n_("Quaternion rotation (affects NLA blending)")),
|
||||
('AXISANGLE', n_("Axis-Angle", i18n_contexts.unit), n_("Angle and axis to rotate around")),
|
||||
('XYZ', n_("XYZ", i18n_contexts.unit), ""),
|
||||
)
|
||||
|
||||
rna_id_type_items = tuple((item.identifier, item.name, item.description, item.icon, item.value)
|
||||
@@ -1548,6 +1549,7 @@ class WM_OT_properties_edit(Operator):
|
||||
subtype: EnumProperty(
|
||||
name="Subtype",
|
||||
items=subtype_items_cb,
|
||||
translation_context=i18n_contexts.unit,
|
||||
)
|
||||
|
||||
# String properties.
|
||||
|
||||
Reference in New Issue
Block a user