Commits

David Paccoud committed 6cfba77

Added templates translation

Comments (0)

Files changed (16)

locale/en/LC_MESSAGES/django.mo

Binary file added.

locale/en/LC_MESSAGES/django.po

+# 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: 2011-04-13 16:06+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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: templates/blog/category_detail.html:5
+#: templates/blog/category_detail.html:11 templates/blog/tag_detail.html:5
+#: templates/blog/tag_detail.html.py:11
+msgid "Posts for"
+msgstr ""
+
+#: templates/blog/category_detail.html:19
+#: templates/blog/post_archive_day.html:18
+#: templates/blog/post_archive_month.html:18 templates/blog/post_list.html:18
+#: templates/blog/post_search.html:30 templates/blog/tag_detail.html:19
+msgid "View this post"
+msgstr ""
+
+#: templates/blog/category_list.html:5 templates/blog/category_list.html:10
+msgid "Post categories"
+msgstr ""
+
+#: templates/blog/category_list.html:17
+msgid "View posts in this category"
+msgstr ""
+
+#: templates/blog/post_archive_day.html:5
+#: templates/blog/post_archive_day.html:10
+#: templates/blog/post_archive_month.html:5
+#: templates/blog/post_archive_month.html:10
+#: templates/blog/post_archive_year.html:5
+#: templates/blog/post_archive_year.html:10
+msgid "Post archive for"
+msgstr ""
+
+#: templates/blog/post_archive_year.html:17
+msgid "View items posted this month"
+msgstr ""
+
+#: templates/blog/post_detail.html:14
+msgid "View previous post"
+msgstr ""
+
+#: templates/blog/post_detail.html:17
+msgid "View next post"
+msgstr ""
+
+#: templates/blog/post_detail.html:34
+msgid "Related tags"
+msgstr ""
+
+#: templates/blog/post_detail.html:43
+msgid "Comments"
+msgstr ""
+
+#: templates/blog/post_detail.html:48
+msgid "Permalink to"
+msgstr ""
+
+#: templates/blog/post_detail.html:48
+#, python-format
+msgid "%(user_name)s's comment"
+msgstr ""
+
+#: templates/blog/post_detail.html:49
+msgid "View"
+msgstr ""
+
+#: templates/blog/post_detail.html:49
+#, python-format
+msgid "%(user_name)s's website"
+msgstr ""
+
+#: templates/blog/post_detail.html:49
+msgid "says"
+msgstr ""
+
+#: templates/blog/post_detail.html:52
+msgid "Posted at"
+msgstr ""
+
+#: templates/blog/post_detail.html:52
+msgid "on"
+msgstr ""
+
+#: templates/blog/post_detail.html:62
+msgid "Comments are closed"
+msgstr ""
+
+#: templates/blog/post_detail.html:63
+msgid "Comments have been closed for this post"
+msgstr ""
+
+#: templates/blog/post_list.html:5 templates/blog/post_list.html.py:10
+msgid "Post archive"
+msgstr ""
+
+#: templates/blog/post_list.html:28
+msgid "View older posts"
+msgstr ""
+
+#: templates/blog/post_list.html:28
+msgid "Older"
+msgstr ""
+
+#: templates/blog/post_list.html:32
+msgid "View newer posts"
+msgstr ""
+
+#: templates/blog/post_list.html:32
+msgid "Newer"
+msgstr ""
+
+#: templates/blog/post_search.html:5
+msgid "Post search"
+msgstr ""
+
+#: templates/blog/post_search.html:10 templates/blog/post_search.html.py:18
+msgid "Search"
+msgstr ""
+
+#: templates/blog/post_search.html:33
+#, python-format
+msgid "comment%(pluralize)s"
+msgstr ""
+
+#: templates/blog/tag_list.html:5 templates/blog/tag_list.html.py:10
+msgid "Post tags"
+msgstr ""
+
+#: templates/blog/tag_list.html:17
+msgid "View posts tagged"
+msgstr ""

locale/fr/LC_MESSAGES/django.mo

Binary file added.

