I use Illdy theme. I am translating as described (link).
I can translate for example ‘Comments are off for this post’,
but I can’t translate ‘search’ – I didn’t see it in pot file
and I can’t translate ‘Read More’ – I see it in illdy.pot but if I change this text and save po file there is no change on my website.
For ‘Comments are off for this post’ there is no problem. I translated it, save it in the same po file and I see the change on my website.
I see that all the homepage is in english, so can you please let me know what steps have you did until now towards the translation?
The read more text is already in languages > illdy.pot file, so you can already deal with via that file.
The search box should be automatic translated because as far as I can tell that widget is coming from the default wordpress files and the translate plugin should deal with it automatically.
Now, for the dinamic fields from customizer, there are 2 ways to deal with them.
First you fill the content and generate a new .pot file that includes that text string and you translate it there, or you use a plugin like qTranslate X that offers a custom field shortcode to deal with multiple languages: [:en]English Text[:de]Deutsch[:]
Let me know if the above got you forward with the setup.
I deleted all the Illdy .pot .po and .mo files from server.
Then I uploaded Illdy.pot once again.
I installed Loco Translate plugin and now if I change ‘Read More’ and ‘Search’ I see it changed on my site.
I uninstalled Wp Fastest Cache plugin too.
But I don’t know where was the problem. First I set my native language in Wordpress settings. Then
I translated with PoEdit or Loco Translate, but there was any change on my homepage. The text like ‘Search’ hadn’t translated automatically.
Hi…I had this working briefly with the illdy theme. I am integrating both English and Mandarin “Simple Chinese”. I am using Polylang for the posts and pages…and it has create dual pages for these and this seems to be working fine. I have implemented the code as you suggested and like I said it was working initially.
I think it broke when I updated the jumbotron from within the theme editor. I am using the illdy.po file and then I save it as zh_CN.po and I use poedit to generate a zh_CN.mo file and I’ve upgraded them both the server.
I have also created a child theme so that I don’t loose my customizations as I upgrade and update files. I have the languages PO files in the child theme as well as the illdy parent theme.
Any suggestions on why my string replacements with PO are not working all of the sudden? I am spinning my wheels and wasting a lot of time. This is frustrating…