Hi Raam, I have created a few new “Custom Registration/Profile Fields” for my membership form. For example, ‘yes I wish to receive the monthly news letter’
The form works perfectly but when I try to translate using WPML the Custom Fields are missing. The rest of the form does show up and I have been able to translate it. eg phone number, address etc
You can see more details on this thread: http://wpml.org/forums/topic/translation-for-s2member-forms/
I’m looking at the link you have sent and I’m not sure if it applies or not. I see that the thread pertains to changing text for a coupon but in the JavaScript I see “function s2_contextual_translation”
Can I assume I should to the following?
<
?php
add_filter("gettext_with_context", "s2_contextual_translation", 10, 3);
function s2_contextual_translation($translation = NULL, $original = NULL, $context = NULL)
{
if($context === "s2member-front" && $original === "Job Title")
/* Here you provide the translation.
You can take the `%s` Replacement Codes out if needed. */
$translation = "titre d'emploi";
/**/
else if($context === "s2member-front" && $original === 'yes I wish to receive the monthly news letter')
$translation = 'Oui, je souhaite recevoir la lettre mensuelle nouvelles';
/**/
return $translation;
}
?>
If this is correct. Will my client be able to alter the translations with WPML for is this something that will always be custom? ie I will have to keep track of it outside the WPML interface.