Bug 41989 - addbook shows the translated interface
Summary: addbook shows the translated interface
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-04 11:27 UTC by Jonathan Druart
Modified: 2026-03-04 11:28 UTC (History)
1 user (show)

See Also:
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 (2.07 KB, patch)
2026-03-04 11:28 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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