forked from DGNum/gestioCOF
I18n
This commit is contained in:
parent
2ad400c5e7
commit
9dabab51db
8 changed files with 148 additions and 26 deletions
BIN
gestioncof/cms/locale/en/LC_MESSAGES/django.mo
Normal file
BIN
gestioncof/cms/locale/en/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
117
gestioncof/cms/locale/en/LC_MESSAGES/django.po
Normal file
117
gestioncof/cms/locale/en/LC_MESSAGES/django.po
Normal 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}"
|
|
@ -4,7 +4,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<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/CarterOne/carterOne.css" %}"/>
|
||||||
<link rel="stylesheet" type="text/css" href="{% static "fonts/SourceSansPro/sourceSansPro.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" %}"/>
|
<link rel="stylesheet" type="text/css" href="{% static "cofcms/css/screen.css" %}"/>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<script src="{% static "cofcms/js/calendar.js" %}"></script>
|
<script src="{% static "cofcms/js/calendar.js" %}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block aside_title %}Calendrier{% endblock %}
|
{% block aside_title %}{% trans "Calendrier" %}{% endblock %}
|
||||||
{% block aside %}
|
{% block aside %}
|
||||||
<div id="calendar-wrap">
|
<div id="calendar-wrap">
|
||||||
{% calendar %}
|
{% calendar %}
|
||||||
|
@ -22,10 +22,10 @@
|
||||||
|
|
||||||
<section class="actulist">
|
<section class="actulist">
|
||||||
{% if actus.has_previous %}
|
{% 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' %}&{{ 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' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus récentes" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if actus.has_next %}
|
{% 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' %}&{{ 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' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus anciennes" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for actu in page.actus %}
|
{% for actu in page.actus %}
|
||||||
|
@ -38,16 +38,16 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ actu.body|safe|truncatewords_html:15 }}
|
{{ actu.body|safe|truncatewords_html:15 }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% pageurl actu %}">Lire plus ></a>
|
<a href="{% pageurl actu %}">{% trans "Lire plus" %} ></a>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if actus.has_previous %}
|
{% 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' %}&{{ 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' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus récentes" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if actus.has_next %}
|
{% 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' %}&{{ 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' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus anciennes" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section class="intro">
|
<section class="intro">
|
||||||
<h1>{{ page.title }}</h1>
|
<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>
|
<p>{{ page.chapo }}</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{% extends "cofcms/base_aside.html" %}
|
{% extends "cofcms/base_aside.html" %}
|
||||||
{% load wagtailimages_tags cofcms_tags static %}
|
{% load wagtailimages_tags cofcms_tags static i18n %}
|
||||||
|
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
<script src="{% static "vendor/jquery/jquery-3.3.1.min.js" %}"></script>
|
<script src="{% static "vendor/jquery/jquery-3.3.1.min.js" %}"></script>
|
||||||
<script src="{% static "cofcms/js/script.js" %}"></script>
|
<script src="{% static "cofcms/js/script.js" %}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block aside_title %}Accès rapide{% endblock %}
|
{% block aside_title %}{% trans "Accès rapide" %}{% endblock %}
|
||||||
{% block aside %}
|
{% block aside %}
|
||||||
<ul class="directory">
|
<ul class="directory">
|
||||||
{% for entry in page.entries %}
|
{% for entry in page.entries %}
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
{% if block.block_type == "lien" %}
|
{% if block.block_type == "lien" %}
|
||||||
<a href="{{ block.value.url }}">{{ block.value.texte }}</a>
|
<a href="{{ block.value.url }}">{{ block.value.texte }}</a>
|
||||||
{% else %}
|
{% 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 %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<script src="{% static "cofcms/js/calendar.js" %}"></script>
|
<script src="{% static "cofcms/js/calendar.js" %}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block aside_title %}Agenda{% endblock %}
|
{% block aside_title %}{% trans "Agenda" %}{% endblock %}
|
||||||
{% block aside %}
|
{% block aside %}
|
||||||
<div id="calendar-wrap">
|
<div id="calendar-wrap">
|
||||||
{% calendar %}
|
{% calendar %}
|
||||||
|
|
|
@ -131,12 +131,12 @@ def dates(event):
|
||||||
if event.date_end:
|
if event.date_end:
|
||||||
if event.date_end.date() == event.date_start.date():
|
if event.date_end.date() == event.date_start.date():
|
||||||
if event.all_day:
|
if event.all_day:
|
||||||
return _("le %s") % datestart_string
|
return _("le {datestart}").format(datestart=datestart_string)
|
||||||
else:
|
else:
|
||||||
return _("le %s de %s à %s") % (
|
return _("le {datestart} de {timestart} à {timeend}").format(
|
||||||
datestart_string,
|
datestart=datestart_string,
|
||||||
timestart_string,
|
timestart=timestart_string,
|
||||||
formats.time_format(event.date_end),
|
timeend=formats.time_format(event.date_end),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
dateend_string = formats.date_format(event.date_end)
|
dateend_string = formats.date_format(event.date_end)
|
||||||
|
@ -144,18 +144,23 @@ def dates(event):
|
||||||
datestart_string, dateend_string
|
datestart_string, dateend_string
|
||||||
)
|
)
|
||||||
if event.all_day:
|
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:
|
else:
|
||||||
return _("du %s%s à %s au %s à %s") % (
|
return _("du {datestart}{common} à {timestart} au {dateend} à {timeend}").format(
|
||||||
diffstart,
|
datestart=diffstart,
|
||||||
common,
|
common=common,
|
||||||
timestart_string,
|
timestart=timestart_string,
|
||||||
diffend,
|
dateend=diffend,
|
||||||
formats.time_format(event.date_end),
|
timeend=formats.time_format(event.date_end),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if event.all_day:
|
if event.all_day:
|
||||||
return _("le %s") % datestart_string
|
return _("le {datestart}").format(datestart=datestart_string)
|
||||||
else:
|
else:
|
||||||
return _("le %s à %s") % (datestart_string, timestart_string)
|
return _("le {datestart} à {timestart}").format(
|
||||||
|
datestart=datestart_string,
|
||||||
|
timestart=timestart_string)
|
||||||
|
|
Loading…
Reference in a new issue