• Hi,
    first I would like to say thanks to Roland Barker for this plugin. He did amazing work.
    I’m not sure this is proper HOW-to but its how we did it and perhaps it could help someone to overcome certain limitation in having wordpress and participants database work together in multilingual environment under polyang plugin.
    First issue we had was when we created database fields (Participants Database –> Manage Database Fields) Off the bat it works like advertised, all good with shortcodes but when we switched to other languages installed with Polylang we had to translate those fields in corresponding languages.
    We did that using wordpress po files for that language ie. we hardcoded Field names into wordpress translation files. We just opened yourLang.po in file editor and inserted fields:

    msgid “YOURFIELD”
    msgstr “YOURFIELDTRANSLATED”
    later on we used poedit to compile po files to mo and upload it to wp-content/languages owerwritting old translation files.
    We did this to all listed fields. For shortcode [pdb_signup] which lists all fields your participants must fill out you have to create separate pages for all languages (just like you do for your regular posts and pages).
    Same thing goes for [pdb_list].
    Next problem we had was with users changing their record page listed in [pdb_list] trough [pdb_record]
    since we have 3 languages we had to change default template in Participants Database –> Settings –> Signup Form settings –> Signup Response Email
    ([pdb_record] must be created for all languages you have.
    The way it works is that when user / participants fill out the form he gets an email with a link he can go to and change his records (name, surname, organisation etc)
    So, in Signup response mail you should have link to [pdb_record] for all your languages like this
    1st language for exmaple : https://websitename.something/en/record-page-2/?pid=%5Bprivate_id%5D
    2nd https://websitename.something/en/record-page-3/?pid=%5Bprivate_id%5D
    3rd https://websitename.something/en/record-page-3/?pid=%5Bprivate_id%5D
    this [private_id] is the key, and Roland kindly provided us with how this element works.
    So at this point we have Participants Database working in multiple languages and e-mail with links that help us change entered information in [pdb_signup]
    Nex was to create [pdb_single] page. More info about it can be found here:
    https://xnau.com/work/wordpress-plugins/participants-database/using-the-participants-database-plugin/#single
    This is great feature because you can hide some information from being directly displayed on your website but you can access those information by click on More Details field.
    More details page ([pdb_single] shortcode) just like email has its “[private_id] ” in the form of “pdb=numberhere” .
    Right now we have no clue how to translate those pages in other languages , or better say how to perserve page id :
    we have english version on a link like this:
    https://oursite.org/single-record-english/?pdb=70 but when we try to see that page in other language polylang drops pdb=70 ie. https://oursite.org/single-record-2ndlanguage/

    If anyone has an idea how to overcome this, please let us know.

    Thanks in advance

The topic ‘Polylang multilanguage : How to’ is closed to new replies.