Book Image

Drupal 7 Cookbook

By : Dylan Spencer James
Book Image

Drupal 7 Cookbook

By: Dylan Spencer James

Overview of this book

<p>Drupal 7 is a modern Content Management System famed for its flexibility and power. Using Drupal you can easily create custom functionality that would otherwise have to be purchased in many of the other leading CMSs.<br /><br />"Drupal 7 Cookbook" is filled with recipes to help you to do more with Drupal and improve your skills. Chapters range from content creation, to theming, to managing your site. You will learn how to create your own content types and use them to create Views, Blocks, and Pages. This book will take you from novice to pro in just 12 chapters.<br /><br />In a wide variety of practical recipes, you will learn how to work with views and panels, how to provide translations for your content to create a multilingual site, and to integrate your site with social media. You can develop the Zen starter theme or learn how to create custom cross-browser compatible Drupal themes, including themes for mobile devices. The Drupal 7 Cookbook contains all of the means necessary to take your skills from those of a novice Drupal user to a proficient site builder.</p>
Table of Contents (18 chapters)
Drupal 7 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Installing another language using Locale


In this recipe, we will be enabling and configuring the Locale module that provides the multi-language translations functionality in Drupal. It also provides us with the ability to manage the translations of the interface. We will install the French language, and then configure the site so that it switches language when the language string in the URL changes.

Getting ready

To complete this recipe, please enable the Locale module in the Drupal core. We will also be making use of the Localization update module. Please install and enable the module from this location:

How to do it...

To begin, we will add a new language to the available language list and then configure the language detection options for the site. Finally, we will update the language from the language server.

  1. 1. Select Configuration from the admin menu.

  2. 2. Find the REGIONAL AND LANGUAGE section, then select Languages.

  3. 3. Select +Add language.

  4. 4. Choose...