locale/fr/LC_MESSAGES/django.po

+# Traduction française d'un projet démo pour Djangocong 2011.
+# Copyright (C) 2011 David paccoud
+# This file is distributed under the same license as the djangocong_2011 package.
+# David Paccoud <dpaccoud@gmail.com>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: 0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2011-04-13 16:06+0200\n"
+"PO-Revision-Date: 2011-04-13 16:13+0200\n"
+"Last-Translator: David Paccoud <dpaccoud@gmail.com>\n"
+"Language-Team: French\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/blog/category_detail.html:5
+#: templates/blog/category_detail.html:11 templates/blog/tag_detail.html:5
+#: templates/blog/tag_detail.html.py:11
+msgid "Posts for"
+msgstr "Billets pour"
+
+#: templates/blog/category_detail.html:19
+#: templates/blog/post_archive_day.html:18
+#: templates/blog/post_archive_month.html:18 templates/blog/post_list.html:18
+#: templates/blog/post_search.html:30 templates/blog/tag_detail.html:19
+msgid "View this post"
+msgstr "Voir ce billet"
+
+#: templates/blog/category_list.html:5 templates/blog/category_list.html:10
+msgid "Post categories"
+msgstr "Catégories des billets"
+
+#: templates/blog/category_list.html:17
+msgid "View posts in this category"
+msgstr "Voir les billets de cette catégorie"
+
+#: templates/blog/post_archive_day.html:5
+#: templates/blog/post_archive_day.html:10
+#: templates/blog/post_archive_month.html:5
+#: templates/blog/post_archive_month.html:10
+#: templates/blog/post_archive_year.html:5
+#: templates/blog/post_archive_year.html:10
+msgid "Post archive for"
+msgstr "Archives des billets pour"
+
+#: templates/blog/post_archive_year.html:17
+msgid "View items posted this month"
+msgstr "Voir les éléments postés ce mois"
+
+#: templates/blog/post_detail.html:14
+msgid "View previous post"
+msgstr "Voir le billet précédent"
+
+#: templates/blog/post_detail.html:17
+msgid "View next post"
+msgstr "Voir le billet suivant"
+
+#: templates/blog/post_detail.html:34
+msgid "Related tags"
+msgstr "Tags similaires"
+
+#: templates/blog/post_detail.html:43
+msgid "Comments"
+msgstr "Commentaires"
+
+#: templates/blog/post_detail.html:48
+msgid "Permalink to"
+msgstr "Lien permanent pour"
+
+#: templates/blog/post_detail.html:48
+#, python-format
+msgid "%(user_name)s's comment"
+msgstr "Commentaire de %(user_name)s"
+
+#: templates/blog/post_detail.html:49
+msgid "View"
+msgstr "Vue"
+
+#: templates/blog/post_detail.html:49
+#, python-format
+msgid "%(user_name)s's website"
+msgstr "Site de %(user_name)s"
+
+#: templates/blog/post_detail.html:49
+msgid "says"
+msgstr "dit"
+
+#: templates/blog/post_detail.html:52
+msgid "Posted at"
+msgstr "Posté le"
+
+#: templates/blog/post_detail.html:52
+msgid "on"
+msgstr "sur"
+
+#: templates/blog/post_detail.html:62
+msgid "Comments are closed"
+msgstr "les commentaires sont fermés"
+
+#: templates/blog/post_detail.html:63
+msgid "Comments have been closed for this post"
+msgstr "les commentaires ont été fermés pour ce billet"
+
+#: templates/blog/post_list.html:5 templates/blog/post_list.html.py:10
+msgid "Post archive"
+msgstr "Archive des billets"
+
+#: templates/blog/post_list.html:28
+msgid "View older posts"
+msgstr "Voir les anciens billets"
+
+#: templates/blog/post_list.html:28
+msgid "Older"
+msgstr "Plus anciens"
+
+#: templates/blog/post_list.html:32
+msgid "View newer posts"
+msgstr "Voir les billets récents"
+
+#: templates/blog/post_list.html:32
+msgid "Newer"
+msgstr "Plus récents"
+
+#: templates/blog/post_search.html:5
+msgid "Post search"
+msgstr "Recherche dan les billets"
+
+#: templates/blog/post_search.html:10 templates/blog/post_search.html.py:18
+msgid "Search"
+msgstr "Recherche"
+
+#: templates/blog/post_search.html:33
+#, python-format
+msgid "comment%(pluralize)s"
+msgstr "commentaire%(pluralize)s"
+
+#: templates/blog/tag_list.html:5 templates/blog/tag_list.html.py:10
+msgid "Post tags"
+msgstr "Tags des billets"
+
+#: templates/blog/tag_list.html:17
+msgid "View posts tagged"
+msgstr "Voir les billets tagués"

