changeset 32:16818343fc43

blog/item: use date_days instead of blog_date + fr translation
author Goffi <goffi@goffi.org>
date Sat, 24 Jun 2017 21:50:24 +0200 (2017-06-24)
parents 2d5c4030cac5
children be1aebaccac0
files default/blog/item.html i18n/fr.po i18n/fr/LC_MESSAGES/sat.mo i18n/sat.po
diffstat 4 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/default/blog/item.html	Sat Jun 24 20:32:47 2017 +0200
+++ b/default/blog/item.html	Sat Jun 24 21:50:24 2017 +0200
@@ -16,7 +16,7 @@
             {% block metadata %}
             <div class="metadata">
             <span class="author">{{identities[item.author_jid].nick | default(item.author)}}</span>
-            <span class="blog_data">{{item.published | blog_date}}</span>
+            <span class="blog_data">{% trans days=item.published|date_days %}{{days}} days ago{% endtrans %}</span>
             </div>
 
             {% endblock metadata %}
--- a/i18n/fr.po	Sat Jun 24 20:32:47 2017 +0200
+++ b/i18n/fr.po	Sat Jun 24 21:50:24 2017 +0200
@@ -8,8 +8,8 @@
 msgstr ""
 "Project-Id-Version: sat VERSION\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2017-06-24 20:29+0200\n"
-"PO-Revision-Date: 2017-06-24 20:31+0200\n"
+"POT-Creation-Date: 2017-06-24 21:47+0200\n"
+"PO-Revision-Date: 2017-06-24 21:43+0200\n"
 "Last-Translator: Goffi <goffi@goffi.org>\n"
 "Language-Team: fr <>\n"
 "Language: fr\n"
@@ -34,6 +34,11 @@
 msgstr ""
 "Ce message n'est pas en %(language)s, cliquez pour l'afficher tout de même."
 
+#: default/blog/item.html:19
+#, python-format
+msgid "%(days)s days ago"
+msgstr "il y a %(days)s jours"
+
 #: default/blog/item.html:34
 msgid "Click to to expand…"
 msgstr "Cliquez pour agrandir…"
Binary file i18n/fr/LC_MESSAGES/sat.mo has changed
--- a/i18n/sat.po	Sat Jun 24 20:32:47 2017 +0200
+++ b/i18n/sat.po	Sat Jun 24 21:50:24 2017 +0200
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: sat VERSION\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2017-06-24 20:29+0200\n"
+"POT-Creation-Date: 2017-06-24 21:47+0200\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"
@@ -31,6 +31,11 @@
 msgid "This message is not in %(language)s, click to display anyway"
 msgstr ""
 
+#: default/blog/item.html:19
+#, python-format
+msgid "%(days)s days ago"
+msgstr ""
+
 #: default/blog/item.html:34
 msgid "Click to to expand…"
 msgstr ""