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:
@ -1,5 +1,6 @@
|
||||
from django.db import models
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
from ipam.constants import *
|
||||
from netbox.models import PrimaryModel
|
||||
@ -26,7 +27,7 @@ class VRF(PrimaryModel):
|
||||
blank=True,
|
||||
null=True,
|
||||
verbose_name='Route distinguisher',
|
||||
help_text='Unique route distinguisher (as defined in RFC 4364)'
|
||||
help_text=_('Unique route distinguisher (as defined in RFC 4364)')
|
||||
)
|
||||
tenant = models.ForeignKey(
|
||||
to='tenancy.Tenant',
|
||||
@ -38,7 +39,7 @@ class VRF(PrimaryModel):
|
||||
enforce_unique = models.BooleanField(
|
||||
default=True,
|
||||
verbose_name='Enforce unique space',
|
||||
help_text='Prevent duplicate prefixes/IP addresses within this VRF'
|
||||
help_text=_('Prevent duplicate prefixes/IP addresses within this VRF')
|
||||
)
|
||||
import_targets = models.ManyToManyField(
|
||||
to='ipam.RouteTarget',
|
||||
@ -76,7 +77,7 @@ class RouteTarget(PrimaryModel):
|
||||
name = models.CharField(
|
||||
max_length=VRF_RD_MAX_LENGTH, # Same format options as VRF RD (RFC 4360 section 4)
|
||||
unique=True,
|
||||
help_text='Route target value (formatted in accordance with RFC 4360)'
|
||||
help_text=_('Route target value (formatted in accordance with RFC 4360)')
|
||||
)
|
||||
tenant = models.ForeignKey(
|
||||
to='tenancy.Tenant',
|
||||
|
Reference in New Issue
Block a user