Documentation Center

Metadata Configuration

Modify the Web.config file parameters noted below to configure or customize the configuration of metadata.

The file is located on the Content Manager server: \InfoShare\Web\Author\ASP\Web.config.

Metadata configuration

The configuration is contained by the <metadataConfig> element.

<configuration>
  ...
  <trisoft.infoshare.xapi>
    ...
    <metadataConfig path="~/ClientConfig/MetadataConfig.xml" resourceDirectory="~/Resources/" baseName="DialogStrings" />
    ...
  </trisoft.infoshare.xapi>
  ...
</configuration>
baseName
The root name of the resource file without its extension and along with any fully qualified namespace name. For example, the root name for the resource file named Trisoft.Strings.en.xml is Trisoft.Strings.
path
Specifies the virtual path to the metadata configuration file (e.g. ~/ClientConfig/MetadataConfig.xml).
resourceDirectory
Specifies the virtual path to the directory where the resources are stored (e.g. ~/Resources/).
Remarks
TheresourceDirectory and baseName attributes provide convenient access to culture-specific resources. The resource manager looks up culture-specific resources and provides resource fallback when a localized resource does not exist.
You should create resources for at least a meaningful subset of the languages, ideally all languages. The resource file names follow the naming convention baseName.cultureName.xml, where
  • baseName is the name of the application or the name of a set of resources, depending on the level of detail you want,
  • cultureName is the culture name in the format languagecode2-country/regioncode2.
    • languagecode2 is a lowercase two-letter code derived from ISO 639-1.
    • country/regioncode2 is derived from ISO 3166 and usually consists of two uppercase letters, or a BCP-47 language tag.
The resource file for the neutral culture should be named baseName.xml.
For example, suppose that an application has several resources in a resource file with the baseName MyResources. These resource files will have names such as MyResources.ja-JP.xml, MyResources.de.xml, MyResources.zh-CHS.xml, or MyResources.fr-BE.xml, which contain resources respectively for Japanese, German, simplified Chinese, and French (Belgium). The default resource file should be named MyResources.xml.