Plugin Author
Ajay
(@ajay)
This can be done by creating a language file for the plugin in this folder
/wp-content/languages/plugins. You will need to create this folder if it doesn’t exist.
You can do the translations using PoEdit
You can also use Loco Translate – https://ww.wp.xz.cn/plugins/loco-translate/ for this.
I’ve tried but there isn’t such string. There are many strings that can be translated for the backend interface but not for the widget being displayed on frontend
Plugin Author
Ajay
(@ajay)
I’ve tried using Loco Translate, but it doesn’t work. String keeps unchanged
Plugin Author
Ajay
(@ajay)
Have you tried creating a .po / .mo file either using Loco or PoEdit and then saving it in the languages folder?
Please see below the tutorial from WP Beginner in case of any doubt – http://www.wpbeginner.com/wp-tutorials/how-to-translate-a-wordpress-plugin-in-your-language/
Turns out this is not a newbie problem. There is a problem with the word ” by ” including the spaces. I am using Poedit and can translate other words and sentences fine except the ” by ” that appears before the author on the public pages.
I have been going nuts over this as I thought I was doing something wrong and this word was my first target, but when I tried translating other words (at least in the admin section), it worked fine with my .po and .mo files which are saved in the following location:
wordpress\wp-content\plugins\top-10\languages
I’ll be skipping the author field until this is fixed.
Plugin Author
Ajay
(@ajay)
I’ve looked at the code and noticed there is a bug there where it is using the wrong language domain. Should be top-10
I will fix this in the next version.
Excellent, thank you!
Best wishes
Róbert Badí