Bug 41989

Summary: addbook shows the translated interface
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Staff interfaceAssignee: Jonathan Druart <jonathan.druart>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41989: Rename $lang in addbooks

Description Jonathan Druart 2026-03-04 11:27:14 UTC
I was navigating thought Koha and once I hit addbook the UI switched to French (my browser set Accept-Language en-GB,fr;q=0.9,es;q=0.8,en;q=0.7)

I don't have the cookie lang. No idea what happened but I think the "$lang" variable in the controller might conflict with... a global $lang?

I don't have time to investigate more at the moment.
Comment 1 Jonathan Druart 2026-03-04 11:28:34 UTC
Created attachment 194442 [details] [review]
Bug 41989: Rename $lang in addbooks

I was navigating thought Koha and once I hit addbook the UI switched to French (my browser set Accept-Language en-GB,fr;q=0.9,es;q=0.8,en;q=0.7)

I don't have the cookie lang. No idea what happened but I think the "$lang" variable in the controller might conflict with... a global $lang?

It actually switched to French then Italian and German...
Comment 2 Jonathan Druart 2026-03-04 11:28:52 UTC
See screenrecord posted on MatterMost: https://chat.koha-community.org/koha-community/pl/m6ketiy9ypfxbryujdr3eq4qgw