[ 
http://jira.magnolia.info/browse/MAGNOLIA-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15990#action_15990
 ] 

Philipp Bracher commented on MAGNOLIA-2097:
-------------------------------------------

The problem comes from the fact that the FreemarkerHelper is used for rendering 
the admin GUI (tree, edit bars,..). In that case it is absolutely correct to 
use the current user's local retrieved by MgnlContext. There is currently no 
solution to use the FreemarkerHelper with the content local (the local set on 
the aggregation state). We would have to introduce a new mechanism by providing 
a local resolver or an optional parameter.

Example: A German user is editing the English content will see the green bars 
in German but English content 

> i18n: MgnlContext.setLocale() is never used while FreemarkerHelper depends on 
> it
> --------------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-2097
>                 URL: http://jira.magnolia.info/browse/MAGNOLIA-2097
>             Project: Magnolia
>          Issue Type: Bug
>    Affects Versions: 3.5.4
>            Reporter: Grégory Joseph
>            Assignee: Boris Kraft
>
> In the DefaultI18nContentSupport, we get/set the locale on the 
> AggregationState. FreemarkerHelper determines the Locale based on the 
> MgnlContext.getLocale(). As a consequence, emails sent with freemarker when 
> no user is logged in are always sent with the anonymous' user's locale 
> instead of whatever the current locale is, as determined by the 
> I18nContentSupport.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to