- This topic has 5 replies, 2 voices, and was last updated 6 years, 8 months ago by Andrew Misplon.
Tagged: translate
- AuthorPosts
- March 21, 2018 at 2:20 pm #9124
odomaloParticipantHello,
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.March 21, 2018 at 3:27 pm #9133
Andrew MisplonKeymasterHi 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.March 22, 2018 at 8:13 am #9141
odomaloParticipantHello 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.April 2, 2018 at 2:30 pm #9226
Andrew MisplonKeymasterHi 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
April 4, 2018 at 11:40 am #9273
odomaloParticipantHello 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.
April 4, 2018 at 12:53 pm #9275
Andrew MisplonKeymasterHey Alex
I’m not sure why that’s the case. I can see You May Also Like on line
1505
of theultra.pot
file.You can copy the entire function into your child theme from
inc/template-tags.php
. Copy lines166
to209
into your childfunctions.php
file. - AuthorPosts
You must be logged in to reply to this topic.