[Bug 32008] New: String "Not for loan " not translated to german "Nicht ausleihbar"
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32008 Bug ID: 32008 Summary: String "Not for loan " not translated to german "Nicht ausleihbar" Change sponsored?: --- Product: Koha Version: 22.05 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: System Administration Assignee: koha-bugs@lists.koha-community.org Reporter: hansulrich.frink@gmail.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com Created attachment 142694 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142694&action=edit screenshot of missing transllation In our German install of Koha 22.05 the string "Not for loan " is not translated to german "Nicht ausleihbar" When searching for journals on our koha library site www.opac.genealogie-lahndill.de that string remains in English language. Please see attachment. I found no way to exchange strings. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32008 Hans Ulrich Frink <hansulrich.frink@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32008 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- It's not only in German - it doesn't translate in general for a programming problem. I've tried to fix it, but failed so far. See bug 30352. *** This bug has been marked as a duplicate of bug 30352 *** -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32008 --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- For a workaround you can try to set the "Nicht-Ausleihbar" status in the items. You might also need to make the item type "for loan" then - but maybe it works already if both are set. The problem appears when the "Not for loan" is derived from the itemtype being set to 'for reference'. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32008 --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- You can also fix it by translating the string with jQuery/Javascript - I can help with that later, if you are interested. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32008 --- Comment #4 from Hans Ulrich Frink <hansulrich.frink@gmail.com> --- (In reply to Katrin Fischer from comment #3)
You can also fix it by translating the string with jQuery/Javascript - I can help with that later, if you are interested.
Hi Karin, that would be fine. I know about jquery and use it on my own websites, but it may be different on koha. we could chat or video is also possible on senfcall or jitsi, as you prefer. Just make a time/date proposal. As I have retired I got time. cheers Uli -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32008 --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- You can paste this in your OpacUserJs system preference: $( document ).ready(function() { $("html[lang='de-DE'] .notforloandesc:contains('Not for loan')").text('Nicht ausleihbar'); }); You can find more examples for the use of jQuery in Koha in the wiki at https://wiki.koha-community.org/wiki/JQuery_Library :) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32008 --- Comment #6 from Hans Ulrich Frink <hansulrich.frink@gmail.com> --- Thanks for your help, Karin. In the end "_Not" was missing in the selector, so for further interest the following is the full workaround: $("html[lang='de-DE'] .notforloandesc_Not:contains('Not for loan')").text('Nicht ausleihbar'); Thank you again for your quick help Uli -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32008 --- Comment #7 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Hans Ulrich Frink from comment #6)
Thanks for your help, Karin.
In the end "_Not" was missing in the selector, so for further interest the following is the full workaround:
$("html[lang='de-DE'] .notforloandesc_Not:contains('Not for loan')").text('Nicht ausleihbar');
Thank you again for your quick help
Uli
Maybe there is a difference in versions - I had tested/written it with the latest development version. Maybe something to keep in mind to test after the next update. Glad you could make it work. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org