Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact
You are here: Home

Wen

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 6, 2021 at 10:41 am in reply to: Translate validation popup on register page #22813
    Wen
    Participant

    Oke, i’ve send a message!

    July 6, 2021 at 10:19 am in reply to: Translate validation popup on register page #22811
    Wen
    Participant

    Yes, 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!

    July 6, 2021 at 7:37 am in reply to: Translate validation popup on register page #22807
    Wen
    Participant

    In /wp-content/plugins/simple-membership/languages

    July 5, 2021 at 10:51 am in reply to: Translate validation popup on register page #22803
    Wen
    Participant

    I 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?

    July 2, 2021 at 12:15 pm in reply to: Translate validation popup on register page #22798
    Wen
    Participant

    I 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.

    July 2, 2021 at 10:18 am in reply to: No validation error after submitting registration form #22796
    Wen
    Participant

    Thanks 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,
    Wen

    July 2, 2021 at 7:26 am in reply to: Translate validation popup on register page #22795
    Wen
    Participant

    For example these lines:

    * This field is required
    * Usernames can only contain: letters, numbers and .-_*@
    * Minimum 4 characters required

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
Next Page »

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy