jQuery search/replace all body text problems
<p>I am doing a complex language translation in <a href="http://en.wikipedia.org/wiki/JQuery" rel="nofollow">jQuery</a>. I am copying some of the methods used in the jQuery/Google translate, but using our own XML files for getting original English and translated languages.</p>

<p>I am able to easily read English and other language into an array.</p>

<p>But my problem is that some of these text phrases, that we are paying someone to have translated, are going to be inside other sentences inside many different pages.</p>

<p>I have been blasting away, trying different approaches, and still no real luck in finding a useable solution.</p>

<p>In past efforts, I have used the $('body').nodesContainingText() from jQuery-translate, to parse through each text node, then search for that text inside the English array, grab that position, and use that to get the translated version in the other language array.</p>

<p>And that works fine where there are separate text nodes, but still not even close to consistently working on partial replacing.</p>

<p>Seems the more I try to fix the problem, the less it works.</p>

<p>So what I'd really like is some guidance about what I am doing wrong?</p>

<p>Here is the code I am using, maybe this will help.</p>

<p><a href="http://crosenblum.pastebin.com/f6468aae8" rel="nofollow">http://crosenblum.pastebin.com/f6468aae8</a></p>
