From 0b6232a2802aa7a721fab05e88fa690c05fc1307 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 9 Oct 2015 17:39:02 +0200 Subject: [PATCH] Allow frontend translations. Added italian --- languages.yaml | 17 ++++++++++++++++- templates/partials/comments.html.twig | 8 ++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/languages.yaml b/languages.yaml index 8c82d23..917ef58 100644 --- a/languages.yaml +++ b/languages.yaml @@ -3,5 +3,20 @@ en: COMMENTS: Comments EMAIL_NOT_CONFIGURED: Email not configured NEW_COMMENT_EMAIL_SUBJECT: 'New comment on %1$s' - NEW_COMMENT_EMAIL_BODY: '

A new comment was made on %1$s by %3$s (%4$s).

Post: %2$s

Text: %5$s

' + NEW_COMMENT_EMAIL_BODY: '

A new comment was made on %1$s by %3$s (%4$s).

Page: %2$s

Text: %5$s

' EMAIL_FOOTER: '' + NAME: Name: + EMAIL: Email: + WRITTEN_ON: Written on + BY: by +it: + PLUGIN_COMMENTS: + COMMENTS: Commenti + EMAIL_NOT_CONFIGURED: Email non configurata + NEW_COMMENT_EMAIL_SUBJECT: 'Nuovo commento su %1$s' + NEW_COMMENT_EMAIL_BODY: '

Un nuovo commento รจ stato postato su %1$s da %3$s (%4$s).

Pagina: %2$s

Testo: %5$s

' + EMAIL_FOOTER: '' + NAME: Nome: + EMAIL: Email: + WRITTEN_ON: Scritto il + BY: da diff --git a/templates/partials/comments.html.twig b/templates/partials/comments.html.twig index 842a6eb..acc651c 100644 --- a/templates/partials/comments.html.twig +++ b/templates/partials/comments.html.twig @@ -99,8 +99,8 @@ $(function() {
- Name: - Email: + {{'PLUGIN_COMMENTS.NAME'|t}} + {{'PLUGIN_COMMENTS.EMAIL'|t}} {% if use_captcha %}
{% endif %} @@ -110,7 +110,7 @@ $(function() { {% if grav.twig.comments|length %} -

Comments

+

{{'PLUGIN_COMMENTS.COMMENTS'|t}}

{% for comment in grav.twig.comments|array_reverse %} @@ -118,7 +118,7 @@ $(function() { {% endfor %}
{{comment.text|e}}
- Written on {{comment.date|e}} by {{comment.author|e}} + {{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} {{comment.author|e}}