I have followed the instructions on installing string override and installed to my drupal 5.3 site. I have the e-commerce module running and would like to change the word "cart" to "basket" wherever it displays.

However setting "cart" as the original and "basket" as the replacement seems to do nothing to node text or anywhere else on my site. The locale module is not checked on. I have tried it on at the same time, but this makes no difference.

Are there some other things I need to try to get it working?

Comments

robloach’s picture

Status: Active » Postponed (maintainer needs more info)

You can only pass in full strings that are passed through t(), unfortunately. Try looking through the source, and copying what they have passed into t(), and then try modifying it from there.

iancawthorne’s picture

Thanks Rob, that solved my head scratching! I could put this in as a feature request... but would an import/export option for a set of predefined strings be worth having? There are about 20 - 30 strings to change at least on the e-commerce module. It would be great if it could be done by just uploading a previously defined setup.

robloach’s picture

Title: Cannot get this module to work » Import/Export Sets of Strings
Version: 5.x-1.3 » 6.x-1.x-dev

Ahh, that's a neat idea. Import/Export a set of strings. It'll have to go into 6.x-1.x-dev, and then be back ported to 5.x-1.x-dev.

robloach’s picture

Also, if you put together some documentation saying that you can only change full strings of text that are passed through t(), I could put it in somewhere.

robloach’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new5.04 KB

Check this out....

iancawthorne’s picture

Pretty good! Is there going to be a full release with this feature for version 5.x?

robloach’s picture

It will have to be ported to 5 before getting in the release, but yup! Have you tested it? I like those serialize/unserialize functions.

iancawthorne’s picture

I'm pretty useless at applying patches to files. Any chance of the updated file attached?

robloach’s picture

StatusFileSize
new7.91 KB
new4.53 KB

Here you go! These are the updated files..... For Drupal 6 too.

robloach’s picture

Status: Needs review » Closed (works as designed)

Importing and exporting *.po files is a better idea. http://drupal.org/node/249988