MESSAGES File

Profile retrieves the message file based on the language of the user. Within the data directory, Profile checks the msgs directory for a directory that corresponds to the language of the user (e.g., fr-ca). Within that directory, it looks for a file named portal.xml.

If Profile fails to find a directory corresponding to the language of the user, it reads the portal.xml from the data/msgs/en-us directory. It will then give a warning message in the STATUS section indicating that it could not find the specified language file.

Note: The language referred to here is not the language that is returned in Profile’s ATTRIBUTES section.

Caching

To improve performance, the first time Profile reads the portal.xml file corresponding to a particular language, it caches it. Prior to reading any of the portal.xml files, Profile checks the timestamp and updates the cache as necessary.