Ticket #8868: contrib-comments-templates-trans.diff
File contrib-comments-templates-trans.diff, 14.3 KB (added by , 16 years ago) |
---|
-
django/contrib/comments/templates/comments/approve.html
1 1 {% extends "comments/base.html" %} 2 {% load i18n %} 2 3 3 {% block title %} Approve a comment{% endblock %}4 {% block title %}{% trans "Approve a comment" %}{% endblock %} 4 5 5 6 {% block content %} 6 <h1> Really make this comment public?</h1>7 <h1>{% trans "Really make this comment public?" %}</h1> 7 8 <blockquote>{{ comment|escape|linebreaks }}</blockquote> 8 9 <form action="." method="POST"> 9 10 <input type="hidden" name="next" value="{{ next|escape }}" id="next"> 10 11 <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> 12 13 </p> 13 14 </form> 14 {% endblock %} 15 No newline at end of file 15 {% endblock %} -
django/contrib/comments/templates/comments/reply_preview.html
1 1 {% extends "comments/base.html" %} 2 {% load i18n %} 2 3 3 {% block title %} Preview your comment{% endblock %}4 {% block title %}{% trans "Preview your comment" %}{% endblock %} 4 5 5 6 {% block content %} 6 7 {% load comments %} 7 8 <form action="{% comment_form_target %}" method="POST"> 8 9 {% 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> 10 11 {% else %} 11 <h1> Preview your comment</h1>12 <h1>{% trans "Preview your comment" %}</h1> 12 13 <blockquote>{{ comment|escape|linebreaks }}</blockquote> 13 14 <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" %}: 15 16 </p> 16 17 {% endif %} 17 18 {% for field in form %} … … 27 28 {% endif %} 28 29 {% endfor %} 29 30 <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" %}"> 32 33 </p> 33 34 </form> 34 35 {% endblock %} -
django/contrib/comments/templates/comments/posted.html
1 1 {% extends "comments/base.html" %} 2 {% load i18n %} 2 3 3 {% block title %} Thanks for commenting.{% endblock %}4 {% block title %}{% trans "Thanks for commenting" %}.{% endblock %} 4 5 5 6 {% 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
1 1 {% extends "comments/base.html" %} 2 {% load i18n %} 2 3 3 {% block title %} Thanks for approving.{% endblock %}4 {% block title %}{% trans "Thanks for approving" %}.{% endblock %} 4 5 5 6 {% 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
1 1 {% extends "comments/base.html" %} 2 {% load i18n %} 2 3 3 {% block title %} Preview your comment{% endblock %}4 {% block title %}{% trans "Preview your comment" %}{% endblock %} 4 5 5 6 {% block content %} 6 7 {% load comments %} 7 8 <form action="{% comment_form_target %}" method="POST"> 8 9 {% 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> 10 11 {% else %} 11 <h1> Preview your comment</h1>12 <h1>{% trans "Preview your comment" %}</h1> 12 13 <blockquote>{{ comment|escape|linebreaks }}</blockquote> 13 14 <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" %}: 15 16 </p> 16 17 {% endif %} 17 18 {% for field in form %} … … 27 28 {% endif %} 28 29 {% endfor %} 29 30 <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" %}"> 32 33 </p> 33 34 </form> 34 {% endblock %} 35 No newline at end of file 35 {% endblock %} -
django/contrib/comments/templates/comments/delete.html
1 1 {% extends "comments/base.html" %} 2 {% load i18n %} 2 3 3 {% block title %} Remove a comment{% endblock %}4 {% block title %}{% trans "Remove a comment" %}{% endblock %} 4 5 5 6 {% block content %} 6 <h1> Really remove this comment?</h1>7 <h1>{% trans "Really remove this comment?" %}</h1> 7 8 <blockquote>{{ comment|escape|linebreaks }}</blockquote> 8 9 <form action="." method="POST"> 9 10 <input type="hidden" name="next" value="{{ next|escape }}" id="next"> 10 11 <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> 12 13 </p> 13 14 </form> 14 {% endblock %} 15 No newline at end of file 15 {% endblock %} -
django/contrib/comments/templates/comments/form.html
1 1 {% load comments %} 2 {% load i18n %} 2 3 <form action="{% comment_form_target %}" method="POST"> 3 4 {% for field in form %} 4 5 {% if field.is_hidden %} … … 13 14 {% endif %} 14 15 {% endfor %} 15 16 <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" %}" /> 18 19 </p> 19 20 </form> -
django/contrib/comments/templates/comments/moderation_queue.html
1 1 {% extends "admin/change_list.html" %} 2 {% load i18n %} 2 3 {% load adminmedia %} 3 4 4 {% block title %} Comment moderation queue{% endblock %}5 {% block title %}{% trans "Comment moderation queue" %}{% endblock %} 5 6 6 7 {% block extrahead %} 7 8 {{ block.super }} … … 16 17 {% endblock %} 17 18 18 19 {% block branding %} 19 <h1 id="site-name"> Comment moderation queue</h1>20 <h1 id="site-name">{% trans "Comment moderation queue" %}</h1> 20 21 {% endblock %} 21 22 22 23 {% block breadcrumbs %}{% endblock %} 23 24 24 25 {% block content %} 25 26 {% if empty %} 26 <p id="nocomments"> No comments to moderate.</div>27 <p id="nocomments">{% trans "No comments to moderate" %}.</div> 27 28 {% else %} 28 29 <div id="content-main"> 29 30 <div class="module" id="changelist"> 30 31 <table cellspacing="0"> 31 32 <thead> 32 33 <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> 41 42 </tr> 42 43 </thead> 43 44 <tbody> … … 46 47 <td class="actions"> 47 48 <form action="{% url comments-approve comment.pk %}" method="POST"> 48 49 <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" %}"> 50 51 </form> 51 52 <form action="{% url comments-delete comment.pk %}" method="POST"> 52 53 <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" %}"> 54 55 </form> 55 56 </td> 56 57 <td>{{ comment.name|escape }}</td> … … 60 61 <td> 61 62 <img 62 63 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 %}" 64 65 /> 65 66 </td> 66 67 <td>{{ comment.ip_address|escape }}</td> -
django/contrib/comments/templates/comments/deleted.html
1 1 {% extends "comments/base.html" %} 2 {% load i18n %} 2 3 3 {% block title %} Thanks for removing.{% endblock %}4 {% block title %}{% trans "Thanks for removing" %}.{% endblock %} 4 5 5 6 {% 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
1 1 {% extends "comments/base.html" %} 2 {% load i18n %} 2 3 3 {% block title %} Flag this comment{% endblock %}4 {% block title %}{% trans "Flag this comment" %}{% endblock %} 4 5 5 6 {% block content %} 6 <h1> Really flag this comment?</h1>7 <h1>{% trans "Really flag this comment?" %}</h1> 7 8 <blockquote>{{ comment|escape|linebreaks }}</blockquote> 8 9 <form action="." method="POST"> 9 10 <input type="hidden" name="next" value="{{ next|escape }}" id="next"> 10 11 <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> 12 13 </p> 13 14 </form> 14 {% endblock %} 15 No newline at end of file 15 {% endblock %} -
django/contrib/comments/templates/comments/flagged.html
1 1 {% extends "comments/base.html" %} 2 {% load i18n %} 2 3 3 {% block title %} Thanks for flagging.{% endblock %}4 {% block title %}{% trans "Thanks for flagging" %}.{% endblock %} 4 5 5 6 {% 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
1 1 {% load comments %} 2 {% load i18n %} 2 3 <form action="{% comment_form_target %}" method="POST"> 3 4 {% for field in form %} 4 5 {% if field.is_hidden %} … … 13 14 {% endif %} 14 15 {% endfor %} 15 16 <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" %}"> 18 19 </p> 19 20 </form>