Skip to content

Commit

Permalink
bug #95 Make missing title on comment error page translatable (hason)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Make missing title on comment error page translatable

Commits
-------

d61ee21 Make missing title on comment error page translatable
  • Loading branch information
javiereguiluz committed Jul 10, 2015
2 parents d9b1960 + d61ee21 commit 805b148
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/Resources/translations/messages.cs.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
<source>title.add_comment</source>
<target>Přidat komentář</target>
</trans-unit>
<trans-unit id="title.comment_error">
<source>title.comment_error</source>
<target>Při vytváření komentáře došlo k chybě</target>
</trans-unit>

<trans-unit id="action.show">
<source>action.show</source>
Expand Down
4 changes: 4 additions & 0 deletions app/Resources/translations/messages.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
<source>title.add_comment</source>
<target>Add a comment</target>
</trans-unit>
<trans-unit id="title.comment_error">
<source>title.comment_error</source>
<target>There was an error publishing your comment</target>
</trans-unit>

<trans-unit id="action.show">
<source>action.show</source>
Expand Down
2 changes: 1 addition & 1 deletion app/Resources/views/blog/comment_form_error.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block body_id 'comment_form_error' %}

{% block main %}
<h1 class="text-danger">There was an error publishing your comment</h1>
<h1 class="text-danger">{{ 'title.comment_error'|trans }}</h1>

<div class="well">
{{ include('blog/comment_form.html.twig') }}
Expand Down

0 comments on commit 805b148

Please sign in to comment.