Globalized tools framework
As is the case with globalized stores in WebSphere Commerce, all tools pages are enabled for globalization. The globalization enablement of tools pages is accomplished through the use of a set of tools framework's functions and utilities.
All national language sensitive data is separated into properties files. Messages listed in the WebSphere Commerce documentation use the logging and message subsystem. All other text that is not placed in an ECException object and does not need any additional descriptions (such as field labels) is retrieved using the resource bundle handling classes provided by the tools framework. To allow for easy modification of fields, those classes access PropertyResourceBundle (.properties files) only and turn those bundles into hash tables. Some of the features that these classes provide are:
- Auto-reload of .properties, file if modified
- XML configuration
- Creating and using resource bundles in the tools framework
We can create and use resource bundles within the tools framework. For example, you create a resource bundle when creating a language selection list. A list selection determines the language, encoding, and cultural formatting preference of the user.- Creating a language selection drop-down list
- Formatting addresses and names in the tools
Address and name formatting in the WebSphere Commerce tools uses XML files to encapsulate the address or name format control information. The XML files hold the address or name control information such as what fields are required, the number of lines that constitute an address or name format, the sequence, and nature of address or name attributes that should be displayed on one line, and so on.- Address and name formatting in the tools
Address and name formatting in the WebSphere Commerce tools uses XML files to encapsulate the address or name format control information. The XML files contain address or name control information such as what fields are required, the number of lines that constitute an address or name format, the sequence and nature of address or name attributes that must display on one line, and so on.
Related tasks
Adding a currency to WebSphere Commerce
Address and name formatting in the tools
Creating a globalized store
Creating a new display format
Creating and using resource bundles in the tools framework
Currency and number formatting
Date and time formatting
Setting the dir attribute for bidi specifications
Encoding for e-mail transmission
Name and address formatting
Use resource bundles in store pages
Creating a language selection drop-down list
Formatting addresses and names in the tools
Related reference
Globalization tips