Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Drupal 7 Multilingual Sites
  • Table Of Contents Toc
Drupal 7 Multilingual Sites

Drupal 7 Multilingual Sites

By : Kristen Pol
4.8 (10)
close
close
Drupal 7 Multilingual Sites

Drupal 7 Multilingual Sites

4.8 (10)
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)
close
close

Chapter 1. Multilingual Overview, Use Cases, and Modules

Drupal is a big system with lots of moving parts. What exactly does it mean to make a multilingual Drupal site? We certainly want to write content in languages other than English. We need blocks and menus to be smart enough so we can use them for different languages. What about Views? Sure, we want it smart too. What about Panels? Yes, of course! What about a seemingly random message string coming from a module we just installed? What about the Drupal UI itself? And so on and so forth.

As you can see, we have a lot of things that need configuring if we want a fully multilingual Drupal website. This book aims at showing you how to navigate through the myriad of modules, configuration settings, and sometimes not-so-intuitive methodologies to make it happen. The exercises in the book are hands-on and organized to give structure to your localization process.

But before we start our exercises and break into a sweat, we need to understand a few things. This chapter will give you an overview of what it means to build a multilingual site in Drupal 7. We will explore a number of issues and considerations when working with multiple languages, and check out some typical use cases. Then, we'll take a look at some terminology and the different parts of the multilingual Drupal puzzle, namely, interface, content, and configuration. The chapter concludes with a preview of the modules we'll use in the coming chapters.

Considerations and use cases

Just like there is no one way to build a regular website, there is no one way to build a multilingual website. Every site is different and has its own use cases and multilingual demands. Check out amnesty.org, drupalcampmontreal.com, wunderkraut.com, reyero.net, and thesoundpost.com as some unique examples of multilingual Drupal websites.

Different types of language support

You can use as much of Drupal's language support as you need. If you simply want a website that is only shown in German with no English text and no translations, then you can certainly do that. Or, if you want to support content in several languages but none of the content will be translated, you can do that too. For the book exercises, we will be building a fully multilingual site that includes translation. The next figure shows the different levels of language support you might need depending on your site's use cases:

Some things to think about

There are always plenty of things to worry about when designing a website. When you decide to make your site multilingual, the list just gets bigger. This section is not meant to be an exhaustive compilation of everything you need to be thinking about before diving in, but it should help to get you started. We will consider many of these items as we work through our hands-on exercises:

  • Should you use a domain, a sub-domain, or a directory per language?

  • Do you need translations of all content in all languages?

  • If there isn't a translation available, should it show the source content?

  • Will translations be done in-house or outsourced and by one person or a team?

  • Do you have special e-commerce needs while dealing with taxation or currencies?

  • Should the admin UI have a different default language from the end-user UI?

  • Do any of your languages need Right-to-Left (RTL) theming support?

  • Will the navigation be different for each language?

  • Has the Drupal UI been mostly translated for your chosen languages?

  • What translation methods make sense for the site content?

Example use cases

Although there are many ways you can create a multilingual site based on your language needs, the following are some examples to get you thinking more about Drupal's language support.

Simple blog site

Jacob is a writer and has his own website where he blogs about his life and his work. He is fluent in English and Italian, and has a family in Italy where he often goes on vacations. He writes articles in English or Italian depending on the subject. He sometimes translates the blogs so that they are available in both languages, but not always. Jacob does freelance work in the United States. So his work-related content only needs to be in English. He is the sole user for his website but he allows comments to be left in both languages.

Consulting company site

AJ Consulting is a small consulting company in Santa Cruz, California. Drawing from the large Hispanic community in the area, they have several bilingual employees who are fluent in Spanish and English. They specialize in catering to clients who need their services in either language. It is important that they maintain all site content in both languages, so their bilingual employees are in charge of translating content. All content must be approved by the owner prior to being published. The only users of the website are company employees. The general public is not allowed to leave comments anywhere on the site, but they can use the contact form in either English or Spanish.

E-commerce site

Deutsch & Sons is an online store selling educational toys and books for young children. They sell their products internationally but mostly within the United States, Canada, and Mexico. To cater to their international market, they keep their product, store, and customer support content in English, French, and Spanish. They have different shipping and taxation handling based on the shipping country. Deutsch & Sons does not have any staff translators, so they rely on third-party translators who directly modify the site content.

Note

This example shows functionality based on language and location (country). These are independent features. You might have an English-only site that needs location-based functionality or a multilingual site that does not.

Our demo site

To make things more realistic, our demo site has elements from the examples mentioned previously including blog articles, book content, comments, and user roles that allow more than one content contributor. You can use the demo website or your own site for the book exercises. The book is structured as a step-by-step tutorial. So, for maximum understanding, the best strategy is to work through the chapter exercises in order.

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Drupal 7 Multilingual Sites
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon