Forum Replies Created
-
AuthorPosts
-
Wen
ParticipantOke, i’ve send a message!
Wen
ParticipantYes, that was it, now there are 610 lines (of which are 278 translated) and the lines I was missing are already translated. I’ve created a new MO file and uploaded it and now the validation texts are nicely translated!
Will you add this to a new update or do I have to put the MO file in /wp-content/languages/plugins/ to keep this version?
Thankyou!
Wen
ParticipantIn /wp-content/plugins/simple-membership/languages
Wen
ParticipantI opened the PO file (simple-membership-nl_NL.po) and can confirm that the following lines are not there to translate:
$loc_data = array( 'ajaxUserCall' => array( 'url' => admin_url('admin-ajax.php'), 'alertTextLoad' => '* ' . SwpmUtils::_('Validating, please wait'), ), 'ajaxEmailCall' => array( 'url' => admin_url('admin-ajax.php'), 'alertTextLoad' => '* ' . SwpmUtils::_('Validating, please wait'), ), 'email' => array( 'alertText' => '* ' . SwpmUtils::_('Invalid email address'), ), 'required' => array( 'alertText' => '* ' . SwpmUtils::_('This field is required'), ), 'strongPass' => array( 'alertText' => '* ' . SwpmUtils::_('Password must contain at least:').'<br>'.SwpmUtils::_('- a digit').'<br>'.SwpmUtils::_('- an uppercase letter').'<br>'.SwpmUtils::_('- a lowercase letter'), ), 'SWPMUserName' => array( 'alertText' => '* ' . SwpmUtils::_('Invalid Username').'<br>'.SwpmUtils::_('Usernames can only contain: letters, numbers and .-_*@'), ), 'minSize' => array( 'alertText' => '* ' . SwpmUtils::_('Minimum '), 'alertText2' => SwpmUtils::_(' characters required'), ), 'noapostrophe' => array( 'alertText' => '* ' . SwpmUtils::_('Apostrophe character is not allowed'), ), );This peace of code is from the file class.simple-wp-membership.php, it loads the javascript validation code and here are some lines merged so they can be translated.
I have manually added a line to the PO file, compiled it to a MO and uploaded it and now it’s working! Shall I add all those lines and send you the PO version?
Wen
ParticipantI already tried Loco Translate as I wrote in the first post but those lines are not in there. It looks like the validation plugin is not using the WordPress translation files, only a javascript file.
Wen
ParticipantThanks for your response, I could have tried this myself before… sorry!
It seems to be an issue with the SiteOrigin Pagebuilder, the pagebuilder removes the swpm_message div which should be shown on the page before the form. I’ll look for a workaround!
Kind regards,
WenWen
ParticipantFor example these lines:
* This field is required
* Usernames can only contain: letters, numbers and .-_*@
* Minimum 4 characters required -
AuthorPosts