Removing Unneeded Locale Keys

Preventing unused locales from loading increases the speed that WCC applications load, especially over slow connections, such as Wide Area Networks (WANs) and Virtual Personal Networks (VPNs).

Procedure

  1. Open the locale.xml file.

    If you are opening this file for a WCC application in your development environment, it is located in the following directory:

       StudioHome\wcc\version\JSXAPPS\WCCProjectName\JSXAPPS\base\locale

    where:

    • StudioHome is the directory in which TIBCO Business Studio was installed.
    • version is the version number of Workspace that was installed with TIBCO Business Studio.
    • WCCProjectName is the name of the General Interface Builder project that contains your custom application. If you are working with the Workspace application, this is “workspace”.

      If you are opening the locale.xml file for the Workspace application that is deployed to the runtime node, see Location of Files on a BPM Runtime Machine for information about the location of the \JSXAPPS\base\locale directory on the runtime node.

  2. Locate the following line:

    <data jsxnamespace="propsbundle" locales="de,es,es_ES,es_MX,fr,fr_FR,fr_CA,id,ja,ko,pl,pt,pt_BR,ru,th,tr,vi,zh,zh_CN,zh_HK,zh_TW,en_GB">

  3. Remove all of the locale keys that you are not using from the locales attribute.

    For example, if your application is using only the various English and French locales, it should appear as follows:

    <data jsxnamespace="propsbundle" locales="fr,fr_FR,fr_CA,en_GB">

  4. Save and close the locale.xml file.
    Note: There is no need to delete any of the language-specific locale files that are not used.