Title: Function to insert translated strings?
Last modified: December 11, 2020

---

# Function to insert translated strings?

 *  [Jeremy Varnham](https://wordpress.org/support/users/jvarn13/)
 * (@jvarn13)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/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

The topic ‘Function to insert translated strings?’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [strings](https://wordpress.org/support/topic-tag/strings/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jeremy Varnham](https://wordpress.org/support/users/jvarn13/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/function-to-insert-translated-strings/)
 * Status: not resolved