[Bug 30676] New: View all ... preferences links don't work for translations
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30676 Bug ID: 30676 Summary: View all ... preferences links don't work for translations Change sponsored?: --- Product: Koha Version: 20.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Templates Assignee: oleonard@myacpl.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org When you search for a preference, you can see a link "View all x preferences" with x being the heading related preferences are listed under. The problem is, that while the link uses the English ID, the ID on the heading gets translated, so the links are broken. Example: View all self check-in preferences https://elk-wue.bsz-bw.de:8080/cgi-bin/koha/admin/preferences.pl?tab=circula... But the heading translated is: <h3 id="Selbstr_ckgabe"><i class="fa fa-caret-down"></i> Selbstrückgabe</h3> (There also appears to be an encoding issue) This is because the heading and the ID get translated by Pootle and it's the same string for description and ID: https://translate.koha-community.org/de/21.11/translate/de-DE-pref.po#unit=1... It's sad, because the feature is so nice :( -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30676 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30676 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor Summary|View all ... preferences |View all ... preferences |links don't work for |links don't work when GUI |translations |language doesn't match --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Actually: This does work. Both id attribute and anchor are build with: [% LINE.title | $HtmlId %] But this means that the link in a German GUI is different from the English GUI and any other translated one. So when someone shares a link, it only works, if they have the same active language. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30676 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart+koha@gmail. | |com --- Comment #2 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- That's tricky, I have no idea how to fix that! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30676 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|20.11 |master --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I am not sure either, apart from having an id in the yaml file for the different headings maybe to use instead of the translated string? I marked it minor after figuring out it was not totally broken, just depending on the active language. I think it's not a high priority one. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org