Commit 84425206 by Kálmán Viktor

network: translation support fixes

parent 154f8fdb
...@@ -2,26 +2,34 @@ ...@@ -2,26 +2,34 @@
{% load l10n %} {% load l10n %}
{% url network.host_list as u %} {% url network.host_list as u %}
{% include "network/menu-item.html" with href=u text="Hosts" %} {% trans "Hosts" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.vlan_list as u %} {% url network.vlan_list as u %}
{% include "network/menu-item.html" with href=u text="Vlans" %} {% trans "Vlans" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.domain_list as u %} {% url network.domain_list as u %}
{% include "network/menu-item.html" with href=u text="Domains" %} {% trans "Domains" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.record_list as u %} {% url network.record_list as u %}
{% include "network/menu-item.html" with href=u text="Records" %} {% trans "Records" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.blacklist_list as u %} {% url network.blacklist_list as u %}
{% include "network/menu-item.html" with href=u text="Blacklists" %} {% trans "Blacklists" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.rule_list as u %} {% url network.rule_list as u %}
{% include "network/menu-item.html" with href=u text="Rules" %} {% trans "Rules" as t %}
{% include "network/menu-item.html" with href=u text=t %}
<li class="dropdown{% if "groups" in request.path %} active{% endif %}"> <li class="dropdown{% if "groups" in request.path %} active{% endif %}">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Groups <b class="caret"></b></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Groups <b class="caret"></b></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
{% url network.vlan_group_list as u %} {% url network.vlan_group_list as u %}
{% include "network/menu-item.html" with href=u text="Vlan groups" %} {% trans "Vlan groups" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.group_list as u %} {% url network.group_list as u %}
{% include "network/menu-item.html" with href=u text="Host groups" %} {% trans "Host groups" as t %}
{% include "network/menu-item.html" with href=u text=t %}
</ul> </ul>
</li> </li>
......
...@@ -308,7 +308,7 @@ class HostDelete(DeleteView): ...@@ -308,7 +308,7 @@ class HostDelete(DeleteView):
return self.get(request, *args, **kwargs) return self.get(request, *args, **kwargs)
response = super(HostDelete, self).delete(request, *args, **kwargs) response = super(HostDelete, self).delete(request, *args, **kwargs)
messages.success(request, "Deletion successful!") messages.success(request, _("Host successfully deleted!"))
return response return response
...@@ -448,7 +448,7 @@ class VlanDelete(DeleteView): ...@@ -448,7 +448,7 @@ class VlanDelete(DeleteView):
return self.get(request, *args, **kwargs) return self.get(request, *args, **kwargs)
response = super(VlanDelete, self).delete(request, *args, **kwargs) response = super(VlanDelete, self).delete(request, *args, **kwargs)
messages.success(request, "Deletion successful!") messages.success(request, _("Vlan successfully deleted!"))
return response return response
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment