Translate a WordPress Genesis child theme
When using WordPress, I prefer to translate files with .mo and .po files.
To translate a WordPress Genesis child theme, do the following:
Create a folder /languages in the child theme.
Copy the genesis.pot file from the mother theme under /genesis/lib/languages to the new folder. Note that the child theme doesn't have a lib folder. With a /lib folder it won't work!
Next, in the child theme funtions.php file, copy this over:
define('GENESIS_LANGUAGES_DIR', STYLESHEETPATH.'/languages'); define('GENESIS_LANGUAGES_URL', STYLESHEETPATH.'/languages');
This snippet should be on the top of the functions.php file, after the opening php tag and before include_once.
Finally, use a program like poedit to create a .mo and .po file with the necessary translations.
If you want to translate everything, you can start at https://translate.studiopress.com/global/projects/.