Cert++
Close

Localizable attributes on system and custom objects

Key Takeaway

A localizable attribute holds a value for each locale. B2C Commerce reads the value for the request's locale and uses locale fallback when that value is missing.

In B2C Commerce, translations live on the business objects themselves. A product description, for example, can hold a different value for each locale. When a page needs that value, B2C Commerce picks the one for the request's locale. If that value is missing, it falls back to another locale. Because of this design, storefronts in different languages can share one set of products and catalogs.

Locales and localizable attributes

Every request runs in a locale, such as default, en or en_US. The request's locale drives the lookup of resources in both the file system and the database. A single-language installation always has a locale named default.

A localizable attribute is an attribute on a business object, such as a product description, that can hold a value for each locale. B2C Commerce reads the value for the current request's locale. Business objects in B2C Commerce are localizable, from catalogs and products down to their attributes. So a US storefront and a Spanish storefront can use the same underlying business objects.

When products differ by country, you can instead keep unique catalog data for each locale.

B2C Commerce Developer Study Guide

Checklist progress

0/237Learned

Given localization requirements, implement and enhance templates, form definitions, static files, properties files, and persistent object attributes to ensure that pages are displayed in the expected language

0/8

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other B2C Commerce Developer studiers. 796 members and growing.