Revision as of 15:24, February 27, 2013 by Jumunn (talk | contribs) (Add Localization Files to Your Web Engagement Application)
Jump to: navigation, search

Add Localization Files

DevGuide2.png Purpose: To add Localization Files to your Web Engagement application.

The localization files must be compliant with jquery.localize.js, a jQuery plugin that makes it easy to i18n your static web site. See the official website for further information on jquery-localize.

Add Localization Files to Your Web Engagement Application

DevGuide2.png Purpose: To enable additional languages for internationalization on your web engagement widgets.

Start

  1. Open the Web Engagement Installation folder and navigate to the app/[application name]/frontend/src/main/webapp/locale directory. This folder contains the localization resources for each widget:
    • registration-<lang>.json for the registration form displayed to anonymous users.
    • chat-<lang>.json for the chat invite.
    • callback-<lang>.json for the callback invite.
  2. To add a new supported language <lang> for these widgets, where <lang> is the short locale name of the language (en, fr, ru etc.) or full locale name in IETF (en-US, fr-FR), follow these steps:
    • Create a copy the <name of the widget>-en.json locale file.
    • Rename it to: <name of the widget>-<lang>.json.
    • Edit <name of the widget>-<lang>.json and replace all the text values with their translation.
    • Save.
  3. To deploy these localization files:

End

Comments or questions about this documentation? Contact us for support!