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
