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.www.ads-software.com/plugins/internationalization/localization/
- https://developer.www.ads-software.com/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.www.ads-software.com/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
- The topic ‘How to translate, internationalize functions.php file in Child Theme?And should’ is closed to new replies.