Fixes #21140: Ensure default panel attribute labels are translated (#21153)

This commit is contained in:
Jeremy Stretch 2026-01-16 02:35:35 -05:00 committed by GitHub
parent 1e297d55ee
commit eff768192e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class ObjectAttributesPanel(ObjectPanel, metaclass=ObjectAttributesPanelMeta):
"""
label = name[:1].upper() + name[1:]
label = label.replace('_', ' ')
return label
return _(label)
def get_context(self, context):
# Determine which attributes to display in the panel based on only/exclude args