[ 
https://issues.apache.org/jira/browse/OFBIZ-4051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969762#action_12969762
 ] 

Jacques Le Roux commented on OFBIZ-4051:
----------------------------------------

Sascha, Erwan,

I had a quick look. As, like jQuery UI, elrte editor uses also the 
language.country couple, please check that we don't nee to use something like 
the snippet I have introduced for the calendar 

<set field="initialLocaleComplete" type="String" 
value="${groovy:parameters?.userLogin?.lastLocale}" 
default-value="${groovy:locale.toString()}"/>
<set field="initialLocale" type="String" 
value="${groovy:parameters?.userLogin?.lastLocale?.substring(0,2)}" 
default-value="${groovy:locale.toString()?.substring(0,2)?:'en'}"/>
<set field="localeFileNameComplete" type="String" 
value="/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-${initialLocaleComplete}.js"/>
<set field="localeFileNameComplete" type="String" value="${groovy: 
localeFileNameComplete.replace('_', '-')}"/> <!-- those files are build this 
way OOTB (ie a - not a _ between language and country -->
<set field="fileNameComplete" type="String" value="${groovy: 
org.ofbiz.base.location.FlexibleLocation.resolveLocation('component://images/webapp'
 + localeFileNameComplete)}"/>
<set field="localeFileName" type="String" 
value="/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-${initialLocale}.js"/>
<set field="localeJsFile" type="String" value="${groovy: fileNameComplete ? 
localeFileNameComplete : localeFileName}"/>
<set field="layoutSettings.javaScripts[+0]" value="${localeJsFile}" 
global="true"/>

>From elrte.zh_TW. I suppose that the *replace('_', '-')* trick should not be 
>needed

Thanks

> i18n for elrte editor
> ---------------------
>
>                 Key: OFBIZ-4051
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4051
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: ALL COMPONENTS
>    Affects Versions: jQuery
>            Reporter: Erwan de FERRIERES
>            Assignee: Erwan de FERRIERES
>            Priority: Minor
>             Fix For: jQuery
>
>         Attachments: elrte_i18n.patch, elrte_i18n.zip
>
>
> elrte editor has its i18n files included in the archive

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to