Localizing the sentences in the coupons and pricing rules screens

Sterling Business Center enables users to localize the sentences that are displayed in the screens pertaining to coupons and pricing rules.

However, the following must be considered when localizing a sentence that is displayed in the user interface (UI):

  • Translation of the literals in a sentence. Each literal has a corresponding bundle key in the sbcbundle.js file.
  • Sequence of the components in a sentence. The sequence of the components in a sentence is defined by the language of the corresponding locale such that the sentence is grammatically correct. The corresponding bundle keys are placed in the sbcsentence_bundle.js file.

For example, consider the way in which the sequence of components pertaining to a sentence exist for a Combination type coupon under the Conditions tab in the Coupon Details screen:

A condition screen with an order containing either any or all of the following items

When this sentence is localized, the order of the labels and the radio button may change for example, Label 2, may be followed by Label 1, which may in turn be followed by Radio button. In such a situation, the correct sequence of this sentence is fetched from the sbcsentence_bundle.js file. The bundle entries in the sbcbundle.js file corresponding to this example are defined as:

"b_OrderContains": "The order contains",

"b_any": "any",

"b_all": "all",


"b_followingItems": "of the following items:

The out-of-the-box sentence bundle entry corresponding to this sentence is as follows:


"b_OrderItemKey":"{%sbcOrderContains}{%sbcpanelComb}{%sbcFollItems}"

Here, b_OrderItemKey is the key and {%sbcOrderContains}{%sbcpanelComb}{%sbcFollItems} is the value of this key.

The values in the sbcsentence_bundle.js file are the unique identifiers (sciId properties) of the sentence components in a particular sequence. The following table lists the sciId properties defined for the screen components corresponding to this sentence:

Screen Component
sciId Property
The order contains
sbcOrderContains
combination box
sbcpanelComb
of the following items:
sbcFollItems

To localize this sentence in the language that is specific to a required locale, perform the following tasks:

  • Modify the value of the b_OrderItemKey key in the sbcsentence_bundle.js file.
  • Translate the values of the b_OrderContains, b_any, b_all, and b_followingItems keys in the sbcbundle.js file.

Label 2

Label 1

Radio Button