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.

translate items in a dropdownbox custom field

Home Forums Community Forum translate items in a dropdownbox custom field

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 3 years, 10 months ago.

Topic Author Topic
Posted: Saturday Feb 23rd, 2013 at 7:23 pm #43073
Oriol Boan
Username: orboan

(already posted in community forum > translations; but I need support on this question asap, so I put it here)

From the next code (used in theme’s functions.php to make custom registration fields translatable)

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;
}

‘label’ is the string bound to custom fieldnames, and ‘sectitle’ the string bound or used to identify the section title names in custom regostration fields. So my qüestion is how these bindings or relations has been found; my goal is to find the string related or bound to the items belonging to a custom registration dropdown box, to make those items translatable.
Thanks!

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Feb 26th, 2013 at 7:06 am #43214

Hi Oriol.

Maybe this video will help: Video » s2Member (Custom Fields Dynamically?)

Posted: Tuesday Mar 5th, 2013 at 3:18 am #43739
Oriol Boan
Username: orboan

Hi Cristián,
I almost forgot to thank you. That vid helped me!

Posted: Thursday Mar 7th, 2013 at 8:05 am #43946

Great! I’m glad! Thanks for the update. :)

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.