Configuring the Web application for multilingual Web sites

If you have set up your BluePrint to have a multilingual Web site, you must configure your Web application cd_dynamic_conf.xml configuration file to specify the Publications available in each Web site.

About this task

For your Web application to understand how URL requests are mapped to SDL Tridion Publications, configure each language Publication in cd_dynamic_conf.xml.

Procedure

  1. Access the Content Manager Explorer Web site.
  2. Navigate to a Web site Publication and open Properties.
    Each Web site Publication for each language must have unique Publish URLs and Images URLs. For example:
  3. For each Publication, identify it as being a language version of the Web site you are creating by doing the following:
    1. Under Metadata Schema, select Publication Metadata.
      New settings appear.
    2. Under Site Identifier, enter a unique identifier that represents all language versions of this Web site, for example, the domain name (say example.com). Use the same identifier for all Publications.
    3. If this Publication is your master Publication, that is, if you use this Publication to, for example, publish your HTML design assets, select Yes. Out of all the Publications with the same site identifier, only one can be the master Publication.
  4. Localize configuration:
    1. Navigate to the /Building Blocks/Settings/Core/Site Manager/ Folder.
    2. Localize the Localization Configuration Component (in each language Publication).
    3. Open the localized Localization Configuration Component and set appropriate values set for:
      • culture—used for formatting culture specific content such as dates
      • language—this is shown in the site language selector, for example Español
  5. If you are working with SDL Tridion 2013 SP1, configure <Publication> elements for all Publications available in the Web site.
    1. Go to your Web application bin\config folder and open cd_dynamic_conf.xml in a text editor.
    2. Make your changes:
      <?xml version="1.0" encoding="UTF-8"?>
      <Configuration Version="7.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schemas/cd_dynamic_conf.xsd">
          <URLMappings>
              <StaticMappings>
                  <Publications>
                      <Publication Id="5">
                          <Host Domain="site.com" Protocol="http" Port="80" Path="/es"/>
                      </Publication>
                      <Publication Id="4">
                          <Host Domain="site.com" Protocol="http" Port="80" Path=""/>
                      </Publication>
                  </Publications>
              </StaticMappings>
          </URLMappings>
      </Configuration>
    3. Save and close cd_dynamic_conf.xml.
  6. In IIS, recycle your Web site Application Pool.
  7. Browse to your Web site to see the language selector appear in the site header (the values that appear in the site language are derived from the Localization Configuration Component language fields of configured Publications):