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?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | stringoverrides.module.txt | 4.53 KB | robloach |
| #9 | stringoverrides.admin_.inc_.txt | 7.91 KB | robloach |
| #5 | stringoverrides_importexport.patch | 5.04 KB | robloach |
Comments
Comment #1
robloachYou 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.
Comment #2
iancawthorne commentedThanks 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.
Comment #3
robloachAhh, 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.
Comment #4
robloachAlso, 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.
Comment #5
robloachCheck this out....
Comment #6
iancawthorne commentedPretty good! Is there going to be a full release with this feature for version 5.x?
Comment #7
robloachIt will have to be ported to 5 before getting in the release, but yup! Have you tested it? I like those serialize/unserialize functions.
Comment #8
iancawthorne commentedI'm pretty useless at applying patches to files. Any chance of the updated file attached?
Comment #9
robloachHere you go! These are the updated files..... For Drupal 6 too.
Comment #10
robloachImporting and exporting *.po files is a better idea. http://drupal.org/node/249988