You need to use a utility like PoEdit. It’s a fairly simply process. Just add the __ and _e strings to the list that PoEdit looks for, point it at the theme folder and it will parse all of the translatable strings and create a .po file for you.
Sorry for my English. I have already the fr_FR.po file I found in WordPress french version and I open it with PoEdit.
My request is : on my blog like here http://test.sblanc.com/blog/ it’s written bellow the title “Posted on 12 octobre 2012”, but I would like to have “Publié le 12 octobre 2012”, and the same for other text on my website.
Why I can’t fine in fr_FR.po this sentence “Posted on” ? So if I can’t find it, I can’t translate it no ?
Thank you 😉
No – try creating a new .po file.
Another way to translate themes is by using this plugin: http://wordpress.org/extend/plugins/codestyling-localization/
It can scan your theme for all translatable strings and create the po and .mo files.
tutorial
Well I have to say I didn’t no this plugin, ut works well indeed, but I still have to text impossible to translate even with that.
Still like “Posted on”, or the comment form ?
Could it be in a php file ? Like loop or comment ?
For twenty ten “Posted on” is in functions.php but it should be translatable as all other strings are.
You mean with the plugin you told me before ?
Could it be because I am using a child theme ?
If it’s not going to work try creating a functions.php file in your child theme and put this in it:
<?php
function twentyten_posted_on() {
printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
'meta-prep meta-prep-author',
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
),
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
get_author_posts_url( get_the_author_meta( 'ID' ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
get_the_author()
)
);
}
?>
And translate the “Posted on” part.
Ok it works for the text just bellow the post title as I wanted, thank you !
What about for the texte bellow the picture like here ? At this time it “Posted in”… 😉