• Resolved antoniomc76

    (@antoniomc76)


    Hi!
    Thank you for this great theme. I’ve noticed some strings are not translated (into Spanish in my case): ‘Next post” “previous post” are displayed as is (in single posts), as well as “Continue reading” in the index page. I suppose these texts are hardcoded, so is there any way to translate them?
    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi there – I’m looking into this and will get back to you soon. Nothing is hard-coded and everything should be translatable, but something’s not working quite right with those strings, even after translating them and re-downloading a new .mo file. I’ll keep you posted here.

    Moderator Kathryn Presner

    (@zoonini)

    Could you give these steps a try:

    1. Head to GlotPress:
    https://translate.wordpress.com/projects/wpcom/themes/libre/es/default
    2. From the dropdown menu at the bottom left, choose the .mo file format option, and click Export to download the Polish translation file and save it on your hard drive:
    https://cloudup.com/i3ofwUfrjM7
    3. Rename the file libre-es_ES.mo on your hard drive.
    4. Upload the file to your site in this spot in your WordPress install:
    /wp-content/languages/themes/libre-es_ES.mo
    I just tested this on my site and “Continue reading” is now showing in Spanish:
    https://cloudup.com/cCF0_1VSJhw

    Let me know how it goes.

    Thread Starter antoniomc76

    (@antoniomc76)

    Hi!
    Thanks for your answer. I managed to translate ‘Continue reading’ by changing these lines in functions.php:

    function libre_continue_reading_link() {
    	return '&hellip; <a class="more-link" href="'. esc_url( get_permalink() ) . '">' . sprintf( wp_kses_post( __( 'Seguir leyendo <span class="screen-reader-text">%1$s</span> <span class="meta-nav" aria-hidden="true">&rarr;</span>', 'libre' ) ), esc_attr( strip_tags( get_the_title() ) ) ) . '</a>';
    }

    However, I think your solution is better.
    By the way, I’ve completed the Spanish translation on Glotpress (some strings were missing, for example, ‘next post‘ or ‘previous post‘).
    Thanks again.

    Thread Starter antoniomc76

    (@antoniomc76)

    [resolved]

    Moderator Kathryn Presner

    (@zoonini)

    Yes, the problem with editing the theme files is that your changes will be lost every time you update the theme to the latest version.

    By the way, I’ve completed the Spanish translation on Glotpress (some strings were missing, for example, ‘next post’ or ‘previous post’).

    Thanks for that! I’ll see about getting a volunteer to validate the translations so they can go live.

    Moderator Kathryn Presner

    (@zoonini)

    Your translations at GlotPress have been approved.

    aovivo

    (@aovivo)

    Hi there, I got the same problem here with the ‘continue reading’ tag…
    I tried Glotpress (German) but could not find the string. All Strings there look that they are already translated but the system says that there ar just 82% translated.

    However, I changed the line in the function.php but it did NOT change the translation…
    cant get it to work…
    page I am working on is https://tinyurl.com/zdwupeh

    Please help.
    thanks
    Pedro

    Moderator Kathryn Presner

    (@zoonini)

    Pedro – please start a new thread since your question is about a different language, and don’t use a link shortener when providing links, per forum etiquette. Thanks!

    https://www.ads-software.com/support/theme/libre

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Some texts are not translated’ is closed to new replies.