im trying to translate twenty ten based child theme, I have modifided the single-loop.php with a custom snippet, that shows next and previous arrows...
my issue is that this string (next and previous text) cant be translated... the replacement doesnt occur with this specific string. I do all the process of detecting the string and creating all with poedit, but does not work. all other strings do translate OK.
I edited the php file single-loop.php:
<?php add_filter('wp_get_object_terms', 'my_custom_post_navigation', 4, 99); ?> <div id="nav-above" class="navigation"> <div class="nav-previous"> <?php next_post_link( '<span class="meta-nav"> %link </span>', __( '◄ Previous','Previous post link', 'category','twentyten') , TRUE ); ?> </div> <div class="nav-next"> <?php previous_post_link( '<span class="meta-nav"> %link </span>', __( 'Next ►','Next post link', 'category', 'twentyten') , TRUE ); ?> </div> </div><!-- #nav-above --> <?php remove_filter('wp_get_object_terms', 'my_custom_post_navigation', 99); ?> <!-- END .featandnav of Featured and Navigation container DIV -->
-Then I scanned all the php files with poedit and the strings appear: I translated them (Next ► - and -◄ Previous) using poedit..
but then, even that I uploaded the files to the theme language folder, this string does not translate, as I mentioned before: all the others original of the theme, do translate...
What I'm doing wrong?
Thanks for your help.