8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

add translations for search/

This commit is contained in:
Laouen Fernet 2019-01-09 00:40:19 +01:00
parent 3f601d74d1
commit cd2e39c480
5 changed files with 40 additions and 36 deletions

View file

@ -33,7 +33,7 @@ CHOICES_USER = (
('0', _("Active")), ('0', _("Active")),
('1', _("Disabled")), ('1', _("Disabled")),
('2', _("Archived")), ('2', _("Archived")),
('3', _("Not Yet Active")), ('3', _("Not yet active")),
) )
CHOICES_AFF = ( CHOICES_AFF = (

View file

@ -21,7 +21,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.5\n" "Project-Id-Version: 2.5\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-08-15 18:15+0200\n" "POT-Creation-Date: 2019-01-08 23:56+0100\n"
"PO-Revision-Date: 2018-06-24 20:10+0200\n" "PO-Revision-Date: 2018-06-24 20:10+0200\n"
"Last-Translator: Laouen Fernet <laouen.fernet@supelec.fr>\n" "Last-Translator: Laouen Fernet <laouen.fernet@supelec.fr>\n"
"Language-Team: \n" "Language-Team: \n"
@ -42,44 +42,48 @@ msgstr "Désactivés"
msgid "Archived" msgid "Archived"
msgstr "Archivés" msgstr "Archivés"
#: forms.py:39 #: forms.py:36
msgid "Not yet active"
msgstr "Pas encore adhéré"
#: forms.py:40
msgid "Users" msgid "Users"
msgstr "Utilisateurs" msgstr "Utilisateurs"
#: forms.py:40 #: forms.py:41
msgid "Machines" msgid "Machines"
msgstr "Machines" msgstr "Machines"
#: forms.py:41 #: forms.py:42
msgid "Invoices" msgid "Invoices"
msgstr "Factures" msgstr "Factures"
#: forms.py:42 #: forms.py:43
msgid "Bans" msgid "Bans"
msgstr "Bannissements" msgstr "Bannissements"
#: forms.py:43 #: forms.py:44
msgid "Whitelists" msgid "Whitelists"
msgstr "Accès gracieux" msgstr "Accès gracieux"
#: forms.py:44 #: forms.py:45
msgid "Rooms" msgid "Rooms"
msgstr "Chambres" msgstr "Chambres"
#: forms.py:45 #: forms.py:46
msgid "Ports" msgid "Ports"
msgstr "Ports" msgstr "Ports"
#: forms.py:46 #: forms.py:47
msgid "Switches" msgid "Switches"
msgstr "Commutateurs réseau" msgstr "Commutateurs réseau"
#: forms.py:59 forms.py:71 templates/search/search.html:29 #: forms.py:60 forms.py:72 templates/search/search.html:29
#: templates/search/search.html:48 #: templates/search/search.html:48
msgid "Search" msgid "Search"
msgstr "Rechercher" msgstr "Rechercher"
#: forms.py:61 forms.py:73 #: forms.py:62 forms.py:74
msgid "" msgid ""
"Use « » and «,» to specify distinct words, «\"query\"» for an exact search " "Use « » and «,» to specify distinct words, «\"query\"» for an exact search "
"and «\\» to escape a character." "and «\\» to escape a character."
@ -87,19 +91,19 @@ msgstr ""
"Utilisez « » et «,» pour spécifier différents mots, «\"query\"» pour une " "Utilisez « » et «,» pour spécifier différents mots, «\"query\"» pour une "
"recherche exacte et «\\» pour échapper un caractère." "recherche exacte et «\\» pour échapper un caractère."
#: forms.py:80 #: forms.py:81
msgid "Users filter" msgid "Users filter"
msgstr "Filtre utilisateurs" msgstr "Filtre utilisateurs"
#: forms.py:87 #: forms.py:88
msgid "Display filter" msgid "Display filter"
msgstr "Filtre affichage" msgstr "Filtre affichage"
#: forms.py:95 #: forms.py:96
msgid "Start date" msgid "Start date"
msgstr "Date de début" msgstr "Date de début"
#: forms.py:99 #: forms.py:100
msgid "End date" msgid "End date"
msgstr "Date de fin" msgstr "Date de fin"
@ -136,11 +140,11 @@ msgid "Results among rooms:"
msgstr "Résultats parmi les chambres :" msgstr "Résultats parmi les chambres :"
#: templates/search/index.html:61 #: templates/search/index.html:61
msgid "Results among ports" msgid "Results among ports:"
msgstr "Résultats parmi les ports :" msgstr "Résultats parmi les ports :"
#: templates/search/index.html:65 #: templates/search/index.html:65
msgid "Results among switches" msgid "Results among switches:"
msgstr "Résultats parmi les commutateurs réseau :" msgstr "Résultats parmi les commutateurs réseau :"
#: templates/search/index.html:69 #: templates/search/index.html:69

View file

@ -1,4 +1,4 @@
{% extends "search/sidebar.html" %} {% extends 'search/sidebar.html' %}
{% comment %} {% comment %}
Re2o est un logiciel d'administration développé initiallement au rezometz. Il Re2o est un logiciel d'administration développé initiallement au rezometz. Il
se veut agnostique au réseau considéré, de manière à être installable en se veut agnostique au réseau considéré, de manière à être installable en
@ -31,39 +31,39 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block content %} {% block content %}
{% if users %} {% if users %}
<h2>{% trans "Results among users:" %}</h2> <h2>{% trans "Results among users:" %}</h2>
{% include "users/aff_users.html" with users_list=users %} {% include 'users/aff_users.html' with users_list=users %}
{% endif%} {% endif%}
{% if clubs %} {% if clubs %}
<h2>{% trans "Results among clubs:" %}</h2> <h2>{% trans "Results among clubs:" %}</h2>
{% include "users/aff_clubs.html" with clubs_list=clubs %} {% include 'users/aff_clubs.html' with clubs_list=clubs %}
{% endif%} {% endif%}
{% if machines %} {% if machines %}
<h2>{% trans "Results among machines:" %}</h2> <h2>{% trans "Results among machines:" %}</h2>
{% include "machines/aff_machines.html" with machines_list=machines %} {% include 'machines/aff_machines.html' with machines_list=machines %}
{% endif %} {% endif %}
{% if factures %} {% if factures %}
<h2>{% trans "Results among invoices:" %}</h2> <h2>{% trans "Results among invoices:" %}</h2>
{% include "cotisations/aff_cotisations.html" with facture_list=factures %} {% include 'cotisations/aff_cotisations.html' with facture_list=factures %}
{% endif %} {% endif %}
{% if whitelists %} {% if whitelists %}
<h2>{% trans "Results among whitelists:" %}</h2> <h2>{% trans "Results among whitelists:" %}</h2>
{% include "users/aff_whitelists.html" with white_list=whitelists %} {% include 'users/aff_whitelists.html' with white_list=whitelists %}
{% endif %} {% endif %}
{% if bans %} {% if bans %}
<h2>{% trans "Results among bans:" %}</h2> <h2>{% trans "Results among bans:" %}</h2>
{% include "users/aff_bans.html" with ban_list=bans %} {% include 'users/aff_bans.html' with ban_list=bans %}
{% endif %} {% endif %}
{% if rooms %} {% if rooms %}
<h2>{% trans "Results among rooms:" %}</h2> <h2>{% trans "Results among rooms:" %}</h2>
{% include "topologie/aff_chambres.html" with room_list=rooms %} {% include 'topologie/aff_chambres.html' with room_list=rooms %}
{% endif %} {% endif %}
{% if ports %} {% if ports %}
<h2>{% trans "Results among ports" %}</h2> <h2>{% trans "Results among ports:" %}</h2>
{% include "topologie/aff_port.html" with port_list=ports search=True %} {% include 'topologie/aff_port.html' with port_list=ports search=True %}
{% endif %} {% endif %}
{% if switches %} {% if switches %}
<h2>{% trans "Results among switches" %}</h2> <h2>{% trans "Results among switches:" %}</h2>
{% include "topologie/aff_switch.html" with switch_list=switches %} {% include 'topologie/aff_switch.html' with switch_list=switches %}
{% endif %} {% endif %}
{% if not users and not machines and not factures and not whitelists and not bans and not rooms and not ports and not switches %} {% if not users and not machines and not factures and not whitelists and not bans and not rooms and not ports and not switches %}
<h3>{% trans "No result" %}</h3> <h3>{% trans "No result" %}</h3>

View file

@ -1,4 +1,4 @@
{% extends "search/sidebar.html" %} {% extends 'search/sidebar.html' %}
{% comment %} {% comment %}
Re2o est un logiciel d'administration développé initiallement au rezometz. Il Re2o est un logiciel d'administration développé initiallement au rezometz. Il
se veut agnostique au réseau considéré, de manière à être installable en se veut agnostique au réseau considéré, de manière à être installable en
@ -34,10 +34,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<form class="form"> <form class="form">
{% bootstrap_field search_form.q %} {% bootstrap_field search_form.q %}
{% if search_form.u %} {% if search_form.u %}
{% include "buttons/multiple_checkbox_alt.html" with field=search_form.u %} {% include 'buttons/multiple_checkbox_alt.html' with field=search_form.u %}
{% endif %} {% endif %}
{% if search_form.a %} {% if search_form.a %}
{% include "buttons/multiple_checkbox_alt.html" with field=search_form.a %} {% include 'buttons/multiple_checkbox_alt.html' with field=search_form.a %}
{% endif %} {% endif %}
{% if search_form.s %} {% if search_form.s %}
{% bootstrap_field search_form.s %} {% bootstrap_field search_form.s %}

View file

@ -1,4 +1,4 @@
{% extends "base.html" %} {% extends 'base.html' %}
{% comment %} {% comment %}
Re2o est un logiciel d'administration développé initiallement au rezometz. Il Re2o est un logiciel d'administration développé initiallement au rezometz. Il
se veut agnostique au réseau considéré, de manière à être installable en se veut agnostique au réseau considéré, de manière à être installable en
@ -26,11 +26,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load i18n %} {% load i18n %}
{% block sidebar %} {% block sidebar %}
<a class="list-group-item list-group-item-warning" href="{% url "search:search" %}"> <a class="list-group-item list-group-item-warning" href="{% url 'search:search' %}">
<i class="fa fa-search"></i> <i class="fa fa-search"></i>
{% trans "Simple search" %} {% trans "Simple search" %}
</a> </a>
<a class="list-group-item list-group-item-warning" href="{% url "search:searchp" %}"> <a class="list-group-item list-group-item-warning" href="{% url 'search:searchp' %}">
<i class="fa fa-search-plus"></i> <i class="fa fa-search-plus"></i>
{% trans "Advanced search" %} {% trans "Advanced search" %}
</a> </a>