New Podcast

Posted Thursday, September 9 at 7:48 am

Listen in as Andrew, Ryan, and Mike are joined by special guests Jake Strawn and Michelle Lauer as they discuss DrupalCon Copenhagen, Drupal 7, Drupal's new Code of Conduct, and more. Jake and Michelle just returned from Copenhagen and provide their insight on the largest European DrupalCon event yet. 

Download Podcast 44
DrupalEasy_ep44_20100909.mp3
Syndicate content

NEWSLETTER

Stay informed on our latest news!

Syndicate content

Testimonial

Mike & Ryan's session on March 11th was a great intro to what DrupalEasy training is capable of teaching. From solid fundamentals and practices, to a complex, automated feed aggregator, everything was laid out in plain detail, so any skill level, from Beginner, to Ninja could have picked it up quickly. I am anxiously waiting the next session, and encourage anyone who wants to sharpen their Drupal knowledge to drop by a session, and get their learn on

Who are we?

DrupalEasy is the collective expertise of Ryan Price and Michael Anello, who joined forces to provide training and consulting services worldwide. Read all about them and what they can do.

What is Drupal?

Drupal is a free, super-powerful content management system for sites that require information posting and collection, including blogs, forums, videos, photos, and databases of information. We think it is the best platform available. Here's why...

Why Drupal?

More and more savvy organizations are going with Drupal for content management, and its no mystery why. It’s free, flexible, and easy to maintain for small or large volume sites. Learn more...

I Just Want to Change That One Word!

If you develop Drupal sites for clients, then you've no doubt been requested to change some of the default language found in Drupal core and/or contributed modules. For example, instead of "My account", your client wants it to read "User info". Or instead of "Create content", they request "Add stuff".

When I first started developing Drupal site a few years ago, I would actually (the faint of heart should avert your eyes) hack core or the modules to get it done. I very quickly learned my lesson and changed over to the Locale module (this was in the days of 4.7). While this was better, it was meant for full language translations and not for site-specific custom text.

Luckily, with Drupal 6, we have the String Overrides module. This module was intended exactly for this purpose - to change Drupal's default text to suit a particular site's needs. It still uses Drupal translation system underneath, but it is a little bit more lightweight than a full translation modules.

Be warned, though, it can still mess with you. For example, I recently wanted to change the term, "List price" in Ubercart to "MSRP". When I added this change to the String Overrides module configuration, nothing happened. I looked again at where "List price" was being printed out and it looked like this: "List price: $400". So, I tried entering "List price:" and "MSRP:" (note the colon) - still nothing. Finally, I tried "List price: " and "MSRP: " (note the colon and the space) - luckily that worked. Depending on how the string is defiend in the module, you may have to be very particular in how you try to translate it.

Trackback URL for this post:

http://drupaleasy.com/trackback/211
No votes yet

No comments

Guest wrote 32 weeks 1 day ago

thanks!

I was mid-editing some core files in Drupal 6 to change the display of "username" to "your name" when I tried one last desparate search and found your post. Thank you for this headache relief. :)

Syndicate content