cancel
Showing results for 
Search instead for 
Did you mean: 

Select language from a parameter

pcb
Champ in-the-making
Champ in-the-making
Hello,

I'd like to configure Share MMI language with anything else than the browser "Accept-Language" property. Is there a way to do it ?

I discovered that this file share/WEB-INF/classes/alfresco/templates/org/alfresco/include/alfresco-template.ftl contains the language information at line 101 :
<#– NOTE: Do not attempt to load -min.js version of messages.js –>
   <script type="text/javascript" src="${url.context}/service/messages.js?locale=[b]${locale}[/b]"></script>

But I don't know how to alter the value passed to the template…
1 REPLY 1

pcb
Champ in-the-making
Champ in-the-making
I've overridden DispatcherServlet class to implement another language selection.

I think it could be integrated in next features development as it is a main customization request for integrators.
My case study was : Share is embedded in a Liferay portal. Authentication is processed at portal level at the same time than language selection. So I needed to transmit this parameter to Share…