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.

About this task

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:
  • formatDate($localeCode,$Date): Formats the date per locale. For example, to localize the Proposal Date, use formatDate($localeCode,$proposalDate)
  • 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 formatNumber($localeCode,$orderQuantity)
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:

Procedure

  1. Navigate to the Manage Proposal Templates screen. To navigate to the Manage Proposal Templates screen perform the following steps:
    1. Log in to Sterling Business Center as an Enterprise Administrator.
    2. From the System Setup homepage, expand the Quote menu and click Manage Proposal Templates.

      The Manage Templates screen is displayed.

  2. The available templates for a document type (quote) are displayed in the Templates panel.
  3. 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.
  4. From the Related Tasks panel, click Localize to create a locale specific style sheet.
  5. Specify the following in the Style Sheet panel to create a style sheet for a different locale. Fields marked with ’*’ are mandatory.
    1. Select a locale from the Select Locale drop-down list.
    2. Provide a meaningful name for the style sheet in the Style Sheet Name box, in the language of the selected locale.
    3. Enter a description for the style sheet in the Style Sheet Description box. Enter the description in the locale specific language.
    4. 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.
  6. Click Save to save the new locale specific style sheet for the selected template.

Results

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.