• I have a multilingual site in WordPress using Polylang and I’m using the latest version of Participants Database. How do I translate the form fields that appear when I insert [pdb_signup] ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author xnau webdesign

    (@xnau)

    I don’t know enough about Polylang to give you anything specific, but if you’re running a multilingual site, you should enable multilingual operation for the plugin by adding a filter like this to your theme functions file:

    define( ‘PDB_MULTILINGUAL’, true );

    That will cause all labels and text that is defined in settings to be passed through the gettext filter. So, if your multilingual plugin has a way to embed the translations into the settings, it should work. For qtranslate-x, that looks like this:

    [en:]Fist Name[de:]Vorname[es:]Nombre de pila[:]

    The multilingual plugin chooses which translation to use (via the gettext filter) based on the user’s settings. Your multilingual plugin will probably do something like that too.

    Thread Starter Sprachprofi

    (@sprachprofi)

    Hi,

    Thank you for your quick reply. I’m amazed that nobody has found the answer yet, as Polylang is the most commonly-used multilingual plugin for WordPress afaik. I will ask them…

    In case they don’t know either, where in the plugin code does it retrieve the translations for the form field names? Maybe I’ll just hack that part to retrieve it from a list I’m aware of.

    Thanks!

    Plugin Author xnau webdesign

    (@xnau)

    The way most of these plugins work, you need to place the translations into the settings and title definitions. Then the plugin chooses which translation out of that setting to show based on the current language. This happens by filtering all the settings strings through gettext. No need to alter the code for that it’s all set up.

    If you talk to support for Polylang, tell them the settings strings are going through gettext, they should be able to explain how to set up the translations for that.

    You need to enable that for Participants Database by adding that global variable definition I gave you before.

    Hallo,

    plese i have the same problem, but i did not find a solution, how to translate database labels with Polylang plug-in.

    Did you fing a solotion for this.

    Thanks in advance for answer.

    Jiri

    Thread Starter Sprachprofi

    (@sprachprofi)

    Hey,

    I haven’t found a solution to make these two plugins work together. I wound up using Gravity Forms, which has similar functionality and there is a Gravity Forms Polylang integration plugin which works perfectly.

    Best wishes,

    Judith

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Polylang and Participants Database’ is closed to new replies.