Archived topic
Add string translation to child theme
3 replies · Started by Tobias on February 13, 2019
Hi,
I includes some parts in my child theme, where I display messages like this:
_e('This is some text','generatepress');
Now I need to translate this into german. Which is the best was to do this?
Thank you.
Hi there,
You'd likely need to use your own text domain (instead of generatepress).
Then you'd need to include a function like this to set the text domain and point to where the languages folder will be: https://developer.wordpress.org/reference/functions/load_child_theme_textdomain/
Thank you!
You're welcome :)