These are my first steps in translating WordPress. Using the tutorials below, I translated my first plugin.
Everything id OK and works as it should 🙂
My question concerns the situation where my code is so short that it doesn’t make sense to create plugin. So, my code containing the strings I want to translate is in the functions.php file in the Child Theme.
I thought that since the functions.php file contains in the Child Theme folder, I should treat it like the internationalization of the theme:
Using Poedit, from the functions.php file, I generated .po and .mo files and used everything that is described in the above tutorial. Unfortunately it didn’t work.
How should I internationalize functions.php file?
I will be very grateful for any help on this topic!
- You must be logged in to reply to this topic.