Book Image

Drupal 7 Multilingual Sites

By : Kristen Pol
Book Image

Drupal 7 Multilingual Sites

By: Kristen Pol

Overview of this book

Drupal is one of the most powerful and popular PHP Content Management Systems at the moment. By making your site multilingual, you are opening the door to a whole new user base, in as many countries as you like. Use the localization and internationalization features of Drupal 7 to automatically detect where your site users are visiting from and select the content appropriate to them. The world is your oyster!Drupal 7 Multilingual Sites guides you through the wild world of localization and internationalization with practical and real-world exercises that you can apply to your own website. You will go from theory to practice and acquire the skills you need to make a user-friendly Drupal 7 site that supports multiple languages.You will follow focused chapter exercises to add multiple-language support for your user interface, content, and various parts of your site's configuration such as system variables, menus, and blocks.The latter half of the book fills in the details with step-by-step exercises for localizing the interface, the content, and the configuration. Drupal 7 Multilingual Sites will give you the knowledge and the skills necessary to configure your site to support your language needs.
Table of Contents (13 chapters)

Working with languages


If we want a multilingual site, the logical first step is to add more languages! In this section, we will add languages to our site, configure how our languages are detected, and set up ways to go between these languages.

Adding languages with the Locale module

Drupal has language support built into the core, but it's not fully turned on by default. If you go to your site right now and navigate to Configuration | Regional and language, you will see the Regional settings and Date and time config pages for configuring default country, time zone, and date/time formats:

  1. 1. To get our languages hooked in, let's enable the core module, Locale. Now go back to Configuration | Regional and language to see more options:

  2. 2. Click on Languages and you'll see we only have English in our list so far:

  3. 3. Now let's add a language by clicking on the Add language link. You can add a predefined language such as German or you can create a custom language.

  4. 4. For our purposes, we will work...