templates/base.html

+<!DOCTYPE html>
+<html lang="fr">
+  <head>
+    <meta charset="utf-8" />
+    <title>{% block title %}{% endblock %}</title>
+  </head>
+  <body id="{% block body_id %}{% endblock %}" class="{% block body_class %}{% endblock %}">
+    <div id="body">
+      {% block body %}
+        <div class="content_title">
+          {% block content_title %}{% endblock %}
+        </div>
+        <div class="content">
+          {% block content %}{% endblock %}
+        </div>
+      {% endblock %}
+    </div>
+  </body>
+</html>

templates/blog/base_blog.html

+{% extends "base.html" %}
+
+
+{% block body_class %}blog{% endblock %}

templates/blog/category_detail.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Posts for" %} {{ category.title }}{% endblock %}
+{% block body_class %}{{ block.super }} category_detail{% endblock %}
+{% block body_id %}category_{{ category.id }}{% endblock %}
+
+
+{% block content_title %}
+  <h2>{% trans "Posts for" %} {{ category.title }}</h2>
+{% endblock %}
+
+
+{% block content %}
+  <div class="post_list">
+    {% for post in object_list %}
+    <div>
+      <h3 class="title"><a href="{{ post.get_absolute_url }}" title="{% trans "View this post" %}">{{ post.title }}</a></h3>
+      <p class="date">{{ post.publish|date:"Y F d" }}</p>
+      <p class="tease">{{ post.tease|safe }}</p>
+    </div>
+    {% endfor %}
+  </div>
+{% endblock %}

templates/blog/category_list.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Post categories" %}{% endblock %}
+{% block body_class %}{{ block.super }} category_list{% endblock %}
+
+
+{% block content_title %}
+  <h2>{% trans "Post categories" %}</h2>
+{% endblock %}
+
+
+{% block content %}
+  <ul class="link_list">
+    {% for category in object_list %}
+    <li><a href="{{ category.get_absolute_url }}" title="{% trans "View posts in this category" %}">{{ category }}</a></li>
+    {% endfor %}
+  </ul>
+{% endblock %}

templates/blog/post_archive_day.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Post archive for" %} {{ day|date:"d F Y" }}{% endblock %}
+{% block body_class %}{{ block.super }} post_archive_day{% endblock %}
+
+
+{% block content_title %}
+  <h2>{% trans "Post archive for" %} {{ day|date:"d F Y" }}</h2>
+{% endblock %}
+
+
+{% block content %}
+  <div class="post_list">
+    {% for post in object_list %}
+    <div>
+      <h3 class="title"><a href="{{ post.get_absolute_url }}" title="{% trans "View this post" %}">{{ post.title }}</a></h3>
+      <p class="date">{{ post.publish|date:"Y F d" }}</p>
+      <p class="tease">{{ post.tease|safe }}</p>
+    </div>
+    {% endfor %}
+  </div>
+{% endblock %}

templates/blog/post_archive_month.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Post archive for" %} {{ month|date:"F Y" }}{% endblock %}
+{% block body_class %}{{ block.super }} post_archive_month{% endblock %}
+
+
+{% block content_title %}
+  <h2>{% trans "Post archive for" %} {{ month|date:"F Y" }}</h2>
+{% endblock %}
+
+
+{% block content %}
+  <div class="post_list">
+    {% for post in object_list %}
+    <div>
+      <h3 class="title"><a href="{{ post.get_absolute_url }}" title="{% trans "View this post" %}">{{ post.title }}</a></h3>
+      <p class="date">{{ post.publish|date:"Y F d" }}</p>
+      <p class="tease">{{ post.tease|safe }}</p>
+    </div>
+    {% endfor %}
+  </div>
+{% endblock %}

