This week, an OSTraining member had a question about translating Drupal sites.
They installed their site in English, but then wanted to change to a different language.
This is our answer for that member. This tutorial will walk you through the process of changing the language used on your Drupal site.
- Go the Modules screen and enable the Locale module.
- Under Configuration, go to Languages. By default, you’ll see only the language that you selected when installing the site.
- Click Add language
- Choose the language you want to add. In this example, we’ll use French.
- Click Add language.
You’ll now see that French has appeared alongside English.
- Check the Default box next to French.
- Uncheck the Enabled box next to English.
Go to https://localize.drupal.org. This is where all of the Drupal translation files are stored.
- Click the French language link.
- You’ll see a download area like the one below. Click the Drupal 7 download link.
- You’ll get a file with a name like this: drupal-7.22.fr.po
Back in your Drupal site, go to Configuration > Translate Interface > Import
- Click the Browse button to find and import your downloaded French file.
Volia! Your site’s interface will now be translated.