Closed hartenthaler closed 2 years ago
Thank you for testing the module.
For English, the language codes are "en-AU", "en-GB", and "en-US".
However, I agree that the module should be more defensive and should not react with an error message in case of &language=xxx. Currently, the only check is that the language is not empty. I will search for a possibility to test for existing locales.
Arguably, webtrees should also test for an existing language. The related code to set the language is:
Session::put('language', $language);
If I do not find an easy solution in my module code, I will raise a ticket in webtrees.
Good idea! I see it the same way.
Robustness measures added to the code in order to check for appropriate language tag. If a wrong language tag is provided, an error message is shown.
Your module is working for "de" or "cs" (using .../index.php?route=%2Ftree%2Ftree3&language=de). But it is not working for "en":
And it is not working for "xxxx".
I don't know if this has to be fixed in your module or in the webtrees core.