How to Change Language Strings in Drupal 7

tutuploadsStep_1_7774ccb422e96f2792ae1e9f691e7600.png

Drupal has language files that hold all of the messages and labels you see while using your site. You can change this text if you need to.

To change language used in Drupal, you need to translate the language strings that come in the Drupal distribution. Drupal comes bundled with a module called Locale that will let you do that, but it’s really rather complicated. There’s a much simpler module called String Overrides that will let you change a few things with a few simple steps.

Step 1. Download and install the String Overrides module

tutuploadsStep_1_7774ccb422e96f2792ae1e9f691e7600.png

Download and install the String Overrides module. You can get it from http://drupal.org/project/stringoverrides.

After downloading go to Modules then Add New and use the Browse to locate the file for upload. Click Install.

tutuploadsmedia_1328730180296.png

Check the Enabled boxes for both String Overrides boxes and then click Save configuration.

Step 2. Access the module from the Configuration menu

tutuploadsStep_2._Access_the_module_from_the_admin_Configuration_me.png

Click Configuration and then click Translate Interface.

Step 3. Make the change

tutuploadsStep_3._Make_the_change.png

Type the exact phrase you want to change on left and the replacement phrase on the right. Click Save Configuration.

You can add extra rows and make multiple changes at one time.

tutuploadsmedia_1328730472259.png

Results

tutuploadsResults.png

You can see the original phrase in the image above and you can see your new phrase in the image below:

tutuploadsmedia_1328666447229.png

This is great for quick and easy changes to the basic language. If you are going to do a complete translation to another language or revamp every single language string, you are better off using the Locale module that comes bundled with Drupal core. It requires some advanced knowledge to use. For smaller changes, localize and personalize your site the easy way with String Overrides.

Author

0 0 votes
Article Rating
Subscribe
Notify of
3 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Cosette Malinowski
Cosette Malinowski
10 years ago

Hi! Localizing Drupal strings is super easy with [url=https://poeditor.com/]https://poeditor.com/[/url], you should try it. 🙂

Abhishek
Abhishek
8 years ago

It would be great if you could show some way to do this without string override module, I won’t prefer to use any module if I have to change a single string.

Agis
Agis
8 years ago
Reply to  Abhishek

Hi Abhishek,

You can override strings in settings.php
Have a look here [url=https://www.drupal.org/node/1837560]https://www.drupal.org/node…[/url]

3
0
Would love your thoughts, please comment.x
()
x