Support » Plugin: Polylang » Function to insert translated strings?

  • I understand how to use pll_register_string to add a new string to the registered String Translations in the back-end, but I cannot work out how to programmatically add translated values for these registered strings.

    I am machine translating values submitted by users by a web form (using Formidable Forms) and displaying these on the front end if the submitted value doesn’t match the page language.

    But I want to reduce the number of translation API calls by saving the machine translated strings into Polylang, which will then allow users to manually edit those values if necessary using the familiar strings translation page in the back-end.

    These are dynamic values, so I cannot use mo/po files.

    Is there an existing function that I’m missing to programmatically insert translated values after registering strings?

    Thank you

  • You must be logged in to reply to this topic.