Drupal 7 multilingual site set up

08 Nov 2017
Drupal 7 Multilingual

In this article, we will learn step by step how to setup a Drupal 7 multilingual Site step wise.

Prerequisite:

All you need to know is Basic Drupal 7 concepts. You should be familiar with Drupal’s admin configuration system, Installing and enabling contributed modules.

So, let’s proceed with step wise multilingual site setup in D7.

Step wise Drupal 7 multilingual site set up

  1. Download and install Drupal 7.
  2. Download Contrib Modules:
  3. Enable all downloaded modules including Locale Module. It is a part of Drupal core.
  4. Configure Languages, do admin login and go to configuration >> Region and Language >> Languages “admin/config/regional/language”.Configure_language
  5. Add Language, Drupal supports more than 180 languages, you can add as many as you want (of course one by one).Add Language for Drupal 7 multilingual
  6. Once you have added other languages, choose a detection method (admin/config/regional/language/configure). There are some ways of language detection, choose one and save the configuration.
    • URL (Mostly used by content based site, determine the language from the additional parameter in URL).
    • Session.
    • User (Refers to user’s language preference).
    • Browser (Determine the language from the browsers language setting).
    • Default.Detection Method
  7. Configure translation updates:
    • Set Translation Source to “Local files only”.
    • Set import behavior to “Overwrite existing translations”.Translation update
  8. Import translations. Go to “admin/config/regional/translate/import” and upload the Language file (You can get this language file from https://localize.drupal.org/). Select the “Import into” language and start the import. You can translate manually as well from “admin/config/regional/translate/edit/1".Translate words
  9. Add translation to the content types:
    • Go to Structure, then Content types. Edit the content type, in which you want to add translation. Under “Publishing Options” you will find Multilingual support marked as Disabled. Check “Enable with Translation” and save the settings.Publishing Option
    • Make each field translatable. Open “Manage Fields” tab, click on replace in front of title field and check the checkbox and save.Replace Title
    • Edit all other fields and check “Users may translate all occurrences of this field”.translate fields
  10. Add Content:
    • Go to Content >> Add Content >> [Content type], which you just configured.
    • Add the content, and select the language which adding content.
    • While editing content, you will find a new tab “Translate”, use this for adding translations in all the languages you want.Translate Content
  11. Add Language switcher block, go to Structure >> Blocks and enable Language switcher (Content) and Language switcher (User interface text) Blocks.

That’s all you have successfully implemented Drupal 7 Multilingual capabilities to your site, Congratulations.