/[Apache-SVN]
ViewVC logotype

Revision 1056497


Jump to revision: Previous Next
Author: jleroux
Date: Fri Jan 7 20:40:31 2011 UTC (13 years, 3 months ago)
Changed paths: 28
Log Message:
3 patches from Sascha Rodekamp "Localisation of labels in javascript" (https://issues.apache.org/jira/browse/OFBIZ-3964) - OFBIZ-3964

This cames from Adam's advice: http://markmail.org/message/kai5lfvlnsz7xwki

Sascha comes to this solution
The Idea is to have a method which takes a JSON Object with uiLabel Resources and label entries and returns the resolved labels in a JSON Object which can be used directly in the JS Code.
The advantage of this way, is that we have only one Ajax request which reads all labels. The alternative is an Ajax request for each label, which simplify the request (because you haven't to create a complex JSON Object) but is very expansive.

* Replaces all JS alerts with the new fancy error boxes
* Adds a few uiLabels

I simply fixed some typos. I did not test all cases but did a good review.

Changed paths

Path Details
Directoryofbiz/trunk/applications/content/config/ContentUiLabels.xml modified , text changed
Directoryofbiz/trunk/applications/content/data/TemplateData.xml modified , text changed
Directoryofbiz/trunk/applications/content/webapp/content/content/ContentNav.ftl modified , text changed
Directoryofbiz/trunk/applications/content/webapp/content/content/DisplayContentNav.ftl modified , text changed
Directoryofbiz/trunk/applications/content/webapp/content/content/nav.ftl modified , text changed
Directoryofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl modified , text changed
Directoryofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSNav.ftl modified , text changed
Directoryofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/javascript.ftl modified , text changed
Directoryofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl modified , text changed
Directoryofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl modified , text changed
Directoryofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/productdetail.ftl modified , text changed
Directoryofbiz/trunk/applications/party/webapp/partymgr/js/PartyProfileContent.js modified , text changed
Directoryofbiz/trunk/applications/product/webapp/facility/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl modified , text changed
Directoryofbiz/trunk/framework/common/config/CommonUiLabels.xml modified , text changed
Directoryofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java modified , text changed
Directoryofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml modified , text changed
Directoryofbiz/trunk/framework/common/webcommon/includes/geolocation.ftl modified , text changed
Directoryofbiz/trunk/framework/example/config/ExampleUiLabels.xml modified , text changed
Directoryofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml modified , text changed
Directoryofbiz/trunk/framework/images/webapp/images/fieldlookup.js modified , text changed
Directoryofbiz/trunk/framework/images/webapp/images/selectall.js modified , text changed
Directoryofbiz/trunk/specialpurpose/ecommerce/config/EcommerceUiLabels.xml modified , text changed
Directoryofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/cart/showcart.ftl modified , text changed
Directoryofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl modified , text changed
Directoryofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl modified , text changed
Directoryofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/profile.js modified , text changed
Directoryofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/checkoutreview.ftl modified , text changed
Directoryofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonCheckoutReview.ftl modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26