View Single Post
Old 05-14-2022, 06:01 PM   #862
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 495
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by capink View Post
I can confirm the bug happens to me as well. Also can confirm that your fix solves the problem.

The reason for the bug is that set_translators.lang returns None for people who have English language as their interface language. Both yourself and Terisa de Morgan have languages other than English (languages that need translators), so the bug cannot be caught on your systems.

You can test this yourself by temporarily switching to English.
Oh, Aah.
I found it strange because sometimes I test my plugin/module in others languages but I had never seen that because when I switch to English, I use "English (United Kingdom)" which returns en_GB, but there is another "English" (the true default) which gives None.
I take note of this subtility.

Also, edit my code to not raise a execption with this case. try catch a exception is a emergency solution, not the default or valide way.

Last edited by un_pogaz; 05-14-2022 at 06:09 PM.
un_pogaz is online now   Reply With Quote