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

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

The MessageManager provides system messages only. So the the local resolving 
follows this rule
- user language (the langues defined in the user dialog)
- system default language

To solve that we could introduce a getMessages(bundle) method in 
i18nContentSupport which uses the rules defined by the content support

But there is no intelligence which can tell automatically what should be used 
(system or content local resolving). How ever we 'fix' that we must ensure that 
it doesn't  break the other mechanism. Otherwise we jitter from one to the 
other fix.

> 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: Gregory Joseph
>            Assignee: Boris Kraft
>             Fix For: 3.6
>
>
> 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