How to Change the Default Language of a Drupal Site
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”.
- Go to https://localize.drupal.org to find a translation package to download. I want the Spanish version of Drupal 7 so I’ll visit this URL.
- Click to download the language file you need. I’ve highlighted the Drupal 7 download:
- 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:
Hi, if i change the default language it wil translate even the urls, and start giving not found msgs