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.

Home Forums Cord

About: Cord

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


Topics I'm Subscribed To

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Security Badge gone after moving server

By:  Cord in: Community Forum

voices: 1
replies: 1

3 years, 2 months ago  Cord

Translation of Custom Registration Fields

By:  Cord in: Translations

voices: 5
replies: 9

3 years, 9 months ago  Natasha Bernal

Viewing 2 topics - 1 through 2 (of 2 total)

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Security Badge gone after moving server

By:  Cord in: Community Forum

voices: 1
replies: 1

3 years, 2 months ago  Cord

Translation of Custom Registration Fields

By:  Cord in: Translations

voices: 5
replies: 9

3 years, 9 months ago  Natasha Bernal

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Wednesday Oct 30th, 2013 at 7:53 am #60756
Cord
Username: mailbeez

ok, debugged myself and found the reason:

after emptying /wp-content/plugins/s2member-logs (there was an empty app-data directory) the badge status turns 1

I think it is a bug?

Posted: Monday Nov 5th, 2012 at 4:11 am #30620
Cord
Username: mailbeez

figured out myself, the final solution for both custom fieldnames and section titles looks like this:

function translate_custom_field($rec)
{
    // labels
    $label = $rec['field']['label'];
    $rec['field']['label'] = _x($label, "s2member-front", "s2member");

    $label = $rec['field']['sectitle'];
    $rec['field']['sectitle'] = _x($label, "s2member-front", "s2member");

    return $rec;
}
Posted: Monday Oct 29th, 2012 at 6:36 am #30007
Cord
Username: mailbeez

Almost there…

The Section titles “Title for this new section? ” are not translated – wonder what hooks to apply there?

To get the wordpress default strings translated, I needed to add this code to my functions.php:

//http://boring-group.com/blog/2011/03/04/how-to-load-plugin-translation-mo-files-with-qtranslate/
if (function_exists(‘qtrans_getLanguage’)) {
load_default_textdomain();
}

looks like qtranslate sets the language differently so WPLANG is not longer respected. Loading the default text domain again helps

Posted: Monday Oct 29th, 2012 at 5:31 am #30004
Cord
Username: mailbeez

great solution! works like a charm!

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