Skip to content

Commit 805b148

Browse files
committed
bug symfony#95 Make missing title on comment error page translatable (hason)
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
2 parents d9b1960 + d61ee21 commit 805b148

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

app/Resources/translations/messages.cs.xliff

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
<source>title.add_comment</source>
5252
<target>Přidat komentář</target>
5353
</trans-unit>
54+
<trans-unit id="title.comment_error">
55+
<source>title.comment_error</source>
56+
<target>Při vytváření komentáře došlo k chybě</target>
57+
</trans-unit>
5458

5559
<trans-unit id="action.show">
5660
<source>action.show</source>

app/Resources/translations/messages.en.xliff

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
<source>title.add_comment</source>
5252
<target>Add a comment</target>
5353
</trans-unit>
54+
<trans-unit id="title.comment_error">
55+
<source>title.comment_error</source>
56+
<target>There was an error publishing your comment</target>
57+
</trans-unit>
5458

5559
<trans-unit id="action.show">
5660
<source>action.show</source>

app/Resources/views/blog/comment_form_error.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block body_id 'comment_form_error' %}
44

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy