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: Cornelia Esther

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
Translate strings in paypal pro registration

By:  Cornelia Esther in: Community Forum

voices: 3
replies: 18

3 years, 6 months ago  Cristián Lávaque

Viewing topic 1 (of 1 total)

Topics I've Started

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Translate strings in paypal pro registration

By:  Cornelia Esther in: Community Forum

voices: 3
replies: 18

3 years, 6 months ago  Cristián Lávaque

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Wednesday Jun 19th, 2013 at 5:23 am #52174

I didn’t read the part wirth “s2-o-hacks.php”. My mistake. Now I can also translate the js strings.

Thanks again!

Posted: Tuesday Jun 18th, 2013 at 7:15 pm #52157

Okay. I created that file in the mu-plugins folder. It works, but not for the js file.

I removed the version id, to ensure, that I get a “fresh generated” file.

This is a part of my plugin code:

elseif($original === 'This is a required field, please try again.'){
			$translated = 'Das ist ein Pflichtfeld:';

This the generated js code:

nThis is a required field, please try again.'}else

I also tested in a browser, where I opened the site never before….the same result, so it can not be a cache problem.

Posted: Tuesday Jun 18th, 2013 at 2:22 pm #52138

Hi Christian,

me again.
What about the string sin the js files, e.g. the form validation?

I tried this:

elseif( $original	=== 'This is a required field, please try again.' )

But it does not work. i copied the words from the js file directly.
I also deleted the cache, but did not succed with that. the old strings were still there.

The output form the js files is generated here:

/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=1&qcABC=1

Nothing changes in this file, or at least not the string, I want to change…

Thank You,
Lars

Posted: Saturday Jun 1st, 2013 at 2:01 pm #51142

Works now!

Thank You!

Posted: Friday May 31st, 2013 at 5:29 am #50993

Hi,

nope. That’s wrong.

“Log me in” isn’t there for example….there are also a lot of other strings missing in the output above.

Any other suggestions?

Posted: Wednesday May 29th, 2013 at 8:39 am #50823

I used thas filter function:

<?php
add_filter('gettext_with_context', 'my_translator', 10, 4);
function my_translator($translated, $original, $context, $domain) {
	if ($domain === 's2member') {
		echo $original;
	       exit;
		if ($original === 'Log Me in'){
			$translated = '####';
		}elseif($original === 'My Account'){
			$translated = 'Account';
		}
	}
	return $translated;
}
Posted: Monday May 27th, 2013 at 5:03 am #50701

Hi,

these strings are not contained in die

$original

variable.

This is an output form the

$original

variable:

enYes, I want to receive updates via email.[%s] Username/PasswordYour Username/Password for:
%s

Username: %%%%user_login%%%%
Password: %%%%user_pass%%%%
%%%%wp_login_url%%%%[%s] New User RegistrationNew User Registration on your site:
%s

User ID: %%%%user_id%%%%
Username: %%%%user_login%%%%
Email: %%%%user_email%%%%
IP Address: %%%%user_ip%%%%Congratulations! (your membership has been approved)Thanks %%%%first_name%%%%! Your membership has been approved.

If you haven’t already done so, the next step is to Register a Username.

Complete your registration here:
%%%%registration_url%%%%

If you have any trouble, please feel free to contact us.

Best Regards,
%sThank You! (instructions for access)Thanks %%%%first_name%%%%!

%%%%item_name%%%%

Your order can be retrieved here:
%%%%sp_access_url%%%%
( link expires in %%%%sp_access_exp%%%% )

If you have any trouble, please feel free to contact us.

Best Regards,
%sFree SubscriberBronze MemberSilver MemberGold MemberPlatinum MemberCongratulations! (your membership has been approved)Thanks %%%%first_name%%%%! Your membership has been approved.

%%%%item_name%%%%

Subscr. ID: %%%%subscr_id%%%%
Charges today: $%%%%initial%%%%
Recurring charges: $%%%%recurring/regular_cycle%%%%

Your Username/Password will arrive shortly, in a separate email. If you have any trouble, please feel free to contact us.

Best Regards,
%sThank You! (instructions for access)Thanks %%%%first_name%%%%!

%%%%item_name%%%%

Transaction ID: %%%%txn_id%%%%
Charges today: $%%%%amount%%%%

Your order can be retrieved here:
%%%%sp_access_url%%%%
( link expires in %%%%sp_access_exp%%%% )

If you have any trouble, please feel free to contact us.

Best Regards,
%sCongratulations! (your membership has been approved)Thanks %%%%first_name%%%%! Your membership has been approved.

%%%%item_name%%%%

Subscr. ID: %%%%subscr_id%%%%
Charges today: $%%%%initial%%%%
Recurring charges: $%%%%recurring/regular_cycle%%%%

Your Username/Password will arrive shortly, in a separate email. If you have any trouble, please feel free to contact us.

Best Regards,
%sThank You! (instructions for access)Thanks %%%%first_name%%%%!

%%%%item_name%%%%

Transaction ID: %%%%txn_id%%%%
Charges today: $%%%%amount%%%%

Your order can be retrieved here:
%%%%sp_access_url%%%%
( link expires in %%%%sp_access_exp%%%% )

If you have any trouble, please feel free to contact us.

Best Regards,

What shall I do now?

Cheers,
Lars

Viewing 7 replies - 1 through 7 (of 7 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.