1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

10300 initial translation support use gettext

This commit is contained in:
Arthur
2022-11-03 11:58:26 -07:00
committed by Jeremy Stretch
parent 2cc2d2cc37
commit 6eba5d4d96
67 changed files with 1192 additions and 1134 deletions

View File

@@ -1,4 +1,5 @@
from django import forms
from django.utils.translation import gettext as _
from dcim.choices import LinkStatusChoices
from ipam.models import VLAN
@@ -45,12 +46,12 @@ class WirelessLANBulkEditForm(NetBoxModelBulkEditForm):
vlan = DynamicModelChoiceField(
queryset=VLAN.objects.all(),
required=False,
label='VLAN'
label=_('VLAN')
)
ssid = forms.CharField(
max_length=SSID_MAX_LENGTH,
required=False,
label='SSID'
label=_('SSID')
)
tenant = DynamicModelChoiceField(
queryset=Tenant.objects.all(),
@@ -66,7 +67,7 @@ class WirelessLANBulkEditForm(NetBoxModelBulkEditForm):
)
auth_psk = forms.CharField(
required=False,
label='Pre-shared key'
label=_('Pre-shared key')
)
description = forms.CharField(
max_length=200,
@@ -91,7 +92,7 @@ class WirelessLinkBulkEditForm(NetBoxModelBulkEditForm):
ssid = forms.CharField(
max_length=SSID_MAX_LENGTH,
required=False,
label='SSID'
label=_('SSID')
)
status = forms.ChoiceField(
choices=add_blank_choice(LinkStatusChoices),
@@ -111,7 +112,7 @@ class WirelessLinkBulkEditForm(NetBoxModelBulkEditForm):
)
auth_psk = forms.CharField(
required=False,
label='Pre-shared key'
label=_('Pre-shared key')
)
description = forms.CharField(
max_length=200,