Ver código fonte

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

Jeremy Stretch 4 semanas atrás
pai
commit
eff768192e
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      netbox/netbox/ui/panels.py

+ 1 - 1
netbox/netbox/ui/panels.py

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