From 793d50efbcd833010f63451f63c76b0281ef9444 Mon Sep 17 00:00:00 2001 From: Baptiste Cabarrou Date: Thu, 4 Jun 2015 16:23:17 +0200 Subject: [PATCH] Do not change default translation domain in hooks It is not local to the current file and will break translations for the rest of the page. --- .../frontOffice/default/ajax-comments.html | 21 +++++++++---------- templates/frontOffice/default/comment.html | 7 +++---- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/templates/frontOffice/default/ajax-comments.html b/templates/frontOffice/default/ajax-comments.html index 162b212..08dd3c2 100644 --- a/templates/frontOffice/default/ajax-comments.html +++ b/templates/frontOffice/default/ajax-comments.html @@ -1,4 +1,3 @@ -{default_translation_domain domain='comment.fo.default'} {$locale={lang attr="locale"}} {$customer_id={customer attr="id"}} @@ -27,7 +26,7 @@ {$image="http://www.gravatar.com/avatar/{$EMAIL|trim|strtolower|md5}?d=mm&s=64"} {/loop} {elseloop rel="customer"} - {$username={intl l="Anonymous"} } + {$username={intl d="comment.fo.default" l="Anonymous"} } {$image={image file='assets/img/avatar.png'}} {/elseloop} {else} @@ -39,7 +38,7 @@

- {intl l="By %username" username={$username}} + {intl d="comment.fo.default" l="By %username" username={$username}} {if $RATING}{comment_stars value=$RATING}{/if}

{$TITLE}

@@ -49,12 +48,12 @@

{$TITLE}