Commit 46937b65 authored by Remi Oudin's avatar Remi Oudin

[Intranet/Traduction] Club est en anglais

parent f5d6d7a0
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-30 21:30+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: templates/club/imprimeur_add.html:3
msgid " Club - Ajout d'imprimeur "
msgstr "Club - Add a printer"
#: templates/club/imprimeur_add.html:4
msgid " Ajout d'imprimeur "
msgstr "Add a printer"
#: templates/club/imprimeur_add.html:16 templates/club/imprimeur_del.html:16
#: templates/club/responsable_edit.html:16
msgid "Retour"
msgstr "Return"
#: templates/club/imprimeur_add.html:17
msgid "Ajouter cet imprimeur"
msgstr "Add this printer"
#: templates/club/imprimeur_del.html:3
msgid " Club - Retrait d'imprimeur "
msgstr "Club - Withdrawal of a printer "
#: templates/club/imprimeur_del.html:4
msgid " Retrait d'imprimeur "
msgstr "Withdrawal of a printer"
#: templates/club/imprimeur_del.html:17
msgid "Retirer ces imprimeurs"
msgstr "Withdraw these printers"
#: templates/club/index.html:3 templates/club/index.html.py:4
msgid " Gestion des comptes "
msgstr "Management of the accounts"
#: templates/club/index.html:11
msgid "Liste des imprimeurs"
msgstr "List of the printers"
#: templates/club/index.html:16
msgid "Vous n'avez actuellement aucun imprimeurs pour ce club !"
msgstr "You currently have no printers for this club !"
#: templates/club/index.html:19
msgid "Responsable"
msgstr "Person in charge"
#: templates/club/index.html:28
msgid "Ajouter un imprimeur"
msgstr "Add a printer"
#: templates/club/index.html:36
msgid "Retirer un imprimeur"
msgstr "Withdraw a printer"
#: templates/club/index.html:45 templates/club/responsable_edit.html:17
msgid "Modifier le responsable"
msgstr "Modify the responsible"
#: templates/club/index.html:50
msgid "Vous n'êtes gestionnaire d'aucun club."
msgstr "You are not in charge of any club"
#: templates/club/responsable_edit.html:3
msgid " Club - Modification du responsable "
msgstr "Club - Change of the person in charge"
#: templates/club/responsable_edit.html:4
msgid " Modification du responsable "
msgstr "Change of the person in charge"
#: views.py:75
msgid "Vous n'avez pas le droit de modifier ce club !"
msgstr "You have no rights to modify this club"
#: views.py:91 views.py:144
msgid "Ce login n'est pas valide"
msgstr "This login is not valid"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-30 21:30+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: templates/club/imprimeur_add.html:3
msgid " Club - Ajout d'imprimeur "
msgstr ""
#: templates/club/imprimeur_add.html:4
msgid " Ajout d'imprimeur "
msgstr ""
#: templates/club/imprimeur_add.html:16 templates/club/imprimeur_del.html:16
#: templates/club/responsable_edit.html:16
msgid "Retour"
msgstr ""
#: templates/club/imprimeur_add.html:17
msgid "Ajouter cet imprimeur"
msgstr ""
#: templates/club/imprimeur_del.html:3
msgid " Club - Retrait d'imprimeur "
msgstr ""
#: templates/club/imprimeur_del.html:4
msgid " Retrait d'imprimeur "
msgstr ""
#: templates/club/imprimeur_del.html:17
msgid "Retirer ces imprimeurs"
msgstr ""
#: templates/club/index.html:3 templates/club/index.html.py:4
msgid " Gestion des comptes "
msgstr ""
#: templates/club/index.html:11
msgid "Liste des imprimeurs"
msgstr ""
#: templates/club/index.html:16
msgid "Vous n'avez actuellement aucun imprimeurs pour ce club !"
msgstr ""
#: templates/club/index.html:19
msgid "Responsable"
msgstr ""
#: templates/club/index.html:28
msgid "Ajouter un imprimeur"
msgstr ""
#: templates/club/index.html:36
msgid "Retirer un imprimeur"
msgstr ""
#: templates/club/index.html:45 templates/club/responsable_edit.html:17
msgid "Modifier le responsable"
msgstr ""
#: templates/club/index.html:50
msgid "Vous n'êtes gestionnaire d'aucun club."
msgstr ""
#: templates/club/responsable_edit.html:3
msgid " Club - Modification du responsable "
msgstr ""
#: templates/club/responsable_edit.html:4
msgid " Modification du responsable "
msgstr ""
#: views.py:75
msgid "Vous n'avez pas le droit de modifier ce club !"
msgstr ""
#: views.py:91 views.py:144
msgid "Ce login n'est pas valide"
msgstr ""
{% extends "template.html" %}
{% block title %} Club - Ajout d'imprimeur {% endblock %}
{% block h1 %} Ajout d'imprimeur {% endblock %}
{% load i18n %}
{% block title %}{% trans " Club - Ajout d'imprimeur " %}{% endblock %}
{% block h1 %}{% trans " Ajout d'imprimeur " %}{% endblock %}
{% block content %}
<div class="error-container">
{{ form.non_field_errors }}
......@@ -12,8 +13,8 @@
<div class="row">
<div class="six columns">
<a href="{% if not cablage %}{% url 'club:index' %}
{% else %} {% url 'club:index' cid %}{% endif %}" class="button-cancel">Retour</a>
<input class="button-add" type="submit" value="Ajouter cet imprimeur">
{% else %} {% url 'club:index' cid %}{% endif %}" class="button-cancel">{% trans "Retour" %}</a>
<input class="button-add" type="submit" value="{% trans "Ajouter cet imprimeur" %}">
</div>
</div>
</footer>
......
{% extends "template.html" %}
{% block title %} Club - Retrait d'imprimeur {% endblock %}
{% block h1 %} Retrait d'imprimeur {% endblock %}
{% load i18n %}
{% block title %}{% trans " Club - Retrait d'imprimeur " %}{% endblock %}
{% block h1 %}{% trans " Retrait d'imprimeur "%}{% endblock %}
{% block content %}
<div class="error-container">
{{ form.non_field_errors }}
......@@ -12,8 +13,8 @@
<div class="row">
<div class="six columns">
<a href="{% if not cablage %}{% url 'club:index' %}
{% else %} {% url 'club:index' cid %}{% endif %}" class="button-cancel">Retour</a>
<input class="button-del" type="submit" value="Retirer ces imprimeurs">
{% else %} {% url 'club:index' cid %}{% endif %}" class="button-cancel">{% trans "Retour" %}</a>
<input class="button-del" type="submit" value="{% trans "Retirer ces imprimeurs" %}">
</div>
</div>
</footer>
......
{% extends "template.html" %}
{% block title %} Gestion des comptes {% endblock %}
{% block h1 %} Gestion des comptes {% endblock %}
{% load i18n %}
{% block title %}{% trans " Gestion des comptes " %}{% endblock %}
{% block h1 %}{% trans " Gestion des comptes " %}{% endblock %}
{% block content %}
<div class="row">
{% for club in clubs %}
<div class="six columns">
<h2>{{ club.club_name }}</h2>
Liste des imprimeurs:
{% trans "Liste des imprimeurs"%}:
<ul>
{% for imprimeur in club.imprimeurs %}
<li>{{ imprimeur }}</li>
{% empty %}
<span class="bad-thing">Vous n'avez actuellement aucun imprimeurs pour ce club !</span>
<span class="bad-thing">{% trans "Vous n'avez actuellement aucun imprimeurs pour ce club !" %}</span>
{% endfor %}
</ul>
Responsable : {{club.responsable}}
{% trans "Responsable" %}: {{club.responsable}}
<footer>
<a href="
......@@ -24,7 +25,7 @@ Responsable : {{club.responsable}}
{% else %}
{% url 'club:imprimeur_add' cid=club.cid cablage='cablage'%}
{% endif %}
"><button class="button-add">Ajouter un imprimeur</button></a>
"><button class="button-add">{% trans "Ajouter un imprimeur" %}</button></a>
{% if club.imprimeurs %}
<a href="
{% if not cablage %}
......@@ -32,7 +33,7 @@ Responsable : {{club.responsable}}
{% else %}
{% url 'club:imprimeur_del' cid=club.cid cablage='cablage'%}
{% endif %}
"><button class="button-del">Retirer un imprimeur</button></a>
"><button class="button-del">{% trans "Retirer un imprimeur" %}</button></a>
{% endif %}
{% if perms.aut.crans_cableur %}
<a href="
......@@ -41,12 +42,12 @@ Responsable : {{club.responsable}}
{% else %}
{% url 'club:responsable_edit' cid=club.cid cablage='cablage'%}
{% endif %}
"><button class="button-add">Modifier le responsable</button></a>
"><button class="button-add">{% trans "Modifier le responsable" %}</button></a>
{% endif %}
</footer>
</div>
{% empty %}
Vous n'êtes gestionnaire d'aucun club.
{% trans "Vous n'êtes gestionnaire d'aucun club." %}
{% endfor %}
</div>
{% endblock %}
{% extends "template.html" %}
{% block title %} Club - Modification du responsable {% endblock %}
{% block h1 %} Modification du responsable {% endblock %}
{% load i18n %}
{% block title %}{% trans " Club - Modification du responsable " %}{% endblock %}
{% block h1 %}{% trans " Modification du responsable " %}{% endblock %}
{% block content %}
<div class="error-container">
{{ form.non_field_errors }}
......@@ -12,8 +13,8 @@
<div class="row">
<div class="six columns">
<a href="{% if not cablage %}{% url 'club:index' %}
{% else %} {% url 'club:index' cid %}{% endif %}" class="button-cancel">Retour</a>
<input class="button-add" type="submit" value="Modifier le responsable">
{% else %} {% url 'club:index' cid %}{% endif %}" class="button-cancel">{% trans "Retour" %}</a>
<input class="button-add" type="submit" value="{% trans "Modifier le responsable" %}">
</div>
</div>
</footer>
......
......@@ -7,6 +7,7 @@ from django.core.urlresolvers import reverse_lazy
from django.shortcuts import redirect
from django.forms.models import formset_factory
from django.contrib import messages
from django.utils.translation import ugettext_lazy as _
from forms import ImprimeurAddForm, ImprimeurDelForm, ResponsableEditForm
from tools import get_clubs_for_user, get_imprimeurs_for_club
......@@ -71,7 +72,7 @@ class EditClubView(FormView):
if int(club['cid'][0]) == self.cid:
break
else: # Ce else est pour le for et non pour le if
messages.error(self.request, "Vous n'avez pas le droit de modifier ce club !")
messages.error(self.request, _("Vous n'avez pas le droit de modifier ce club !"))
return redirect('club:index')
return super(EditClubView, self).dispatch(*args, **kwargs)
......@@ -87,7 +88,7 @@ class ImprimeurAddView(EditClubView):
try:
new_imprimeur_ldap = ldap_user.search(u'uid=%s' % new_imprimeur)[0]
except IndexError:
messages.error(self.request, "Ce login n'est pas valide")
messages.error(self.request, _("Ce login n'est pas valide"))
return redirect(self.request.path)
try:
club['imprimeurClub'].append(unicode(new_imprimeur_ldap['aid'][0]))
......@@ -140,7 +141,7 @@ class ResponsableEditView(EditClubView):
try:
new_responsable_ldap = ldap_user.search(u'uid=%s' % new_responsable)[0]
except IndexError:
messages.error(self.request, "Ce login n'est pas valide")
messages.error(self.request, _("Ce login n'est pas valide"))
return redirect(self.request.path)
try:
club['responsable'] = unicode(new_responsable_ldap['aid'][0])
......
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 to comment