Configuring a Feed Handler for Other Languages

Ensure that the sample API works correctly for your locale when using handlers that have been built from RAP publisher APIs.

  1. Generate ja_JP.properties files in the appropriate format:
    Component type Generated format
    C++ based components (publishers, subscribers) UTF8
    Java based components (OpsConsole, UAF agents) ASCII
  2. Create an environment variable RAP_LOCALE=<locale>, where <locale> is ja_JP or en_US.
  3. Create a directory $PublisherDir/lang, where $PublisherDir is the directory of your sample.
  4. Copy files into $PublisherDir/lang, according to your RAP_LOCALE value:
    RAP_LOCALE value Files to copy into /lang
    ja_JP
    • publisher_ja_JP.properties
    • templateprocessor_ja_JP.properties
    • util_ja_JP.properties
    en_US
    • publisher_en_US.properties
    • templateprocessor_en_US.properties
    • util_en_US. properties
    Note: You can find the en_US properties files under any of the other handler or subscriber directories (for example, FASTFeedHandler/lang)