Translations: Mark more strings for translation

This commit is contained in:
Pablo Vazquez 2017-10-27 00:04:38 +02:00
parent 3202b3f0b5
commit 53aabc8c84
3 changed files with 24 additions and 27 deletions

View File

@ -18,31 +18,31 @@
.comment-meta .comment-meta
.comment-rating( .comment-rating(
class="{% if comment._current_user_rating is not none %}rated{% if comment._current_user_rating %} positive{% endif %}{% endif %}") class="{% if comment._current_user_rating is not none %}rated{% if comment._current_user_rating %} positive{% endif %}{% endif %}")
.comment-rating-value(title="Number of likes") {{ comment._rating }} .comment-rating-value(title="{{ _('Number of likes') }}") {{ comment._rating }}
| {% if not comment._is_own %} | {% if not comment._is_own %}
.comment-action-rating.up(title="Like comment") .comment-action-rating.up(title="{{ _('Like comment') }}")
| {% endif %} | {% endif %}
.comment-action-reply(title="Reply to this comment") .comment-action-reply(title="{{ _('Reply to this comment') }}")
span Reply span {{ _("Reply") }}
| {% if comment._is_own %} | {% if comment._is_own %}
.comment-action-edit .comment-action-edit
span.edit_mode(title="Edit comment") span.edit_mode(title="{{ _('Edit comment') }}")
| Edit | {{ _("Edit") }}
span.edit_save(title="Save comment") span.edit_save(title="{{ _('Save comment') }}")
i.pi-check i.pi-check
| Save Changes | {{ _("Save Changes") }}
span.edit_cancel(title="Cancel changes") span.edit_cancel(title="{{ _('Cancel changes') }}")
i.pi-cancel i.pi-cancel
| Cancel | {{ _("Cancel") }}
| {% endif %} | {% endif %}
.comment-time .comment-time
| {{ comment._created | pretty_date_time }} | {{ comment._created | pretty_date_time }}
| {% if comment._created != comment._updated %} | {% if comment._created != comment._updated %}
span(title="edited {{ comment._updated | pretty_date_time }}") * span(title="{{ _('edited') }} {{ comment._updated | pretty_date_time }}") *
| {% endif %} | {% endif %}
| {% for reply in comment['_replies']['_items'] %} | {% for reply in comment['_replies']['_items'] %}

View File

@ -5,7 +5,7 @@
| {% if can_post_comments %} | {% if can_post_comments %}
.comment-reply-avatar .comment-reply-avatar
img( img(
title="Commenting as {{ current_user.full_name }}", title="{{ _('Commenting as') }} {{ current_user.full_name }}",
src="{{ current_user.gravatar }}") src="{{ current_user.gravatar }}")
.comment-reply-form .comment-reply-form
@ -14,7 +14,7 @@
textarea( textarea(
id="comment_field", id="comment_field",
data-parent-id="{{ node_id }}", data-parent-id="{{ node_id }}",
placeholder="Join the conversation...") placeholder="{{ _('Join the conversation...') }}")
.comment-reply-meta .comment-reply-meta
@ -24,7 +24,7 @@
title="Post Comment (Ctrl+Enter)") title="Post Comment (Ctrl+Enter)")
span span
i.pi-paper-plane i.pi-paper-plane
| Send | {{ _('Send') }}
span.hotkey Ctrl + Enter span.hotkey Ctrl + Enter
.comment-reply-preview .comment-reply-preview
@ -32,14 +32,14 @@
.comment-reply-info .comment-reply-info
.comment-action-cancel( .comment-action-cancel(
type="button", type="button",
title="Cancel") title="{{ _('cancel') }}")
span cancel span {{ _('cancel') }}
a( a(
title="Handy guide of Markdown syntax", title="{{ _('Handy guide of Markdown syntax') }}",
target="_blank", target="_blank",
href="https://guides.github.com/features/mastering-markdown/") href="https://guides.github.com/features/mastering-markdown/")
span markdown cheatsheet span {{ _('markdown cheatsheet') }}
| {% elif current_user.is_authenticated %} | {% elif current_user.is_authenticated %}
@ -57,13 +57,13 @@
| {# * User is not autenticated #} | {# * User is not autenticated #}
.comment-reply-form .comment-reply-form
.comment-reply-field.sign-in .comment-reply-field.sign-in
a(href="{{ url_for('users.login') }}") Log in to comment a(href="{{ url_for('users.login') }}") {{ _('Log in to comment') }}
| {% endif %} | {% endif %}
| {% if show_comments and (nr_of_comments > 0) %} | {% if show_comments and (nr_of_comments > 0) %}
section.comments-list-header section.comments-list-header
.comments-list-title .comments-list-title
| {{ nr_of_comments }} comment{{ nr_of_comments|pluralize }} | {{ nr_of_comments }} {{ _('comment') }}{{ nr_of_comments|pluralize }}
.comments-list-items .comments-list-items
| {% for comment in comments['_items'] %} | {% for comment in comments['_items'] %}
| {{ macros.render_comment(comment, False) }} | {{ macros.render_comment(comment, False) }}

View File

@ -5,7 +5,7 @@
| {% include 'users/settings/_sidebar.html'%} | {% include 'users/settings/_sidebar.html'%}
#settings-container #settings-container
.settings-header .settings-header
.settings-title Profile .settings-title {{ _("Profile") }}
.settings-content .settings-content
.settings-form .settings-form
@ -25,21 +25,18 @@
| {% for error in form.username.errors %}{{ error|e }}{% endfor %} | {% for error in form.username.errors %}{{ error|e }}{% endfor %}
| {% endif %} | {% endif %}
.form-group.settings-password .form-group.settings-password
| Change your password at the | {{ _("Change your password at") }} #[a(href="https://blender.org/id/change") Blender ID]
a(href="https://blender.org/id/change") Blender ID
.right .right
.settings-avatar .settings-avatar
a(href="https://gravatar.com/") a(href="https://gravatar.com/")
img(src="{{ current_user.gravatar }}") img(src="{{ current_user.gravatar }}")
span Change Gravatar span {{ _("Change Gravatar") }}
.buttons .buttons
button.btn.btn-default.button-submit(type='submit') button.btn.btn-default.button-submit(type='submit')
i.pi-check i.pi-check
| Save Changes | {{ _("Save Changes") }}
| {% endblock %} | {% endblock %}