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)

Views


Although the Views module is not in Drupal core (yet!), pretty much every Drupal site uses Views to create custom content pages, blocks, feeds, and so on. We can use Views' built-in language support along with help from the Internationalization Views module to update or add views for a multilingual website. For each view, we'll need to decide if we want one view that handles multiple languages or multiple views, each handling one language. I'll assume you know how to use Views for this section.

Multilingual views

Let's start out with making a view that handles multiple languages:

  1. 1. First create or edit a view. For now, only work with nodes that use the node translation model. We'll look at field-translated nodes a bit later. For example, the demo site has an articles view that shows up on the News page (for example, Structure | Views | Articles).

  2. 2. Click on the add link in the Filter criteria section, and then search for "language" and you'll see a filter for Content translation...