Localizing Sterling Business Center resource bundles
The user interface components in the Sterling™ Business Center application use resource bundles that contain all the static literals displayed throughout the application.
After a third-party performs translation in multiple languages, a folder
corresponding to each of the locales, and comprising the corresponding bundle files, is generated.
For example, if a locale has been created for Japan in Japanese language, a folder called
ja\JP is generated. In addition, the literals that are used in customized screens
and have their own resource bundles, are also considered during the localization process.
A resource bundle is a file that comprises resource bundle keys and corresponding values. The values pertaining to these resource bundle keys are also translated as part of localization. Each field in the user interface has a key associated with it. To display the translated literal for a field in the user interface, the localized value of the key associated with the field is fetched from the bundle file.
Use the following files to localize the Sterling Business Center application:
bundle-index.propertiesYou can use this file to localize the following:
- Error and warning messages displayed on the user interface
- Descriptions pertaining to labels, panels, and headings in the user interface
- Sentences displayed in the user interface. For more information about localizing sentences, refer to the topic, “Localizing the Sentences in the Coupons and Pricing Rules Screens”.
- Dynamic data within a literal. For example, the user interface may have to display a literal that informs a user that an input value cannot exceed a certain number of characters, and that the number of characters is dynamic. In this case, if the maximum character length for a description is set at 428 characters, 428 is the value of the parameter. The corresponding bundle entry is defined as "b_MaxCharLengthExceeded":"The value cannot exceed {0} characters”.
sbcbundle.propertiesYou can use the
sbcbundle.propertiesfile to localize entities such as menu entries, related tasks, and advanced search criteria. Thesbcbundle.propertiesfile is located in the<INSTALL_DIR>/resources/folder.
The resource bundles can be categorized as server-side
bundles and client-side bundles. The server-side bundles pertain to
the data that is localized at the application server, and are stored
in the sbcbundle.properties file. For example, the
options displayed in the menu are localized by the server-side bundles.
The client-side bundles pertain to the data that is localized at the
client-side. The client-side resource bundles are stored in bundle-index.properties file.
For example, the labels on the user interface are localized by the
client-side resource bundles.