Hello Themeco-Team,
Probably I’m overlooking something on https://theme.co/docs/theme-translations
The situation:
- functions.php contains
function load_child_language() {
load_child_theme_textdomain( ‘x’, get_stylesheet_directory() . ‘/languages’ );
}
add_action( ‘after_setup_theme’, ‘load_child_language’ ); - get_stylesheet_directory() . ‘/languages’ results in the path to wp-content/themes/pro-child/languages
- de_DE_formal.mo and de_DE_formal.po are in wp-content/themes/pro-child/languages
- de_DE_formal.mo contains strings like “Es tut uns leid”
- the language selected in /wp-admin/options-general.php is de_DE_formal
- when I open a non-existing page I still get the 404 with " Oops!"
What am I overlooking?
I also tried the alternative and loaded the theme translation by adding pro-de_DE_formal.po and pro-de_DE_formal.mo to wp-content/languages/themes
When I open another non-existing page I still get the 404 with " Oops!"
Any help is welcome.