[Drupal] How can we add translation to Drupal 7 site using translation module?

| | 2 min read

Consider you are creating a drupal website with multiple languages. We don't have to create two different sites for that. This can be achieved in the same site by using a module. In drupal for adding translations to the site we can use the Entity Translation Module. If we want to translate the title and other such fields to some other language then we can use the Title module. The different steps that has to be followed to add translation to Drupal 7 site using translation module are listed below.

Also if we want translate something other than the content added like the filed labels, descriptions, list of values added to a field then we have to use the Internationalization module. Also for using the Internationalization module we have to use the Entity API module and the Variable module.

After enabling all these modules when we edit the content-type added then there will be a new option now to enable Entity Translation for the particular content-type. In the Manage Fields page for each content type, we now see an option to replace the regular title with a field.

The title will also be displayed in the content like any other field, so you may want to go to the Manage Fields screen and hide it, and you will see the title at the top of the page already. For each field that needs to be translated, click on the Field settings link and check the box to translate this field. If there is already content in this field we will see a message noting that, but we can still change the option to translate the field.

The final step is to create or edit a page that has a language and we now see a new tab on the page in addition to the View and Edit tabs, a Translate tab. This tab takes us to a page that shows us each language we have enabled on the site and where we can add a translated version of the content for that page.

Note that this tab will only appear on nodes that have a language selected.