Hi Jacques,
My localized file is existing already. But system didn't change when I change
the language.
So I hardcode the file
From <set field="initialLocaleComplete" type="String"
value="${groovy:parameters?.userLogin?.lastLocale}"
default-value="${groovy:locale.toString()}"/>
To <set field="initialLocaleComplete" type="String" value="zh_CN"
default-value="${groovy:locale.toString()}"/>
I will try to find out the reason when I am more familiar with of biz.
Thanks,
Leon.Zhou
On Oct 12, 2013, at 8:25 AM, xxshutong <[email protected]> wrote:
> Hi Jacques,
> Many thanks, I will try when I am back home. I will update to you.
>
> Thanks,
> Leon.Zhou
>
> On Oct 12, 2013, at 12:33 AM, Jacques Le Roux <[email protected]>
> wrote:
>
>> This is normally done automatically. You simply need to add your own if it
>> misses. You might found it already exists on the Net.
>>
>> A bit explained: it's related to this block in
>> framework/common/widget/CommonScreens.xml
>>
>> <set field="initialLocaleComplete" type="String"
>> value="${groovy:parameters?.userLogin?.lastLocale}"
>> default-value="${groovy:locale.toString()}"/>
>> <set field="layoutSettings.javaScripts[+0]" value="${groovy:
>> org.ofbiz.common.JsLanguageFilesMapping.datejs.getFilePath(initialLocaleComplete)}"
>> global="true"/>
>> <set field="layoutSettings.javaScripts[+0]" value="${groovy:
>> org.ofbiz.common.JsLanguageFilesMapping.jquery.getFilePath(initialLocaleComplete)}"
>> global="true"/>
>> <set field="layoutSettings.javaScripts[+0]" value="${groovy:
>> org.ofbiz.common.JsLanguageFilesMapping.validation.getFilePath(initialLocaleComplete)}"
>> global="true"/>
>>
>> You will finally end with the createJsLanguageFileMapping service
>>
>> BTW, we maybe need to update jQuery plugins.
>> I will have a look and will create a repeating task in Jira.
>>
>> HTH
>>
>> Jacques
>>
>>
>> xxshutong wrote:
>>> Hi every ofbizer,
>>> In folder
>>> framework/images/webapp/images/jquery/plugins/datetimepicker/localization,
>>> there are many localized date pick JS
>>> library like jquery-ui-timepicker-en.js, jquery-ui-timepicker-ru.js…
>>>
>>> My question is how I can config to choose appropriate JS library?
>>>
>>> Thanks,
>>> Leon.Zhou
>