Drupal CMS for Multilingual Websites

July 01, 2014

Drupal is a free and open source content management system (CMS) based on PHP and MySQL. It's a scalable, robust and extensible application that provides a rich plug-in architecture and a template system.

It was first released in January, 2001 by its founder Dries Buytaert. The purpose of Drupal was to enable others to use and extend the experimentation platform so that more people could explore new paths for development. The name Drupal, pronounced droo-puhl, derives from the English pronunciation of the Dutch word druppel, which means "drop."

Drupal-website-translationThe most recent and recommended release at the time of writing is version 7.26, released on January 15, 2014. As of April, 2014, version 7.26 had 316,203 users.

In this blog, we will discuss using Drupal to support and manage multiple language websites. This will be the first post in a three-post series.

Preparing to support a multilingual website

Drupal includes the basic fundamentals needed to support websites in multiple languages out of the box. These features are made available as modules.

The following is a list of the out-of-the-box modules which must be enabled to support multiple languages within Drupal:

  1. Locale - Adds language handling functionality and enables the translation of the user interface to languages other than English.
  2. Content translation - Allows content to be translated into different languages.

To enable these modules, follow the steps outlined below:

  1. Go to Modules - To access the Modules section of the Drupal administrative area, simply click on the Modules link at the top of the screen as shown below:
    Drupal languages
  2. Check the box for both Locale and Content translation.
  3. Click Save configuration.

Enabling languages on content types

When you create content, the content's type must have multilingual support enabled before you can associate the content with an installed language. You must enable this feature for each of the installed content types on your site.

To enable translations for a content type:

  1. Go to Structure > Content types.
  2. Click the edit link next to the content type for which you are adding multilingual support.
    enable language drupal
  3. Click the Publishing options tab.
  4. Under the Multilingual support section, select Enabled, with translation option.
    3
  5. Click the "Save content type" button

Once you have enabled multilingual support on your content types, you will notice a translation tab that is now available. This tab allows you to track all translation for any of your content types. In addition to the translation tab, a field is added to this content type that allows you to choose the language it is written in.

Selecting and switching between languages

Once you have enabled the languages for your site and configured your content to show in these languages, the final step involves providing a way for your website users to see your site in the language of their choice.

Fortunately Drupal makes this process simple and gives you several different options. You can configure your website to display visitors' preferred languages based on their browser settings, IP address, URL parameter, or you can let visitors select their language manually via a language switcher.

Language detection mechanisms

Use the Detection and selection page to provide different language options to visitors based on criteria that you select.

To configure your website to take advantage of automatic language switching:

4

  1. Go to Configuration > Languages.
  2. Select the Detection and selection tab.
  3. Configure how your website responds to site visitors and how languages are displayed by enabling and configuring the following options:
    1. URL - Determine the language from the URL (path prefix or domain). For example, the ISO language code for Spanish is ES:
      • A path prefix configuration - http://[example]/es/about-us.
      • A path domain - http://es.[example]/about-us.
    2. Session - Determine the language from a request/session parameter. For example, use of the Language switcher creates a session parameter for the visitor.
    3. User - Follow the user's language preference. For example, the user's account language preference.
    4. Browser - Determine the language from the browser's language settings.
    5. Default - The default site's language that should be used for content.
  4. Click Save configuration.

The language your visitor will see is based on your settings and the list of languages you installed.

Using the language switcher

When you enabled the Locale module earlier, it also enabled the Language switcher block. This language switcher block presents website viewers with a collection of links based on the languages enabled on the website. As such, users can now manually select and switch between each of the languages for your site.

To enable the Language switcher, use the following steps:

  1. Go to Configuration > Languages.
  2. Click the Detection and selection tab
  3. Select Session.
    5
  4. Click Save settings.
  5. Go to Structure > Blocks.
  6. In the Disabled section, choose the Language switcher (User interface text) block, and select the region where it should be shown.
    6
  7. Click Save blocks.

The Language switcher block is now active and displays links to each of the languages on your site. When visitors click these links, the site switches to the selected language, changing all of the content and interface options for which translations are available.

GPI Resources on Multilingual CMS and Translation

GPI offers custom CMS translation services connectors to a variety of web content management systems and client relationship management systems in order to streamline localization workflows and access to translation project information across your enterprise. For more information, check Translation Services Plugins and Connectors.

You may find some of the following articles and links useful:

Globalization Partners International (GPI) frequently assists customers with multilingual website design, development and deployment, and has developed a suite of globalization tools to help you achieve your multiple language project goals. You can explore them under the Translation Portals link on our website. GPI also offers globalization consulting services and internationalization, and can evaluate your application. Consider partnering with GPI prior to localizing or translating your application. This will help you avoid many mistakes and save considerable time and money on your localization projects.

Contact GPI for more information via e-mail at info@globalizationpartners.com, by phone at (866) 272-5874, or by requesting a free web translation quote on your project.

Category:
Content Management Systems
Tags:
Drupal, CMS, Multilingual CMS, Website Translation

Insights Into IRCE 2014Top Practices for Hotel Search Engine Marketing

Comments

Currently, there are no comments. Be the first to post one!