Looks like this has been introduced in WordPress 6.7 - I have the following code:
$loaded = load_theme_textdomain(MY_TEXTDOMAIN,get_stylesheet_directory() . '/languages'); // internationalization
$locale = get_locale();
The locale is correct and available, load_them_textdomain() returns true but the language in the theme is English instead of German in this case.
Using de_DE_formal for the project. Did anyone experience a similar issue? How can it fail though the language is correctly loaded and set? Help would be really appreciated.
Looks like this has been introduced in WordPress 6.7 - I have the following code:
$loaded = load_theme_textdomain(MY_TEXTDOMAIN,get_stylesheet_directory() . '/languages'); // internationalization
$locale = get_locale();
The locale is correct and available, load_them_textdomain() returns true but the language in the theme is English instead of German in this case.
Using de_DE_formal for the project. Did anyone experience a similar issue? How can it fail though the language is correctly loaded and set? Help would be really appreciated.
The comment of Tom J Nowell has pointed me into the correct direction here it looks like this is really WordPress bug: https://core.trac.wordpress.org/ticket/62337
get_locale
? – mmm Commented Nov 18, 2024 at 11:09