webERP Forum

Full Version: Upgraded 4.15.2, The Language setting is invalid
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
No matter you log in to the system with any identity, and then modify the language settings, it will become “English United states" after saving and returning.
(09-11-2022, 09:52 AM)ALEXSHEN Wrote: [ -> ]No matter you log in to the system with any identity, and then modify the language settings, it will become “English United states" after saving and returning.
It was updating the database correctly, but it wasn't being correctly reflected in the user info screen.

I have updated the script, can you try this one and let me know if it works for you before I update it.

Tim
(09-11-2022, 09:32 PM)TimSchofield Wrote: [ -> ]No matter you log in to the system with any identity, and then modify the language settings, it will become “English United states" after saving and returning.
It was updating the database correctly, but it wasn't being correctly reflected in the user info screen.

I have updated the script, can you try this one and let me know if it works for you before I update it.

Tim
Thanks a lot, Tim,

But this modification doesn't seem to have a real effect. In the settings, after modifying the language, the settings page doesn't return to "English United States", it is right. But the entire system still maintains the English interface. No matter what language is selected, there is no way to change this, the interface still working in the English.

Alex
(09-11-2022, 10:16 PM)ALEXSHEN Wrote: [ -> ]But this modification doesn't seem to have a real effect. In the settings, after modifying the language, the settings page doesn't return to "English United States", it is right. But the entire system still maintains the English interface. No matter what language is selected, there is no way to change this, the interface still working in the English.

Alex

Well it fixes the error you reported, but shows another issue Shy

I think if you change line 20 in includes/LanguageSetup.php from
} else {
to
} elseif (!isset($_SESSION['Language'])) {
it should fix your problem. You may need to log out and back in for the fix to take affect.

Tim
Tim,

Thanks a lot! Now the problem is solved.

Alex
I have committed this fix and issued a pull request

Tim
Commit merged, thanks Tim!