From 9dabab51dbd9040d2009707a9d3901a6d7aa105b Mon Sep 17 00:00:00 2001 From: Evarin Date: Sun, 29 Mar 2020 16:11:02 +0200 Subject: [PATCH] I18n --- .../cms/locale/en/LC_MESSAGES/django.mo | Bin 0 -> 2147 bytes .../cms/locale/en/LC_MESSAGES/django.po | 117 ++++++++++++++++++ gestioncof/cms/templates/cofcms/base.html | 2 +- .../templates/cofcms/cof_actu_index_page.html | 12 +- .../cms/templates/cofcms/cof_actu_page.html | 2 +- .../templates/cofcms/cof_directory_page.html | 6 +- .../cms/templates/cofcms/cof_root_page.html | 2 +- gestioncof/cms/templatetags/cofcms_tags.py | 33 ++--- 8 files changed, 148 insertions(+), 26 deletions(-) create mode 100644 gestioncof/cms/locale/en/LC_MESSAGES/django.mo create mode 100644 gestioncof/cms/locale/en/LC_MESSAGES/django.po diff --git a/gestioncof/cms/locale/en/LC_MESSAGES/django.mo b/gestioncof/cms/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..ad390d635413656536e15974ade455db8d784883 GIT binary patch literal 2147 zcmZvc&u<$=6vqc>3pKwBQV{|)6++=hH+8~~1}7mhX+l%QiHY3;0uJNdv3FoSvz?hu zTSYl=L?HFVp*L>C{09g)`M?PY#Dxo-IC9|xoZ$O* zhW0p~r|^7-=V?42+=V~1pTJ+ipTSk|>$@2{1^xv-2>t^;37)#A;5qOt`U@bg8(Ot-;r(f{ov zV^_dC*z{iT5AXr-PY|!zzx(_Td=&kYm;{rZ1z!c90q+CbU;usyVr%vpNb%hUDc?IF z;Je5bLP@_GWK_*TIE60*n8r@bD=LyhvJMt-T0U#bno`v@Ltv^O<67m5qp zFqAsa1<3cLJdl3b&X85%M_SutjwjM_(J@-fzSJIec9SQ{c??IAN2=S+oHCj^eW4OQ z{E{bAD;q8DB<~IPEEaK>S@^+--Ig#%Q(Nyfn)S-DZJP#jZgCNY!$Bl1uknVop`vAW zI7p3-tfXy1>AmFFGwD19AhcJ3H67#K^dX;Y!N+f`FI>PsS&a$Sm2&J_X|+o0Qf{$2 z@|GE^Bd$Hitw>cQ(es%|lphWpPZQKj=uk;i%N>7(=tGo)UUj=FjFDS1C6J9nt*Cgc z-jg~KtnQo%mB`bIQ0UwZ6Ut;T$vvq|UQoOM8v&^^0ter?8KrgJ{#Zebs?6SKPVhf{p+2J{(VLFc; zulkdgmhZ?9!*?*Y$B{0b@wl6j*9j|2uSKw|Y0XD6^ubybT$7eQ$r`V0$<$aMG+a+b z!JApn1#N@j=4LxswlXhpa0v<5_-u8y8dP5nW?$zsuhpuryo7!g6N4?et;pNtd2_|Q zb>V!_wnDo^cw@1}y3oB$^kmSMqCeKJaj7efwZ_Uplrz)S%CfmStuEsS^7+tqGJ5PrV zbMbl2&n@zq7v?MP25(6%Z4qzN$VhoUGd(wbaeAh5{4S^`3HNdFnPR*A3V^OVF0?A8 z57qHdXx^b28hJ;UZB5pT^HsUhi~AwJ1nhCuuW4>9$=w^0J~Y9VKaa4bfI5)v4SE+V zQkYjR75!5B6Xbp%@^)70_?^;f$ECSiS}k#47K_+rl9P7q?M#Iq?}x=U6NJe&Bm!cs z*xV@c5>YPXk%U`5i%5mzQa0VZ7{gCP0~KuGjG$oN%F^KgD$cCjm$b0#GTaJCG!zgs z)l%}VaxsU1$#!9EOfrQl2e;u8+ti$GNfGhBfs+PqlF<=4*0rWTt~jc1F2F;oK02$^ k^|%_xR~9nOb&0!oT+xTSyzo4BHINtTPFTx@AD2J-AKwUJQvd(} literal 0 HcmV?d00001 diff --git a/gestioncof/cms/locale/en/LC_MESSAGES/django.po b/gestioncof/cms/locale/en/LC_MESSAGES/django.po new file mode 100644 index 00000000..5c854f43 --- /dev/null +++ b/gestioncof/cms/locale/en/LC_MESSAGES/django.po @@ -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 , 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 "LMMJVSD" +msgstr "" +"MTuWThFSaSu" + +#: 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}" diff --git a/gestioncof/cms/templates/cofcms/base.html b/gestioncof/cms/templates/cofcms/base.html index 2b027e70..f5d3a3f8 100644 --- a/gestioncof/cms/templates/cofcms/base.html +++ b/gestioncof/cms/templates/cofcms/base.html @@ -4,7 +4,7 @@ - {% block title %}Association des élèves de l'ENS Ulm{% endblock %} + {% block title %}{% trans "Association des élèves de l'ENS Ulm" %}{% endblock %} diff --git a/gestioncof/cms/templates/cofcms/cof_actu_index_page.html b/gestioncof/cms/templates/cofcms/cof_actu_index_page.html index 7a6e1c7c..9ddd4550 100644 --- a/gestioncof/cms/templates/cofcms/cof_actu_index_page.html +++ b/gestioncof/cms/templates/cofcms/cof_actu_index_page.html @@ -7,7 +7,7 @@ {% endblock %} -{% block aside_title %}Calendrier{% endblock %} +{% block aside_title %}{% trans "Calendrier" %}{% endblock %} {% block aside %}
{% calendar %} @@ -22,10 +22,10 @@
{% if actus.has_previous %} - Actualités plus récentes + {% trans "Actualités plus récentes" %} {% endif %} {% if actus.has_next %} - Actualités plus anciennes + {% trans "Actualités plus anciennes" %} {% endif %} {% for actu in page.actus %} @@ -38,16 +38,16 @@ {% else %} {{ actu.body|safe|truncatewords_html:15 }} {% endif %} - Lire plus > + {% trans "Lire plus" %} >
{% endfor %} {% if actus.has_previous %} - Actualités plus récentes + {% trans "Actualités plus récentes" %} {% endif %} {% if actus.has_next %} - Actualités plus anciennes + {% trans "Actualités plus anciennes" %} {% endif %} {% endblock %} diff --git a/gestioncof/cms/templates/cofcms/cof_actu_page.html b/gestioncof/cms/templates/cofcms/cof_actu_page.html index b531aedc..09e42e91 100644 --- a/gestioncof/cms/templates/cofcms/cof_actu_page.html +++ b/gestioncof/cms/templates/cofcms/cof_actu_page.html @@ -4,7 +4,7 @@ {% block content %}

{{ page.title }}

-

A lieu {{ page|dates }}

+

{% trans "A lieu" %} {{ page|dates }}

{{ page.chapo }}

diff --git a/gestioncof/cms/templates/cofcms/cof_directory_page.html b/gestioncof/cms/templates/cofcms/cof_directory_page.html index 62c199ef..595848c9 100644 --- a/gestioncof/cms/templates/cofcms/cof_directory_page.html +++ b/gestioncof/cms/templates/cofcms/cof_directory_page.html @@ -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 }} {% endblock %} -{% block aside_title %}Accès rapide{% endblock %} +{% block aside_title %}{% trans "Accès rapide" %}{% endblock %} {% block aside %}
    {% for entry in page.entries %} @@ -36,7 +36,7 @@ {% if block.block_type == "lien" %} {{ block.value.texte }} {% else %} - {{ block.value.texte }} :