Overview

Second Site has a tag label translation feature which is used to modify the tag labels stored in the TMG project before they are included on an output page. The facility was initially intoduced because old versions of TMG do not support non-English labels for some standard tag types. The feature was also useful because some tag labels are not optimal for web page output. For example, people browsing a site should see "Father" rather than "Father-Bio".

INI Files

Second Site's tag label translation values are set in INI files. The INI files are stored in the Defaults folder . The INI filenames vary by language, so "english.ini" is used when Language.Site Language is set to English, "dutch.ini" is used when Language.Site Language is set to Dutch, etc.

Entries in the file take the form:

label= newlabel

For example, from dutch.ini:

Father-Bio=  Vader

Second Site includes pre-built tag label translation files and so most users do not have to create or modify them.

Label Translation Process

At the start of the Make Site process, Second Site loads the tag labels from the TMG project. Loading a TMG tag label value involves two database fields:

  • the Default Label field, and
  • the Tag Properties field.

The Default Label text is in English for standard tags. For custom tags, the language is determined by the TMG user and so the Default Label may be in any language. The Tag Properties field may contain translations of the tag label in multiple languages, including English.

Second Site loads the tag label from the Default Label field. Then it searches the Tag Properties field, and if there is an entry for the current language as determined by Language.Site Language, Second Site resets the tag label to the translated value.

Second Site uses the resulting text as a lookup value for its tag label translation facility as described above under INI Files.

On This Page