Siebel Chat Guide > Customizing Siebel Chat > Modifying the Spelling Checker for Siebel Chat >

Customizing the Language Mappings for Siebel Chat Spelling Checker


The default language for Siebel Chat spelling checker is determined by the RequestSiteID field in the service request, which is a configurable business component field. The RequestSiteID field refers to the site or country to which the customer is affiliated. For example, if a German user starts a chat session with an agent, the RequestSiteID field has a value of 77.

The language mappings for Siebel Chat spelling checker are defined in the GetLanguageCodeFromMapping script method inside the Service_PreInvokeMethod in the Chat UI Business Service. An example Service_PreInvokdMethod follows:

function Service_PreInvokeMethod (MethodName, Input*, Output*)

{

   if (MethodName == "GetLanguageCodeFromMapping")

   {

      var sRequestSiteID = "";

      sRequestSiteID = Inputs.GetProperty("RequestSiteID");

      switch(sRequestSiteID)

      {

           case "0"

              Outputs.SetProperty ("LanguageCode", "ENU");

              break;

           case "101"

              Outputs.SetProperty ("LanguageCode", "ITA");

              break;

           case "71"

              Outputs.SetProperty ("LanguageCode", "FRA");

              break;

           default:

             Outputs.SetProperty ("LanguageCode", "ENU");

             break;

      }

      return CancelOperation;

   }

   return (ContinueOperation);

}

The Service_PreInvokeMethod has the following input and output parameters respectively:

  • RequestSiteID (Input). This is the language code or ID associated with the site or customer requesting the chat.
  • LanguageCode (Output). This is the language code mapping for RequestSiteID.

You can modify and add new language mappings for a customer as required by editing the GetLanguageCodeFromMapping script method, provided that the language is supported by Siebel Chat spelling checker. Use the following procedure to customize the language mappings for Siebel Chat spelling checker.

To customize the language mappings for Siebel Chat spelling checker

  1. Start Siebel Tools.
  2. Click the Chat UI Business Service object in the Tools Object Explorer, then the Service_PreInvokeMethod.
  3. Go to the switch(sRequestSiteID) section, and modify or add new language mappings as required.

Table 16 lists the languages that are currently supported by Siebel Chat spelling checker. Supported languages are defined in the SPELLCHECK_LANG LOV (list of values).

Table 16. Supported Languages for Siebel Chat Spelling Checker
Language Code
Language

ENU

English-American

ENUL

English-US-Legal

ENUM

English-US-Medical

Dan

Danish

NLD

Dutch

ENG

English-British

ENGL

English-UK-Legal

ENGM

English-UK-Medical

FIN

Finnish

FRA

French-France

FRB

French-Canadian

DEU

German

ITA

Italian

PDG

Portuguese-Iberian

PTB

Portuguese-Brazil

ESP

Spanish-Spain

ESN

Spanish-American

SVE

Swedish

NOR

Norwegian

Siebel Chat Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.