Title: Export polylang translated strings
Last modified: June 14, 2017

---

# Export polylang translated strings

 *  [wiktormazur](https://wordpress.org/support/users/wiktormazur/)
 * (@wiktormazur)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/export-polylang-translated-strings/)
 * As in the topic – how to do that? I have tried to copy what’s inside the _pll_strings_translations
   meta key in wp_postmeta table but it didn’t seem to work. Any other ideas? I 
   have 3 languages and 500+ strings translated to it would be a nightmare to move
   them manually.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [lukdol23](https://wordpress.org/support/users/lukdol23/)
 * (@lukdol23)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/export-polylang-translated-strings/#post-9519926)
 * Same question here. Where is the content stored? I would like to translate in
   text-format instead of the interface of WP.
    Thanks
 *  [James Hunt](https://wordpress.org/support/users/bonkerz/)
 * (@bonkerz)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/export-polylang-translated-strings/#post-9688280)
 * Did you guys find any solution? I am having same problem
 *  [nenontwerp](https://wordpress.org/support/users/nenontwerp/)
 * (@nenontwerp)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/export-polylang-translated-strings/#post-9978497)
 * Try this to get clean strings in the error_log. This is without the context. 
   Working on that …
 *     ```
       add_action( 'init' , 'get_polylang_strings' );
          function get_polylang_strings()
          {
               $collector = false;
   
               $option         = get_option('polylang');
               $default        = $option['default_lang']; // or replace by other language-slug
   
               $term           = get_term_by( 'slug' , $default , 'language' ); 
               $posts          = get_posts(array( 'name' => 'polylang_mo_'.$term->term_id , 'post_type' => 'polylang_mo' , 'post_status' => 'private' , 'posts_per_page' =>1 ));
               $post_id        = $posts[0]->ID;
               $translations   = get_post_meta( $post_id , '_pll_strings_translations' , true );
   
               if( $translations )
               {
                       foreach($translations as $translation)
                       {
                           $string_identifier = $translation[0];
                           $string_displayed  = $translation[1];
   
                           $collector .= $string_displayed."\n";
                       }
               }
               else
               {
                       $collector = 'empty (?)';
               }
               error_log($collector);
          }
       ```
   
 *  [nenontwerp](https://wordpress.org/support/users/nenontwerp/)
 * (@nenontwerp)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/export-polylang-translated-strings/#post-9979521)
 * `PLL_Admin_Strings::get_strings()`
 * This gives you an array with all registered strings. Try to combine with my previous
   reply. Array like:
 *     ```
         ["95ea783052defb7fba095a4d78bf16a4"]=>
         array(4) {
           ["name"]=>
           string(12) "Date notation"
           ["string"]=>
           string(5) "j n Y"
           ["context"]=>
           string(9) "WordPress"
           ["multiline"]=>
           bool(false)
         }
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Export polylang 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

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

 * 4 replies
 * 4 participants
 * Last reply from: [nenontwerp](https://wordpress.org/support/users/nenontwerp/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/export-polylang-translated-strings/#post-9979521)
 * Status: not resolved