templates/blog/post_archive_year.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Post archive for" %} {{ year }}{% endblock %}
+{% block body_class %}{{ block.super }} post_archive_year{% endblock %}
+
+
+{% block content_title %}
+  <h2>{% trans "Post archive for" %} {{ year }}</h2>
+{% endblock %}
+
+
+{% block content %}  
+  <ul class="link_list">
+    {% for month in date_list %}
+    <li><a href="{% url blog_index %}{{ year }}/{{ month|date:"b" }}/" title="{% trans "View items posted this month" %}">{{ month|date:"F" }}</a></li>
+    {% endfor %}
+  </ul>
+{% endblock %}

templates/blog/post_detail.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{{ object.title }}{% endblock %}
+{% block body_class %}{{ block.super }} post_detail{% endblock %}
+{% block body_id %}post_{{ object.id }}{% endblock %}
+
+
+{% block content_title %}
+  <h2>{{ object.title }}</h2>
+  <p class="other_posts">
+    {% if object.get_previous_by_publish %}
+    <a class="previous" href="{{ object.get_previous_post.get_absolute_url }}" title="{% trans "View previous post" %}">&laquo; {{ object.get_previous_post }}</a>
+    {% endif %}
+    {% if object.get_next_by_publish %}
+    | <a class="next" href="{{ object.get_next_post.get_absolute_url }}" title="{% trans "View next post" %}">{{ object.get_next_post }} &raquo;</a>
+    {% endif %}
+  </p>
+{% endblock %}
+
+
+{% block content %}
+  {% load blog comments tagging_tags inlines markup %}
+
+  <p class="date">{{ object.publish|date:"j F Y" }}</p>
+
+  <div class="body">
+    {{ object.body|render_inlines|safe }}
+  </div>
+
+  {% tags_for_object object as tag_list %}
+  {% if tag_list %}
+  <p class="inline_tag_list"><strong>{% trans "Related tags" %}:</strong>
+    {{ tag_list|join:", " }}
+  </p>
+  {% endif %}
+
+  {% get_comment_list for object as comment_list %}
+  {% if comment_list %}
+  <div id="comments">
+    <a name="comments"></a>
+    <h3 class="comments_title">{% trans "Comments" %}</h3>
+    {% for comment in comment_list %}
+      {% if comment.is_public %}
+      <div class="comment">
+        <h5 class="name">
+          <a name="c{{ comment.id }}" href="{{ comment.get_absolute_url }}" title="{% trans "Permalink to" %} {% blocktrans with comment.user_name as user_name %}{{ user_name }}'s comment{% endblocktrans %}" class="count">{{ forloop.counter }}</a>
+          {% if comment.user_url %}<a href="{{ comment.user_url }}" title="{% trans "View" %} {% blocktrans with comment.user_name as user_name %}{{ user_name }}'s website{% endblocktrans %}">{{ comment.user_name }}</a>{% else %}{{ comment.user_name }}{% endif %} {% trans "says" %}...
+        </h5>
+        {{ comment.comment|urlizetrunc:"60"|markdown:"safe" }}
+        <p class="date">{% trans "Posted at" %} {{ comment.submit_date|date:"P" }} {% trans "on" %} {{ comment.submit_date|date:"F j, Y" }}</p>
+      </div>
+      {% endif %}
+    {% endfor %}
+  </div>
+  {% endif %}
+  {% if object.allow_comments %}
+    {% render_comment_form for object %}
+  {% else %}
+    <div id="comment_form">
+      <h3>{% trans "Comments are closed" %}.</h3>
+      <p>{% trans "Comments have been closed for this post" %}.</p>
+    </div>
+  {% endif %}
+{% endblock %}

