Переглянути джерело

Merge pull request #21199 from netbox-community/21178-change-rack-dimensions-display-to-be-more-consistent

Fixes #21178: Use localized “millimeters” for rack mounting depth (follow-up)
bctiemann 3 тижнів тому
батько
коміт
0f62137957
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      netbox/dcim/ui/panels.py

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

@@ -31,7 +31,7 @@ class RackDimensionsPanel(panels.ObjectAttributesPanel):
     outer_width = attrs.NumericAttr('outer_width', unit_accessor='get_outer_unit_display')
     outer_width = attrs.NumericAttr('outer_width', unit_accessor='get_outer_unit_display')
     outer_height = attrs.NumericAttr('outer_height', unit_accessor='get_outer_unit_display')
     outer_height = attrs.NumericAttr('outer_height', unit_accessor='get_outer_unit_display')
     outer_depth = attrs.NumericAttr('outer_depth', unit_accessor='get_outer_unit_display')
     outer_depth = attrs.NumericAttr('outer_depth', unit_accessor='get_outer_unit_display')
-    mounting_depth = attrs.TextAttr('mounting_depth', format_string='{} mm')
+    mounting_depth = attrs.TextAttr('mounting_depth', format_string=_('{} millimeters'))
 
 
 
 
 class RackNumberingPanel(panels.ObjectAttributesPanel):
 class RackNumberingPanel(panels.ObjectAttributesPanel):