Create a Locale Specific Style Sheet
After you create a new style sheet for the selected document type and the print template, you can customize the new style sheet for different locales.
You can add, modify or delete elements of the XSL as required. However, to customize the date and numeric values, you must use the following functions in the XSL:
About this task
formatDate($localeCode,$Date): Formats the date per locale. For example, to localize the Proposal Date, use
formatNumber($localeCode,$number): Formats the number per locale. This is useful in defining locale specific decimal separators that are used in numeric values. For example, to localize the order quantity, use
Note: Each style sheet must correspond to a unique locale. For example, a ’German’ locale can consist of only one style sheet for ’German’.
To create a locale specific style sheet, perform the following steps:
- Navigate to the Manage
Proposal Templates screen. To navigate to the Manage
Proposal Templates screen perform the following steps:
- Log in to Sterling Business Center as an Enterprise Administrator.
- From the System Setup homepage, expand the Quote menu
and click Manage Proposal Templates.
The Manage Templates screen is displayed.
- The available templates for a document type (quote) are displayed in the Templates panel.
- From the Templates panel, select the print template for which you want to create a locale specific style sheet. The details of the style sheet are displayed in the Style Sheet panel.
- From the Related Tasks panel, click Localize to create a locale specific style sheet.
- Specify the following in the Style Sheet panel to
create a style sheet for a different locale. Fields marked with ’*’
- Select a locale from the Select Locale drop-down list.
- Provide a meaningful name for the style sheet in the Style Sheet Name box, in the language of the selected locale.
- Enter a description for the style sheet in the Style Sheet Description box. Enter the description in the locale specific language.
- Provide the XSL to suit locale specific requirements in the Style Sheet text box. For example, you can add proposal headings to be displayed in the locale specific language or remove some attributes from the proposal. You can either copy and paste the XSL contents from another source or type it in the box directly.
- Click Save to save the new locale specific style sheet for the selected template.
The new locale specific style sheet appears in the Templates panel under the print template for which, it was created. Details of the new localized style sheet are displayed in the Style Sheet panel.