One OSTraining member had set up a site in English and wanted to move everything over to their native language.
In this tutorial, I’ll show you how to completely change the main language of a Drupal 7 site.
I’m going to use the example of an English-language site that needs to be changed to Spanish.
First, go to “Modules” and enable the Locale module:
- Go to Configuration > Languages.
- You’ll see the main language which is currently enabled on the site.
- Click the “Add language” link.
- Choose your language from “Language name”.
- Click the “Add language” button.
You’ll now see your Language has been added:
- Check the “Default” button next to your new language.
- Click “Save configuration”.
- Back in your Drupal site, go to Configuration > Translate interface.
- Click “Choose File” and import the file you just downloaded from Drupal.org.
- Make sure to choose the correct “Import into” option:
- You will get a message saying that your import was successful:
- Refresh your page and your entire site has been translated: