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)

Blocks


Modules can provide blocks, or we can create simple ones ourselves. A block should be configured appropriately based on its content. We might have a block that is language-independent such as an image. Some blocks might only make sense for one language, for example an advertisement targeted at German users. Other block content, such as footer text or instructions, might be relevant for some or all languages. In this section, we'll configure blocks for different use cases including a block created by a module.

Language-specific blocks

For language-independent blocks, you don't need to do anything special. Just create your blocks as usual. But, if you have blocks that need to only show up for certain languages, you'll need the Block Languages module.

  1. 1. Install the Block Languages module from the Internationalization package (drupal.org/project/i18n) and go to Structure | Blocks | Add block.

  2. 2. Let's create a block that will only be shown for one language. Fill in the Block title, Block...