I am setting up a site for a non-profit organization (using Ubercart to accept donations) and I want to change "order" to "donation".
I started in with the stringoverrides module. I was searching around trying to find all the occurrences of "Order" and putting in a string over ride that changed it to "Donation". I found this to be extremely clunky, time consuming and error prone.
I looked at the source of the string overrides module figuring that I could find how it was actually performing the override and then hack together my own solution to programmatically do some sort of search and replace on it. After looking at that and the source for the t()
function I realized it wasn't going to be that easy.
Is there a way to easily pull a list of all the
t()
calls that include the text "order" in them? I could then pretty easily generate a .po file by doing a bunch of search and replace type operations.Is there a way to programmatically change all occurrences of 'order' to 'donation'?
Is there some other obvious way that I haven't thought of?
P.S. I am proficient with custom module development in Drupal but don't have much experience in l10n_update or i18n with Drupal.