Commit d092d85b by Kálmán Viktor

network: translation support

parent b19ab633
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h1>Create a blacklist</h1> <h1>{% trans "Create a blacklist" %}</h1>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-4"> <div class="col-sm-4">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.blacklist_delete pk=blacklist_pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> Delete this blaclist</a> <a href="{% url network.blacklist_delete pk=blacklist_pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> {% trans "Delete this blaclist" %}</a>
<h1>{{ form.ipv4.value }} <small>{{ form.type.value }}</small></h1> <h1>{{ form.ipv4.value }} <small>{{ form.type.value }}</small></h1>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.blacklist_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> Create a new blacklist</a> <a href="{% url network.blacklist_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> {% trans "Create a new blacklist" %}</a>
<h1>Blacklist <small></small></h1> <h1>{% trans "Blacklists" %} <small></small></h1>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h1>Create a new domain <small></small></h1> <h1>{% trans "Create a new domain" %}<small></small></h1>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.domain_delete pk=domain_pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> Delete this domain</a> <a href="{% url network.domain_delete pk=domain_pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i>{% trans "Delete this domain" %}</a>
<h1>{{ form.name.value }} <small></small></h1> <h1>{{ form.name.value }} <small></small></h1>
</div> </div>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</div> </div>
<div class="col-sm-5 col-sm-offset-1"> <div class="col-sm-5 col-sm-offset-1">
<h3> <h3>
List of this domain's records {% trans "List of this domain's records" %}
</h3> </h3>
<hr /> <hr />
<div class="table-responsive"> <div class="table-responsive">
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.domain_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> Create a new domain</a> <a href="{% url network.domain_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> {% trans "Create a new domain" %}</a>
<h1>Domains <small>list of all domains</small></h1> <h1>{% trans "Domains" %}</h1>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h1>Create a new host group</small></h1> <h1>{% trans "Create a new host group" %}</h1>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.group_delete pk=group.pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> Delete this group</a> <a href="{% url network.group_delete pk=group.pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> {% trans "Delete this group" %}</a>
<h1>{{ form.name.value }} <small>details of group</small></h1> <h1>{{ form.name.value }}</h1>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.group_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> Create a new host group</a> <a href="{% url network.group_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> {% trans "Create a new host group" %}</a>
<h1>Host groups <small>list of all host groups</small></h1> <h1>{% trans "Host groups" %}</h1>
</div> </div>
{% render_table table %} {% render_table table %}
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h2>Create a new host</h2> <h2>{% trans "Create a new host" %}</h2>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.host_delete pk=host_pk%}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> Delete this host</a> <a href="{% url network.host_delete pk=host_pk%}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> {% trans "Delete this host" %}</a>
<h1>{{ form.hostname.value }} <small>details of host</small></h1> <h1>{{ form.hostname.value }}</h1>
</div> </div>
<div class="row"> <div class="row">
...@@ -17,16 +17,16 @@ ...@@ -17,16 +17,16 @@
</div> </div>
<div class="col-sm-4"> <div class="col-sm-4">
<div class="page-header"> <div class="page-header">
<h3>Rules</h3> <h3>{% trans "Rules" %}</h3>
</div> </div>
{% if rule_list.data.data.count > 0 %} {% if rule_list.data.data.count > 0 %}
{% render_table rule_list %} {% render_table rule_list %}
{% else %} {% else %}
No rules associated with this host! {% trans "No rules associated with this host!" %}
{% endif %} {% endif %}
<div class="page-header"> <div class="page-header">
<h3>Groups</h3> <h3>{% trans "Groups" %}</h3>
</div> </div>
{% for group in group_rule_list %} {% for group in group_rule_list %}
<div> <div>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
{% endfor %} {% endfor %}
</select> </select>
<div class="input-group-btn"> <div class="input-group-btn">
<input type="submit" value="Add group" class="btn btn-default"></input> <input type="submit" value="{% trans "Add group" %}" class="btn btn-default"></input>
</div> </div>
</div><!-- input-group --> </div><!-- input-group -->
</form> </form>
......
...@@ -6,18 +6,18 @@ ...@@ -6,18 +6,18 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.host_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> Create a new host</a> <a href="{% url network.host_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> {% trans "Create a new host" %}</a>
<h1> <h1>
Hosts {% trans "Hosts" %}
<small> <small>
list of all hosts {% trans "list of all hosts" %}
</small> </small>
</h1> </h1>
</div> </div>
<ul class="nav nav-pills" style="margin: 5px 0 20px 0;"> <ul class="nav nav-pills" style="margin: 5px 0 20px 0;">
<li class="disabled"><a href="#">Filter by vlans</a></li> <li class="disabled"><a href="#">{% trans "Filter by vlans" %}</a></li>
<li {% if not request.GET.vlan %} class="active"{% endif %}><a href="{{ request.path }}">ALL</a></li> <li {% if not request.GET.vlan %} class="active"{% endif %}><a href="{{ request.path }}">{% trans "ALL" %}</a></li>
{% for vlan in vlans %} {% for vlan in vlans %}
<li{% if request.GET.vlan|add:"0" == vlan.id %} class="active"{% endif %}><a href="?vlan={{ vlan.id }}">{{ vlan.name }}</a></li> <li{% if request.GET.vlan|add:"0" == vlan.id %} class="active"{% endif %}><a href="?vlan={{ vlan.id }}">{{ vlan.name }}</a></li>
{% endfor %} {% endfor %}
......
...@@ -6,19 +6,19 @@ ...@@ -6,19 +6,19 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h1>Latest modifications</h1> <h1>{% trans "Latest modifications" %}</h1>
</div> </div>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<tr> <tr>
<th>Action</th> <th>{% trans "Action" %}</th>
<th>Model</th> <th>{% trans "Model" %}</th>
<th>Name</th> <th>{% trans "Name" %}</th>
<th>Time elapsed</th> <th>{% trans "Time elapsed" %}</th>
</tr> </tr>
{% for l in latest %} {% for l in latest %}
<tr> <tr>
<td>{% if l.modified_at == l.created_at %}created{% else %}modified{% endif %}</td> <td>{% if l.modified_at == l.created_at %}{% trans "created" %}{% else %}{% trans "modified" %}{% endif %}</td>
<td>{{ l.class_name }}</td> <td>{{ l.class_name }}</td>
<td><a href="{{ l.link }}">{{ l.name }}</a></td> <td><a href="{{ l.link }}">{{ l.name }}</a></td>
<td>{{ l.modified_at|timesince }}</td> <td>{{ l.modified_at|timesince }}</td>
...@@ -28,15 +28,15 @@ ...@@ -28,15 +28,15 @@
<div class="page-header"> <div class="page-header">
<h1>Latest blacklists</h1> <h1>{% trans "Latest blacklists" %}</h1>
</div> </div>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
<tr> <tr>
<th>IP</th> <th>{% trans "IP" %}</th>
<th>Reason</th> <th>{% trans "Reason" %}</th>
<th>Type</th> <th>{% trans "Type" %}</th>
<th>Time elapsed</th> <th>{% trans "Time elapsed" %}</th>
</tr> </tr>
{% for b in latest_blacklists %} {% for b in latest_blacklists %}
<tr> <tr>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</table> </table>
<div class="page-header"> <div class="page-header">
<h1>Dashboard <small>foo bar baz</small></h1> <h1>{% trans "Dashboard" %}</h1>
</div> </div>
<ul class="thumbnails"> <ul class="thumbnails">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h2>Create a new record</h2> <h2>{% trans "Create a new record" %}</h2>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.record_delete pk=record_pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> Delete this record</a> <a href="{% url network.record_delete pk=record_pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> {% trans "Delete this record" %}</a>
<h1>{{ fqdn }} <small>details of record</small></h1> <h1>{{ fqdn }}</h1>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.record_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> Create a new record</a> <a href="{% url network.record_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> {% trans "Create a new record" %}</a>
<h1> <h1>
Records {% trans "Records" %}
<small> <small>
list of all records {% trans "list of all records" %}
</small> </small>
</h1> </h1>
</div> </div>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h3>Create a new rule</h3> <h3>{% trans "Create a new rule" %}</h3>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.rule_delete pk=rule.pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> Delete this rule</a> <a href="{% url network.rule_delete pk=rule.pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> {% trans "Delete this rule" %}</a>
<h3> <h3>
{% with rule as record %} {% with rule as record %}
{% include "network/columns/host-rule.html" %} {% include "network/columns/host-rule.html" %}
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.rule_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> Create a new rule</a> <a href="{% url network.rule_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> {% trans "Create a new rule" %}</a>
<h1>Rules <small>list of all rules</small></h1> <h1>{% trans "Rules" %} <small>{% trans "list of all rules" %}</small></h1>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h1>Create a new Vlan</h1> <h1>{% trans "Create a new Vlan" %}</h1>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.vlan_delete vid=vlan_vid %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> Delete this vlan</a> <a href="{% url network.vlan_delete vid=vlan_vid %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> {% trans "Delete this vlan" %}</a>
<h1>{{ form.name.value }} <small>details of vlan</small></h1> <h1>{{ form.name.value }} <small>{% trans "details of vlan" %}</small></h1>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h1>Create a new vlan group</h1> <h1>{% trans "Create a new vlan group" %}</h1>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.vlan_group_delete pk=vlangroup_pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> Delete this group</a> <a href="{% url network.vlan_group_delete pk=vlangroup_pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> {% trans "Delete this group" %}</a>
<h1>{{ form.name.value }} <small>details of vlan group</small></h1> <h1>{{ form.name.value }}</h1>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.vlan_group_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> Create a new vlan group</a> <a href="{% url network.vlan_group_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> {% trans "Create a new vlan group" %}</a>
<h1>Vlan groups <small>list of all vlan groups</small></h1> <h1>{% trans "Vlan groups" %}</h1>
</div> </div>
{% render_table table %} {% render_table table %}
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<a href="{% url network.vlan_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> Create a new vlan</a> <a href="{% url network.vlan_create %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> {% trans "Create a new vlan" %}</a>
<h1>Vlans <small>list of all vlans</small></h1> <h1>Vlans <small>{% trans "list of all vlans" %}</small></h1>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
......
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