templates/blog/post_list.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Post archive" %}{% endblock %}
+{% block body_class %}{{ block.super }} post_list{% endblock %}
+
+
+{% block content_title %}
+  <h2>{% trans "Post archive" %}</h2>
+{% endblock %}
+
+
+{% block content %}
+  <div class="list post_list">
+    {% for post in object_list %}
+    <div class="item">
+      <h3 class="title"><a href="{{ post.get_absolute_url }}" title="{% trans "View this post" %}">{{ post.title }}</a></h3>
+      <p class="date">{{ post.publish|date:"Y F d" }}</p>
+      <p class="tease">{{ post.tease|safe }}</p>
+    </div>
+    {% endfor %}
+  </div>
+  
+  {% if is_paginated %}
+  <p class="pagination">
+    {% if has_next %}
+    <a class="older" href="?page={{ next }}" title="{% trans "View older posts" %}">{% trans "Older" %}</a>
+    {% endif %}
+    {% if has_next and has_previous %} | {% endif %}
+    {% if has_previous %}
+    <a class="newer" href="?page={{ previous }}" title="{% trans "View newer posts" %}">{% trans "Newer" %}</a>
+    {% endif %}
+  </p>
+  {% endif %}
+{% endblock %}

templates/blog/post_search.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Post search" %}{% endblock %}
+{% block body_class %}{{ block.super }} post_search{% endblock %}
+
+
+{% block content_title %}
+  <h2>{% trans "Search" %}</h2>
+{% endblock %}
+
+
+{% block content %}
+  <form action="." method="get" id="post_search_form">
+    <p>
+      <input type="text" name="q" value="{{ search_term }}" id="search">
+      <input type="submit" class="button" value="{% trans "Search" %}">
+    </p>
+  </form>
+  
+  {% if message %}
+  <p class="message">{{ message }}</p>
+  {% endif %}
+  
+  {% if object_list %}
+  <div class="post_list">
+    {% for post in object_list %}
+    <div>
+      <h3 class="title"><a href="{{ post.get_absolute_url }}" title="{% trans "View this post" %}">{{ post.title }}</a></h3>
+      <p class="date">{{ post.publish|date:"Y F d" }}</p>
+      <p class="tease">{{ post.tease|safe }}</p>
+      <p class="comments">{% if comment_count %}{{ comment_count }} {% blocktrans with comment_count|pluralize as pluralize %}comment{{ pluralize }}{% endblocktrans %}{% endif %}</p>
+    </div>
+    {% endfor %}
+  </div>
+  {% endif %}
+{% endblock %}

templates/blog/tag_detail.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Posts for" %} {{ tag.name }}{% endblock %}
+{% block body_class %}{{ block.super }} tag_detail{% endblock %}
+{% block body_id %}tag_{{ tag.id }}{% endblock %}
+
+
+{% block content_title %}
+  <h2>{% trans "Posts for" %} {{ tag.name }}</h2>
+{% endblock %}
+
+
+{% block content %}
+  <div class="post_list">
+    {% for post in object_list %}
+    <div>
+      <h3 class="title"><a href="{{ post.get_absolute_url }}" title="{% trans "View this post" %}">{{ post.title }}</a></h3>
+      <p class="date">{{ post.publish|date:"Y F d" }}</p>
+      <p class="tease">{{ post.tease|safe }}</p>
+    </div>
+    {% endfor %}
+  </div>
+{% endblock %}

templates/blog/tag_list.html

+{% extends "blog/base_blog.html" %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Post tags" %}{% endblock %}
+{% block body_class %}{{ block.super }} tag_list{% endblock %}
+
+
+{% block content_title %}
+  <h2>{% trans "Post tags" %}</h2>
+{% endblock %}
+
+
+{% block content %}
+  <ul class="link_list">
+    {% for tag in object_list %}
+    <li><a href="{{ tag.get_absolute_url }}" title="{% trans "View posts tagged" %} {{ tag }}">{{ tag }}</a></li>
+    {% endfor %}
+  </ul>
+{% endblock %}