- Issue created by @phma
- 🇬🇧United Kingdom james.williams
Interesting! I can confirm I can make that bug show up on my client site, though the patch doesn't appear to actually fix it. Not sure why yet, but I'm also not sure special casing the language name is the right way to go. Why does it need special treatment in that way? Surely it's valid for the translation of a language name to use fallbacks, but to ensure it doesn't fallback when a name is available in the current / more specific language?
- 🇨🇭Switzerland phma Basel, CH
I checked my patch again in a clean Drupal 9.5.x installation with only langauge_herarchy 2.x-dev enabled and can confirm that the bug is both present and fixed by the patch I've provided.
As why the special casing, I don't know. It has to do how Drupal deals with language configuration. If I remove it, language_hiearchy wrongly assumes there is no current translation and always uses the fallback instead of the default translation, which is wrong.