Ticket #8868: contrib-comments-templates-trans.diff

File contrib-comments-templates-trans.diff, 14.3 KB (added by Jarek Zgoda, 16 years ago)

Translations for templates in comments framework

  • django/contrib/comments/templates/comments/approve.html

     
    11{% extends "comments/base.html" %}
     2{% load i18n %}
    23
    3 {% block title %}Approve a comment{% endblock %}
     4{% block title %}{% trans "Approve a comment" %}{% endblock %}
    45
    56{% block content %}
    6   <h1>Really make this comment public?</h1>
     7  <h1>{% trans "Really make this comment public?" %}</h1>
    78  <blockquote>{{ comment|escape|linebreaks }}</blockquote>
    89  <form action="." method="POST">
    910    <input type="hidden" name="next" value="{{ next|escape }}" id="next">
    1011    <p class="submit">
    11       <input type="submit" name="submit" value="Approve"> or <a href="{{ comment.permalink }}">cancel</a>
     12      <input type="submit" name="submit" value="{% trans "Approve" %}"> {% trans "or" %} <a href="{{ comment.permalink }}">{% trans "cancel" %}</a>
    1213    </p>
    1314  </form>
    14 {% endblock %}
    15  No newline at end of file
     15{% endblock %}
  • django/contrib/comments/templates/comments/reply_preview.html

     
    11{% extends "comments/base.html" %}
     2{% load i18n %}
    23
    3 {% block title %}Preview your comment{% endblock %}
     4{% block title %}{% trans "Preview your comment" %}{% endblock %}
    45
    56{% block content %}
    67  {% load comments %}
    78  <form action="{% comment_form_target %}" method="POST">
    89    {% if form.errors %}
    9       <h1>Please correct the error{{ form.errors|pluralize }} below</h1>
     10      <h1>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1>
    1011    {% else %}
    11       <h1>Preview your comment</h1>
     12      <h1>{% trans "Preview your comment" %}</h1>
    1213      <blockquote>{{ comment|escape|linebreaks }}</blockquote>
    1314      <p>
    14         and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes:
     15        {% trans "and" %} <input type="submit" name="submit" value="{% trans "Post your comment" %}" id="submit"> {% trans "or make changes" %}:
    1516      </p>
    1617    {% endif %}
    1718    {% for field in form %}
     
    2728      {% endif %}
    2829    {% endfor %}
    2930    <p class="submit">
    30       <input type="submit" name="submit" class="submit-post" value="Post">
    31       <input type="submit" name="submit" class="submit-preview" value="Preview">
     31      <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}">
     32      <input type="submit" name="submit" class="submit-preview" value="{% trans "Preview" %}">
    3233    </p>
    3334  </form>
    3435{% endblock %}
  • django/contrib/comments/templates/comments/posted.html

     
    11{% extends "comments/base.html" %}
     2{% load i18n %}
    23
    3 {% block title %}Thanks for commenting.{% endblock %}
     4{% block title %}{% trans "Thanks for commenting" %}.{% endblock %}
    45
    56{% block content %}
    6   <h1>Thank you for your comment.</h1>
    7 {% endblock %}
    8  No newline at end of file
     7  <h1>{% trans "Thank you for your comment" %}.</h1>
     8{% endblock %}
  • django/contrib/comments/templates/comments/approved.html

     
    11{% extends "comments/base.html" %}
     2{% load i18n %}
    23
    3 {% block title %}Thanks for approving.{% endblock %}
     4{% block title %}{% trans "Thanks for approving" %}.{% endblock %}
    45
    56{% block content %}
    6   <h1>Thanks for taking the time to improve the quality of discussion on our site.</h1>
    7 {% endblock %}
    8  No newline at end of file
     7  <h1>{% trans "Thanks for taking the time to improve the quality of discussion on our site" %}.</h1>
     8{% endblock %}
  • django/contrib/comments/templates/comments/preview.html

     
    11{% extends "comments/base.html" %}
     2{% load i18n %}
    23
    3 {% block title %}Preview your comment{% endblock %}
     4{% block title %}{% trans "Preview your comment" %}{% endblock %}
    45
    56{% block content %}
    67  {% load comments %}
    78  <form action="{% comment_form_target %}" method="POST">
    89    {% if form.errors %}
    9       <h1>Please correct the error{{ form.errors|pluralize }} below</h1>
     10      <h1>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1>
    1011    {% else %}
    11       <h1>Preview your comment</h1>
     12      <h1>{% trans "Preview your comment" %}</h1>
    1213      <blockquote>{{ comment|escape|linebreaks }}</blockquote>
    1314      <p>
    14         and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes:
     15        {% trans "and" %} <input type="submit" name="submit" value="{% trans "Post your comment" %}" id="submit"> {% trans "or make changes" %}:
    1516      </p>
    1617    {% endif %}
    1718    {% for field in form %}
     
    2728      {% endif %}
    2829    {% endfor %}
    2930    <p class="submit">
    30       <input type="submit" name="submit" class="submit-post" value="Post">
    31       <input type="submit" name="submit" class="submit-preview" value="Preview">
     31      <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}">
     32      <input type="submit" name="submit" class="submit-preview" value="{% trans "Preview" %}">
    3233    </p>
    3334  </form>
    34 {% endblock %}
    35  No newline at end of file
     35{% endblock %}
  • django/contrib/comments/templates/comments/delete.html

     
    11{% extends "comments/base.html" %}
     2{% load i18n %}
    23
    3 {% block title %}Remove a comment{% endblock %}
     4{% block title %}{% trans "Remove a comment" %}{% endblock %}
    45
    56{% block content %}
    6   <h1>Really remove this comment?</h1>
     7  <h1>{% trans "Really remove this comment?" %}</h1>
    78  <blockquote>{{ comment|escape|linebreaks }}</blockquote>
    89  <form action="." method="POST">
    910    <input type="hidden" name="next" value="{{ next|escape }}" id="next">
    1011    <p class="submit">
    11       <input type="submit" name="submit" value="Remove"> or <a href="{{ comment.permalink }}">cancel</a>
     12      <input type="submit" name="submit" value="{% trans "Remove" %}"> {% trans "or" %} <a href="{{ comment.permalink }}">{% trans "cancel" %}</a>
    1213    </p>
    1314  </form>
    14 {% endblock %}
    15  No newline at end of file
     15{% endblock %}
  • django/contrib/comments/templates/comments/form.html

     
    11{% load comments %}
     2{% load i18n %}
    23<form action="{% comment_form_target %}" method="POST">
    34  {% for field in form %}
    45    {% if field.is_hidden %}
     
    1314    {% endif %}
    1415  {% endfor %}
    1516  <p class="submit">
    16     <input type="submit" name="submit" class="submit-post" value="Post" />
    17     <input type="submit" name="submit" class="submit-preview" value="Preview" />
     17    <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}" />
     18    <input type="submit" name="submit" class="submit-preview" value="{% trans "Preview" %}" />
    1819  </p>
    1920</form>
  • django/contrib/comments/templates/comments/moderation_queue.html

     
    11{% extends "admin/change_list.html" %}
     2{% load i18n %}
    23{% load adminmedia %}
    34
    4 {% block title %}Comment moderation queue{% endblock %}
     5{% block title %}{% trans "Comment moderation queue" %}{% endblock %}
    56
    67{% block extrahead %}
    78  {{ block.super }}
     
    1617{% endblock %}
    1718
    1819{% block branding %}
    19 <h1 id="site-name">Comment moderation queue</h1>
     20<h1 id="site-name">{% trans "Comment moderation queue" %}</h1>
    2021{% endblock %}
    2122
    2223{% block breadcrumbs %}{% endblock %}
    2324
    2425{% block content %}
    2526{% if empty %}
    26   <p id="nocomments">No comments to moderate.</div>
     27  <p id="nocomments">{% trans "No comments to moderate" %}.</div>
    2728{% else %}
    2829<div id="content-main">
    2930  <div class="module" id="changelist">
    3031    <table cellspacing="0">
    3132      <thead>
    3233        <tr>
    33           <th>Action</th>
    34           <th>Name</th>
    35           <th>Comment</th>
    36           <th>Email</th>
    37           <th>URL</th>
    38           <th>Authenticated?</th>
    39           <th>IP Address</th>
    40           <th class="sorted desc">Date posted</th>
     34          <th>{% trans "Action" %}</th>
     35          <th>{% trans "Name" %}</th>
     36          <th>{% trans "Comment" %}</th>
     37          <th>{% trans "Email" %}</th>
     38          <th>{% trans "URL" %}</th>
     39          <th>{% trans "Authenticated?" %}</th>
     40          <th>{% trans "IP Address" %}</th>
     41          <th class="sorted desc">{% trans "Date posted" %}</th>
    4142        </tr>
    4243    </thead>
    4344    <tbody>
     
    4647          <td class="actions">
    4748            <form action="{% url comments-approve comment.pk %}" method="POST">
    4849              <input type="hidden" name="next" value="{% url comments-moderation-queue %}">
    49               <input class="approve submit" type="submit" name="submit" value="Approve">
     50              <input class="approve submit" type="submit" name="submit" value="{% trans "Approve" %}">
    5051            </form>
    5152            <form action="{% url comments-delete comment.pk %}" method="POST">
    5253              <input type="hidden" name="next" value="{% url comments-moderation-queue %}">
    53               <input class="remove submit" type="submit" name="submit" value="Remove">
     54              <input class="remove submit" type="submit" name="submit" value="{% trans "Remove" %}">
    5455            </form>
    5556          </td>
    5657          <td>{{ comment.name|escape }}</td>
     
    6061          <td>
    6162            <img
    6263              src="{% admin_media_prefix %}img/admin/icon-{% if comment.user %}yes{% else %}no{% endif %}.gif"
    63               alt="{% if comment.user %}yes{% else %}no{% endif %}"
     64              alt="{% if comment.user %}{% trans "yes" %}{% else %}{% trans "no" %}{% endif %}"
    6465            />
    6566          </td>
    6667          <td>{{ comment.ip_address|escape }}</td>
  • django/contrib/comments/templates/comments/deleted.html

     
    11{% extends "comments/base.html" %}
     2{% load i18n %}
    23
    3 {% block title %}Thanks for removing.{% endblock %}
     4{% block title %}{% trans "Thanks for removing" %}.{% endblock %}
    45
    56{% block content %}
    6   <h1>Thanks for taking the time to improve the quality of discussion on our site.</h1>
    7 {% endblock %}
    8  No newline at end of file
     7  <h1>{% trans "Thanks for taking the time to improve the quality of discussion on our site" %}.</h1>
     8{% endblock %}
  • django/contrib/comments/templates/comments/flag.html

     
    11{% extends "comments/base.html" %}
     2{% load i18n %}
    23
    3 {% block title %}Flag this comment{% endblock %}
     4{% block title %}{% trans "Flag this comment" %}{% endblock %}
    45
    56{% block content %}
    6   <h1>Really flag this comment?</h1>
     7  <h1>{% trans "Really flag this comment?" %}</h1>
    78  <blockquote>{{ comment|escape|linebreaks }}</blockquote>
    89  <form action="." method="POST">
    910    <input type="hidden" name="next" value="{{ next|escape }}" id="next">
    1011    <p class="submit">
    11       <input type="submit" name="submit" value="Flag"> or <a href="{{ comment.permalink }}">cancel</a>
     12      <input type="submit" name="submit" value="{% trans "Flag" %}"> {% trans "or" %} <a href="{{ comment.permalink }}">{% trans "cancel" %}</a>
    1213    </p>
    1314  </form>
    14 {% endblock %}
    15  No newline at end of file
     15{% endblock %}
  • django/contrib/comments/templates/comments/flagged.html

     
    11{% extends "comments/base.html" %}
     2{% load i18n %}
    23
    3 {% block title %}Thanks for flagging.{% endblock %}
     4{% block title %}{% trans "Thanks for flagging" %}.{% endblock %}
    45
    56{% block content %}
    6   <h1>Thanks for taking the time to improve the quality of discussion on our site.</h1>
    7 {% endblock %}
    8  No newline at end of file
     7  <h1>{% trans "Thanks for taking the time to improve the quality of discussion on our site" %}.</h1>
     8{% endblock %}
  • django/contrib/comments/templates/comments/reply.html

     
    11{% load comments %}
     2{% load i18n %}
    23<form action="{% comment_form_target %}" method="POST">
    34  {% for field in form %}
    45    {% if field.is_hidden %}
     
    1314    {% endif %}
    1415  {% endfor %}
    1516  <p class="submit">
    16     <input type="submit" name="submit" class="submit-post" value="Reply">
    17     <input type="submit" name="submit" class="submit-preview" value="Preview">
     17    <input type="submit" name="submit" class="submit-post" value="{% trans "Reply" %}">
     18    <input type="submit" name="submit" class="submit-preview" value="{% trans "Preview" %}">
    1819  </p>
    1920</form>
Back to Top