mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
update locale files and TR translations.
This commit is contained in:
parent
31c86a6a7b
commit
7bb6bd310b
30 changed files with 10038 additions and 5130 deletions
|
@ -30,18 +30,18 @@ class AddNetPool(forms.Form):
|
|||
subnet = self.cleaned_data['subnet']
|
||||
have_symbol = re.match('^[0-9./]+$', subnet if subnet else ".")
|
||||
if not have_symbol:
|
||||
raise forms.ValidationError(_('The pool subnet must not contain any special characters'))
|
||||
raise forms.ValidationError(_('The IPv4 subnet must not contain any special characters'))
|
||||
elif len(subnet) > 20:
|
||||
raise forms.ValidationError(_('The pool subnet must not exceed 20 characters'))
|
||||
raise forms.ValidationError(_('The IPv4 subnet must not exceed 20 characters'))
|
||||
return subnet
|
||||
|
||||
def clean_subnet6(self):
|
||||
subnet = self.cleaned_data['subnet6']
|
||||
have_symbol = re.match('^[0-9a-fA-F:/]+$', subnet if subnet else ":")
|
||||
if not have_symbol:
|
||||
raise forms.ValidationError(_('The pool subnet must not contain any special characters'))
|
||||
raise forms.ValidationError(_('The IPv6 subnet must not contain any special characters'))
|
||||
elif len(subnet) > 42:
|
||||
raise forms.ValidationError(_('The pool subnet must not exceed 42 characters'))
|
||||
raise forms.ValidationError(_('The IPv6 subnet must not exceed 42 characters'))
|
||||
return subnet
|
||||
|
||||
def clean_bridge_name(self):
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group row bridge_name_form_group_dhcp">
|
||||
<label class="col-sm-4 col-form-label">{% trans "Fixed Address" %}</label>
|
||||
<label class="col-sm-4 col-form-label">{% trans "Fixed Addresses" %}</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="checkbox" name="fixed" value="true">
|
||||
</div>
|
||||
|
|
|
@ -149,7 +149,7 @@
|
|||
{% include 'modify_ipv4_fixed_address.html' %}
|
||||
{% endif %}
|
||||
|
||||
<h5 class="page-header">{% trans "IPv4 Fixed Address" %}</h5>
|
||||
<h5 class="page-header">{% trans "IPv4 Fixed Addresses" %}</h5>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
@ -261,7 +261,7 @@
|
|||
{% if state %}
|
||||
{% include 'modify_ipv6_fixed_address.html' %}
|
||||
{% endif %}
|
||||
<h5 class="page-header">{% trans "IPv6 Fixed Address" %}</h5>
|
||||
<h5 class="page-header">{% trans "IPv6 Fixed Addresses" %}</h5>
|
||||
{% endif %}
|
||||
|
||||
{% if ipv6_fixed_address %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue