[Bug 43933] New: When a list exists, Lists page does not load in Hindi
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 Bug ID: 43933 Summary: When a list exists, Lists page does not load in Hindi Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: I18N/L10N Assignee: koha-bugs@lists.koha-community.org Reporter: david_liddle@sil.org QA Contact: testopia@bugs.koha-community.org CC: caroline.cyr-la-rose@inlibro.com, f.demians@tamil.fr, jonathan.druart@gmail.com, julian.maurice@biblibre.com Target Milestone: --- Created attachment 209285 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209285&action=edit Screenshot of error message This bug came to light through the automated screenshots project, in which the backend KTD failed to produce a screenshot for Hindi when Cypress tried create one showing the Lists page with at least one existing list. All other installed languages (de-DE, el-GR, es-ES, fr-FR, zh-Hant-TW) load the page correctly. See https://koha-manual-screenshots.koha-community.org/images/listslist#screensh.... To reproduce: 1. Install the Hindi (hi) language (koha-translate --install hi --dev kohadev). 2. Enable Hindi in StaffInterfaceLanguages. 3. Create a new list with the Staff UI in any language. 4. Switch to Hindi. 5. Go to the Lists page (virtualshelves/shelves.pl). 6. Page displays the 'Processing' spinner but never loads. Additionally, a '200:OK' notice appears with Hindi text that Gemini interprets as, "Something went wrong while loading the table.." 7. A list's direct URL (virtualshelves/shelves.pl?op=view&shelfnumber=1) loads correctly. This error occurs in both main (26.06.00) and 24.11.20 (LTS). -- 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=43933 --- Comment #1 from Jonathan Druart <jonathan.druart@gmail.com> --- It has certainly to do with those 2 warnings: Wide character in warn at /kohadevbox/koha/misc/translator/VerboseWarnings.pm line 76. tmpl_process3.pl: Warning: inconsistent %s count: (6/5): line: 2720 msgid: "%s This value will be filled with the %s subfield of the selected bibliographic record. %s This value will be saved to the %s subfield of the selected bibliographi c record. %s %s " msgstr: "%s यह मान चयनित ग्रंथ सूची रिकॉर्ड के %s4सबफील्ड से भरा होगा। %s यह मान चयनित ग्रंथ सूची के %s सबफील्ड केrलिए सहेजाeजाएगा.t%sr" Wide character in warn at /kohadevbox/koha/misc/translator/VerboseWarnings.pm line 76. tmpl_process3.pl: Warning: inconsistent %s count: (4/5): line: 8694 msgid: "%s %s %s By %s." msgstr: "%s %s %s, द्वारा %s %s।" -- 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=43933 --- Comment #2 from Jonathan Druart <jonathan.druart@gmail.com> --- SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 36 column 250 of the JSON data "<a href='/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=1'>eza</a>", "dt_count": "1 आइटम", "dt_is_shared": "<span>निजी</span>", "dt_owner": "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=51'> koha</a>", "dt_category": ""<span>शीर्षक</span>", -- 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=43933 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |jonathan.druart@gmail.com |ity.org | Status|NEW |ASSIGNED -- 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=43933 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #3 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 209295 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209295&action=edit Bug 43933: Improve translatability in lists table Fix invalid JSON in lists table for translated templates The dt_sortby value in shelves_results.tt is badly built. Translations could break the JSON and so break DT. This patch moves labels into individual t() calls. Test plan: 1. Install the Hindi (hi) language (koha-translate --install hi --dev kohadev). 2. Enable Hindi in StaffInterfaceLanguages. 3. Create a new list with the Staff UI in any language. 4. Switch to Hindi. 5. Go to the Lists page (virtualshelves/shelves.pl). => Without this patch you get an error => With this patch applied the table loads correctly -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #4 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 209296 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209296&action=edit Bug 43933: Use t() for the "type" column Same as the previous patch, but for the "Type" column Test plan: Confirm that the page loads correctly -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #5 from David Liddle <david_liddle@sil.org> --- (In reply to Jonathan Druart from comment #4)
Created attachment 209296 [details] [review] Bug 43933: Use t() for the "type" column
Same as the previous patch, but for the "Type" column
Test plan: Confirm that the page loads correctly
The patch did not change the behavior in the following sandbox: https://sandboxes.koha-community.org/sandboxes/bug43933 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #6 from David Liddle <david_liddle@sil.org> --- The sandbox Plack errors show: [WARN] Use of uninitialized value in numeric eq (==) at /kohadevbox/koha/virtualshelves/shelves.pl line 65. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #7 from Jonathan Druart <jonathan.druart@gmail.com> --- (In reply to David Liddle from comment #5)
(In reply to Jonathan Druart from comment #4)
Created attachment 209296 [details] [review] [review] Bug 43933: Use t() for the "type" column
Same as the previous patch, but for the "Type" column
Test plan: Confirm that the page loads correctly
The patch did not change the behavior in the following sandbox: https://sandboxes.koha-community.org/sandboxes/bug43933
You have created the sandbox with the hindi language, then applied the patches. Try to install hindi again now. You should have selected hindi AND provided the bug number on the creation form. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 Community Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209295|0 |1 is obsolete| | Attachment #209296|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #8 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 209333 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209333&action=edit Bug 43933: Improve translatability in lists table Fix invalid JSON in lists table for translated templates The dt_sortby value in shelves_results.tt is badly built. Translations could break the JSON and so break DT. This patch moves labels into individual t() calls. Test plan: 1. Install the Hindi (hi) language (koha-translate --install hi --dev kohadev). 2. Enable Hindi in StaffInterfaceLanguages. 3. Create a new list with the Staff UI in any language. 4. Switch to Hindi. 5. Go to the Lists page (virtualshelves/shelves.pl). => Without this patch you get an error => With this patch applied the table loads correctly Signed-off-by: David Liddle <david_liddle@sil.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #9 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 209334 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209334&action=edit Bug 43933: Use t() for the "type" column Same as the previous patch, but for the "Type" column Test plan: Confirm that the page loads correctly Signed-off-by: David Liddle <david_liddle@sil.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 Community Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #10 from Community Sandboxes <sandboxes@biblibre.com> --- Signed off using a sandbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |katrin.fischer@bsz-bw.de |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |Main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209333|0 |1 is obsolete| | Attachment #209334|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #11 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 210060 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210060&action=edit Bug 43933: Improve translatability in lists table Fix invalid JSON in lists table for translated templates The dt_sortby value in shelves_results.tt is badly built. Translations could break the JSON and so break DT. This patch moves labels into individual t() calls. Test plan: 1. Install the Hindi (hi) language (koha-translate --install hi --dev kohadev). 2. Enable Hindi in StaffInterfaceLanguages. 3. Create a new list with the Staff UI in any language. 4. Switch to Hindi. 5. Go to the Lists page (virtualshelves/shelves.pl). => Without this patch you get an error => With this patch applied the table loads correctly Signed-off-by: David Liddle <david_liddle@sil.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #12 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 210061 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210061&action=edit Bug 43933: Use t() for the "type" column Same as the previous patch, but for the "Type" column Test plan: Confirm that the page loads correctly Signed-off-by: David Liddle <david_liddle@sil.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |26.11.00 released in| | Status|Passed QA |Pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 --- Comment #13 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Thanks everyone! Pushed to main for 26.11! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43933 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|When a list exists, Lists |When a list exists, lists |page does not load in Hindi |page does not load in Hindi -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org