Hi Scott,
I revisited this and indeed I really missed something at r886723 (in trunk some months ago). I tried a fix at r960336, but I can't
easily test it
Could you please check if it's OK for you now?
I did not check yet but maybe I will have to merge improvements in jQuery branch. I put a comment in
https://issues.apache.org/jira/browse/OFBIZ-3830
Thanks
Jacques
Scott Gray wrote:
As a side note, this approach to i18n for the calendar doesn't work very well,
the browser reports 404 errors when trying to
retrieve localization scripts. Ideally we'd check if the file exists before
telling the browser to use it.
Regards
Scott
HotWax Media
http://www.hotwaxmedia.com
On 2/07/2010, at 7:41 PM, er...@apache.org wrote:
Author: erwan
Date: Fri Jul 2 07:41:13 2010
New Revision: 959894
URL: http://svn.apache.org/viewvc?rev=959894&view=rev
Log:
Improvement on OFBIZ-3830 - i18n for jQuery calendar
Modified:
ofbiz/branches/jquery/framework/common/widget/CommonScreens.xml
Modified: ofbiz/branches/jquery/framework/common/widget/CommonScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/jquery/framework/common/widget/CommonScreens.xml?rev=959894&r1=959893&r2=959894&view=diff
==============================================================================
---
ofbiz/branches/jquery/framework/common/widget/CommonScreens.xml (original) +++
ofbiz/branches/jquery/framework/common/widget/CommonScreens.xml Fri Jul 2
07:41:13 2010 @@ -117,6 +117,8 @@ under the License.
<set field="layoutSettings.javaScripts[+0]"
value="/images/jquery/ui/js/jquery-ui-1.8.2.custom.min.js"
global="true"/> <set field="layoutSettings.javaScripts[+0]"
value="/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-0.5.js"
global="true"/> <set
field="layoutSettings.javaScripts[+0]"
value="/images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js" global="true"/> +
<set field="initialLocale" type="String"
value="${parameters.userLogin.lastLocale}"
default-value="${groovy:locale.toString()}"/> + <set
field="layoutSettings.javaScripts[+0]"
value="/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-${initialLocale}.js"
global="true"/>
<set field="layoutSettings.javaScripts[+0]"
value="/images/jquery/jquery-1.4.2.js" global="true"/> <set
field="layoutSettings.javaScripts[]" value="/images/selectall.js" global="true"/> <set
field="layoutSettings.javaScripts[]"
value="/images/fieldlookup.js" global="true"/> @@ -316,6 +318,7 @@
under the License. <set
field="layoutSettings.javaScripts[+0]"
value="/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-0.5.js"
global="true"/> <set
field="layoutSettings.javaScripts[+0]"
value="/images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js" global="true"/>
<set field="initialLocale" type="String"
value="${parameters.userLogin.lastLocale}"
default-value="${groovy:locale.toString()}"/> + <set
field="layoutSettings.javaScripts[+0]"
value="/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-${initialLocale}.js"
global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.4.2.js"
global="true"/> <set
field="layoutSettings.javaScripts[]" value="/images/selectall.js" global="true"/> <set
field="layoutSettings.javaScripts[]"
value="/images/fieldlookup.js" global="true"/>