Same question here. Where is the content stored? I would like to translate in text-format instead of the interface of WP.
Thanks
Did you guys find any solution? I am having same problem
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);
}
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)
}