[Resolved] Translate strings

Tagged: 

  • Author
    Posts
  • #9124

    odomalo
    Participant

    Hello,

    for the Ultra-Premium Theme, I am trying to translate to Spanish some string with Loco Translate. It works fine, but the problem is that there are some strings that can’t be found: “You May Also Like” , “View Post by” or the text inside the comments fields (Name, Email, Website).
    How can I translate these strings? Where is the source of these texts?

    Thank you,
    Alex.

    #9133

    Andrew Misplon
    Keymaster

    Hi Alex

    Thanks for reaching out.

    Sorry about that. You may also like and View post by are missing from the .pot file. I’ll do my best to get an update out this week. If not, very early next week.

    In comments.php we’re using <?php comment_form(); ?>. This means that we aren’t directly listing the comment form strings within the theme. Is your WordPress installation set to the correct language? These strings should be automatically translated.

    #9141

    odomalo
    Participant

    Hello Andrew,

    this is also strange for me. All the WP is in spanish and I don’t understand why these strings aren’t. I have tested with other Themes and the same happens, so the problem must be on WP.
    It would be great if you can add this string on the .pot file.

    Thanks,
    Alex.

    #9226

    Andrew Misplon
    Keymaster

    Hi Alex

    Thanks for the wait.

    The updated .pot file and excerpt function is included in todays update. I’d love to help with the comment issue but I can’t include strings in the .pot file that aren’t in the theme. The file is automatically built by scanning the theme folder. In this case using Poedit.

    If any issues arise, please, let me know.

    Thanks

    #9273

    odomalo
    Participant

    Hello Andrew,

    thanks for the help, but still not able to translate some strings. Do you know where I can find the “Related_post” function? Maybe I can change the string there.

    Thanks.

    #9275

    Andrew Misplon
    Keymaster

    Hey Alex

    I’m not sure why that’s the case. I can see You May Also Like on line 1505 of the ultra.pot file.

    You can copy the entire function into your child theme from inc/template-tags.php. Copy lines 166 to 209 into your child functions.php file.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Scroll to top