Customizing and Localizing Access Gateway Error Messages

When Access Gateway serves an error message to the browser by using the Accept-Language header value received from the browser, it selects a suitable error template and an error message file. To localize the error messages, you must to do the following:

The error messages contained in ErrorMessages.xml.en can be localized in various languages and stored as ErrorMessages.xml.<lang>, where <lang> is the fileXn attribute value. You can also customize the English error messages present in the ErrorMessages.xml.en file.

NOTE:You cannot customize an error message that is not available in ErrorMessages.xml.en.

To localize the error messages, perform the following steps:

  1. Open the Access Gateway ErrorMessages.xml.<lang> file.

    For information about how to open and modify a file, see Modifying Configurations.

  2. Copy the error messages that you have localized or customized to within the <TranslatedMessage></TranslatedMessage> tags.

    For example:

    </Message>
      <Message id="<ID No>" name="<ERROR_MESSAGE_NAME>" enable="yes">
        <EnglishMessage>English Message goes here</EnglishMessage>
    <TranslatedMessage>
    Localized message goes here
    </TranslatedMessage>
    </Message>

    Do not delete the contents within the <TranslatedMessage></TranslatedMessage> tags from an English file because, the ErrorPagesConfig.xml file selects the error message within these tags for display.