This commit is contained in:
Evarin 2020-03-29 16:11:02 +02:00
parent 2ad400c5e7
commit 9dabab51db
8 changed files with 148 additions and 26 deletions

Binary file not shown.

View file

@ -0,0 +1,117 @@
# 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.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-03-29 16:04+0200\n"
"PO-Revision-Date: 2020-03-29 16:08+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\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"
"X-Generator: Poedit 1.8.7.1\n"
#: templates/cofcms/base.html:7
msgid "Association des élèves de l'ENS Ulm"
msgstr "Student Association of the École Normale Supérieure"
#: templates/cofcms/calendar.html:9
msgid "<th>L</th><th>M</th><th>M</th><th>J</th><th>V</th><th>S</th><th>D</th>"
msgstr ""
"<th>M</th><th>Tu</th><th>W</th><th>Th</th><th>F</th><th>Sa</th><th>Su</th>"
#: templates/cofcms/calendar.html:17
msgid "Le "
msgstr "On "
#: templates/cofcms/cof_actu_index_page.html:10
msgid "Calendrier"
msgstr "Calendar"
#: templates/cofcms/cof_actu_index_page.html:25
#: templates/cofcms/cof_actu_index_page.html:47
msgid "Actualités plus récentes"
msgstr "Newer"
#: templates/cofcms/cof_actu_index_page.html:28
#: templates/cofcms/cof_actu_index_page.html:50
msgid "Actualités plus anciennes"
msgstr "Older"
#: templates/cofcms/cof_actu_index_page.html:41
msgid "Lire plus"
msgstr "Read more"
#: templates/cofcms/cof_actu_page.html:7
msgid "A lieu"
msgstr "Happens"
#: templates/cofcms/cof_directory_page.html:9
msgid "Accès rapide"
msgstr "Quick access"
#: templates/cofcms/cof_directory_page.html:39
msgid "Afficher l'adresse mail"
msgstr "Show mail address"
#: templates/cofcms/cof_root_page.html:11
msgid "Agenda"
msgstr "Agenda"
#: templates/cofcms/sympa.html:6
msgid "Listes mail"
msgstr "Mailing lists"
#: templates/cofcms/sympa.html:11
msgid ""
"\n"
" Tous les abonnements aux listes de diffusion de mail à l'ENS "
"se gèrent sur le serveur de mail SYMPA\n"
"\n"
" Pour y accéder : Merci de répondre à cette question anti-"
"robots.\n"
" "
msgstr ""
"\n"
" All the mailing list subscriptions can be managed through "
"the SYMPA mail server\n"
"\n"
" In order to access it, please answer this antispam "
"question.\n"
" "
#: templates/cofcms/sympa.html:21
msgid "Comment s'appellent les poissons du bassin ?"
msgstr "How are called the fish in the school's pond?"
#: templatetags/cofcms_tags.py:134 templatetags/cofcms_tags.py:162
#, python-brace-format
msgid "le {datestart}"
msgstr "on {datestart}"
#: templatetags/cofcms_tags.py:136
#, python-brace-format
msgid "le {datestart} de {timestart} à {timeend}"
msgstr "on {datestart} from {timestart} to {timeend}"
#: templatetags/cofcms_tags.py:147
#, python-brace-format
msgid "du {datestart} au {dateend}{common}"
msgstr "from {datestart} to {dateend}{common}"
#: templatetags/cofcms_tags.py:153
#, python-brace-format
msgid "du {datestart}{common} à {timestart} au {dateend} à {timeend}"
msgstr "from {datestart}{common} {timestart} to {dateend} {timeend}"
#: templatetags/cofcms_tags.py:164
#, python-brace-format
msgid "le {datestart} à {timestart}"
msgstr "on {datestart} at {timestart}"

View file

@ -4,7 +4,7 @@
<html>
<head>
<meta charset="utf-8">
<title>{% block title %}Association des élèves de l'ENS Ulm{% endblock %}</title>
<title>{% block title %}{% trans "Association des élèves de l'ENS Ulm" %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% static "fonts/CarterOne/carterOne.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "fonts/SourceSansPro/sourceSansPro.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "cofcms/css/screen.css" %}"/>

View file

