latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: terimbo

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Changing Words/Phrases in Generated JS

By:  terimbo in: Community Forum

voices: 3
replies: 4

3 years, 11 months ago  Jason (Lead Developer)

Viewing topic 1 (of 1 total)

Topics I've Started

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Changing Words/Phrases in Generated JS

By:  terimbo in: Community Forum

voices: 3
replies: 4

3 years, 11 months ago  Jason (Lead Developer)

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Jan 30th, 2013 at 5:06 am #39997
terimbo
Username: scarab

Hi Bruce,

Yes, I’m aware of how to do it — if you’ve had a look, you’ll know that the post I mentioned and the post you mentioned are talking about the exact same technique.

However, what I am saying is that it appears that the relevant bits of JavaScript responsible for the “oops” message are not being translated at all.

In case you still don’t believe me, let me spell it out further…

The relevant JavaScript for the user profile form is delivered by /s2member/s2member-o.php. Visit the user profile page, look in the page headers, and grab the exact URL being used to retrieve the JS via s2member-o.php for that specific page. (There are two references to that file, one for CSS and one for JS; you want the JS.) Paste that URL into your browser’s address bar and look at the code which is returned: “oops” is everywhere. Now if you think that the filtering technique is doing anything whatsoever when this JS is being retrieved, just place a big fat die() right at the start of the function you’re doing the gettext_with_context filtering with: that will stop WordPress dead in its tracks the moment it reaches that code. But guess what? WordPress does not stop dead in its tracks, because the relevant code is never being executed.

Note that when s2member-o.php is called directly, no WordPress code is even executing; there are no filters, no plugins, no nothing, because WordPress is not running. The file s2member-o.php chooses which bits of WordPress to fire up when it starts executing.

So, as I said in the original post, it appears that the relevant bits of JavaScript responsible for the “oops” message are not being translated at all.

  • This reply was modified 3 years, 11 months ago by  terimbo.
Viewing 1 replies (of 1 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.