How to translate, internationalize functions.php file in Child Theme?And should
-
Hi!
These are my first steps in translating WordPress. Using the tutorials below, I translated my first plugin.- https://developer.wordpress.org/plugins/internationalization/localization/
- https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-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:
https://developer.wordpress.org/themes/functionality/internationalization/.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!regards,
Grzegorz
- You must be logged in to reply to this topic.