@ -7,7 +7,7 @@
<script src="{% static "cofcms/js/calendar.js" %}"></script>
{% endblock %}
{% block aside_title %}Calendrier{% endblock %}
{% block aside_title %}{% trans "Calendrier" %}{% endblock %}
{% block aside %}
<div id="calendar-wrap">
{% calendar %}
@ -22,10 +22,10 @@
<section class="actulist">
{% if actus.has_previous %}
<a class="block prev-actus" href="?page={{ actus.previous_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&amp;{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">Actualités plus récentes</a>
<a class="block prev-actus" href="?page={{ actus.previous_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&amp;{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus récentes" %}</a>
{% endif %}
{% if actus.has_next %}
<a class="block next-actus" href="?page={{ actus.next_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&amp;{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">Actualités plus anciennes</a>
<a class="block next-actus" href="?page={{ actus.next_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&amp;{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus anciennes" %}</a>
{% endif %}
{% for actu in page.actus %}
@ -38,16 +38,16 @@
{% else %}
{{ actu.body|safe|truncatewords_html:15 }}
{% endif %}
<a href="{% pageurl actu %}">Lire plus &gt;</a>
<a href="{% pageurl actu %}">{% trans "Lire plus" %} &gt;</a>
</div>
</article>
{% endfor %}
{% if actus.has_previous %}
<a class="block prev-actus" href="?page={{ actus.previous_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&amp;{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">Actualités plus récentes</a>
<a class="block prev-actus" href="?page={{ actus.previous_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&amp;{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus récentes" %}</a>
{% endif %}
{% if actus.has_next %}
<a class="block next-actus" href="?page={{ actus.next_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&amp;{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">Actualités plus anciennes</a>
<a class="block next-actus" href="?page={{ actus.next_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&amp;{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus anciennes" %}</a>
{% endif %}
</section>
{% endblock %}

View file

@ -4,7 +4,7 @@
{% block content %}
<section class="intro">
<h1>{{ page.title }}</h1>
<p class="date">A lieu {{ page|dates }}</p>
<p class="date">{% trans "A lieu" %} {{ page|dates }}</p>
<p>{{ page.chapo }}</p>
</section>

View file

@ -1,12 +1,12 @@
{% extends "cofcms/base_aside.html" %}
{% load wagtailimages_tags cofcms_tags static %}
{% load wagtailimages_tags cofcms_tags static i18n %}
{% block extra_head %}
{{ block.super }}
<script src="{% static "vendor/jquery/jquery-3.3.1.min.js" %}"></script>
<script src="{% static "cofcms/js/script.js" %}"></script>
{% endblock %}
{% block aside_title %}Accès rapide{% endblock %}
{% block aside_title %}{% trans "Accès rapide" %}{% endblock %}
{% block aside %}
<ul class="directory">
{% for entry in page.entries %}
@ -36,7 +36,7 @@
{% if block.block_type == "lien" %}
<a href="{{ block.value.url }}">{{ block.value.texte }}</a>
{% else %}
{{ block.value.texte }} : <button data-mref="{{ block.value.email|obfuscate_mail }}" class="facteur">Afficher l'adresse mail</a>
{{ block.value.texte }} : <button data-mref="{{ block.value.email|obfuscate_mail }}" class="facteur">{% trans "Afficher l'adresse mail" %}</a>
{% endif %}
</li>
{% endfor %}

View file

@ -8,7 +8,7 @@
<script src="{% static "cofcms/js/calendar.js" %}"></script>
{% endblock %}
{% block aside_title %}Agenda{% endblock %}
{% block aside_title %}{% trans "Agenda" %}{% endblock %}
{% block aside %}
<div id="calendar-wrap">
{% calendar %}

View file

@ -131,12 +131,12 @@ def dates(event):
if event.date_end:
if event.date_end.date() == event.date_start.date():
if event.all_day:
return _("le %s") % datestart_string
return _("le {datestart}").format(datestart=datestart_string)
else:
return _("le %s de %s à %s") % (
datestart_string,
timestart_string,
formats.time_format(event.date_end),
return _("le {datestart} de {timestart} à {timeend}").format(
datestart=datestart_string,
timestart=timestart_string,
timeend=formats.time_format(event.date_end),
)
else:
dateend_string = formats.date_format(event.date_end)
@ -144,18 +144,23 @@ def dates(event):
datestart_string, dateend_string
)
if event.all_day:
return _("du %s au %s%s") % (diffstart, diffend, common)
return _("du {datestart} au {dateend}{common}").format(
datestart=diffstart,
dateend=diffend,
common=common)
else:
return _("du %s%s à %s au %s à %s") % (
diffstart,
common,
timestart_string,
diffend,
formats.time_format(event.date_end),
return _("du {datestart}{common} à {timestart} au {dateend} à {timeend}").format(
datestart=diffstart,
common=common,
timestart=timestart_string,
dateend=diffend,
timeend=formats.time_format(event.date_end),
)
else:
if event.all_day:
return _("le %s") % datestart_string
return _("le {datestart}").format(datestart=datestart_string)
else:
return _("le %s à %s") % (datestart_string, timestart_string)
return _("le {datestart} à {timestart}").format(
datestart=datestart_string,
timestart=timestart_string)