Download & Extend

replacing specific text in audio module

Project:String Overrides
Version:5.x-1.6
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'm using the audio module to manage my church's podcast on our site. I've used the string overrides module in order to replace "artist" with "speaker" and "album" with "series" when looking at an individual sermons page. For some reason though it doesn't seem to work for the page title when browsing the podcasts by "album". For example, if you look at this site you'll see how it says "speaker" and "series" in the audio info near the top.

http://www.tenmilevineyard.org/audio/2008/12/december-28th-2008-message-...

However, if you click on the series link to view all the other sermons from that series, the page title still uses the term "album" (audio by album Advent Series 2008). I'd like it to say "audio in series Advent Series 2008". I've tried setting up overrides to replace "album" with "series" but it doesn't seem to change anything there. I've also tried setting up one to change "audio by album" to "audio in series" but that doesn't work either. Anyone have any idea what I can do to change that so it says "series"? Not sure if there's a way to make string overrides work, or if I can go into some file in the audio module folder and change something to replace it.

Any help would be greatly appreciated.

Thanks!

Comments

#1

I just noticed this module myself, and was thinking of using it for exactly the same purpose as you did. However, I've got another question on it, which I think I already know the answer. I'd like to know if it can be dynamic in how it replaces strings. For instance, only do the replacement if some other critieria is met, such as "only audio files of a certain "Type" (tag), say "Sermon", but not "Music".

Anyway, on your issue, I don't know, but I imagine that the problem apparently is that some portions of the Audio module don't send the text through the t() function, as is mentioned on the String Overrides module project page. But that's just my guess, as I've not attempted to look through that code, at least in a while.

#2

Hmm, I think this thread:
http://drupal.org/node/314085

Might be just what I need for the piece I was wondering about, but I'm not sure. Hopefully I'll figure that one out.

#3

I just had almost exactly the same requirement for a church website that I did: http://gbfchurch.net (have a look at their sermons page).
I fixed it using regular expressions in the template, which is much more lightweight and guaranteed to work on any text or html that gets sent to the browser. If you are interested, I will post the details.
Cool website, b.t.w. The church sounds similar to the one I am planting right now in Toronto: http://nlife.ca

#4

andrewfn,

PLEASE do provide the details for how/what you did. I'd be very excited to be able to change it to saying "Preacher" instead of "Artist" in our sermon files. That'd be perfect!

Using this method, are you able to change it to "Musician" or "Artist" for music files if you want?

Sorry it took me a week to respond, but I just didn't notice the post this past week.