Spanish Translate

Hello,
i’m trying to translate only two words of the theme unite. “Continue Reading” for “Leer más”. I’ve changed with poEdit, doesn’t work. With Loco TRanslate plugin, doesn’t work. I’ve edited unite.pot file or content.php and doesn’t work. Where do i have to change this?

Hi @edgin,

I hope you are well today and thank you for your question.

You can try changing it by translating the plugin as described on the following page or by using that attached small plugin that contains custom code to change “Continue Reading” to “Leer más”.

Best Regards,
Movin

Hi! @edgin @Movin

I don’t know if it’s de same problem, but in extras.php, in folder inc, ther is this function:

function unite_excerpt_more( $more ) {
  return ' <a class="more-link" href="'. get_permalink( get_the_ID() ) . '">Continue reading <i class="fa fa-chevron-right"></i></a>';
}
add_filter( 'excerpt_more', 'unite_excerpt_more' );

Continue reading it’s not a text ready for translation, making a change:

function unite_excerpt_more( $more ) {
  return ' <a class="more-link" href="'. get_permalink( get_the_ID() ) . '">'. __( 'Continue reading', 'unite' ) .' <i class="fa fa-chevron-right"></i></a>';
}
add_filter( 'excerpt_more', 'unite_excerpt_more' );

And now it works!

Thank for your work and sorry for my english.

Hi @f314,

I hope you are well today and thanks for notifying us about the issue.

Your help here is really appreciated.

I have notified the issue to the theme developer so that it will be fixed in the future version of theme.

Thanks,
Movin