Documentation Center

Upgrading templates for publications in combined languages

A publication with combined languages needs extra maps, extra indexes and specific headers. This requires that you enable specific templates.

About this task

This task applies to restored databases from Content Manager 12.0.x.

Procedure

  1. Find and open the App\Database\InfoShareCM\Common\DatabaseIndependent\Examples\CreateModuleCombineLanguages directory in Content Manager home directory.
  2. Locate and run the CreateModuleCombineLanguages.ps1 script.

    The script will create a header topic ISHPUBLMODULECOMBINELANGUAGES in all languages that are available in the Content Manager database using the files located in \Web\Author\EnterViaUI\System\Publishing\Topics.

    For the Content Manager default two-letter language codes, the header topic is created using the matching file from \Web\Author\EnterViaUI\System\Publishing\Topics. For others language codes, the code is used as title. For example, from a ISHPUBLMODULECOMBINELANGUAGES=1=en-us.xml:
    <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd" []>
    <topic id="ISHPUBLMODULECOMBINELANGUAGES" xml:lang="en-us">
      <title>en-us</title>
      <body>
        <section></section>
      </body>
    </topic>
    

    During publishing the file ISHPUBLMODULECOMBINELANGUAGES=1=en.xml will create a section in the multi-language publication that will be labeled English (because en is a default code). On the other hand, ISHPUBLMODULECOMBINELANGUAGES=1=en-us.xml will create a section in the multi-language publication that will be labeled en-us.

  3. If you want to create a user-readable label for any non default language or language code, you can either:
    • Create the corresponding XML file and specify the label inside the <title> element before running the script.
    • Or edit the header topic created by the script after it has been run.