I am creating translation for a custom theme and specifically custom template file of the theme and user Poedit to create the pot template.
After translating the file one line in the template won't translate no matter what I do.
<?php echo __( 'Featured', 'mytextdomain' ); ?>
Possibly helpful additional info:
- this line isn't located within wordpress loop.
- If I remove
echo
part and leave only__()
it wont even output word "Featured" in English - I substitute
echo__()
with_e()
"Featured" outputs.
Similar issue also custom "read more" form functions.php isn't translated.
function new_excerpt_more($more) { global $post; return ' …' . __('<a class="more-link" href="'. get_permalink($post->ID) . '">Read More</a>'); }
There's got to be something I'm doing wrong here since everything else translates and outputs except these two instances.
any ideas what am I doing wrong?