[Bug 37257] New: Copy in OPAC datatable untranslatable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Bug ID: 37257 Summary: Copy in OPAC datatable untranslatable Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: I18N/L10N Assignee: koha-bugs@lists.koha-community.org Reporter: caroline.cyr-la-rose@inlibro.com QA Contact: testopia@bugs.koha-community.org CC: f.demians@tamil.fr, jonathan.druart@gmail.com Created attachment 168509 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168509&action=edit Screenshot of the patron's account in the OPAC in fr-CA, the Copy button is highlighted I can't find where to translate the "Copy" button in the OPAC datatables (I'm specifically looking at the checkouts table in the patron's account, but it's also in the holds tab, and I'm sure it's elsewhere too). To recreate: 0. Install fr-CA or another language in the OPAC 0.1. Run the following commands ./misc/translator/translate update fr-CA ./misc/translator/translate install fr-CA 0.2. Go to Administration > System preferences 0.3. Search for OPACLanguages and check fr-CA 0.4. Set opaclanguagesdisplay to Allow 0.5. Click Save all I18N/L10N preferences 1. Check that "Copy" is translated in the .po files 1.1. In the terminal, open misc/translator/po/fr-CA-opac-bootstrap.po 1.2. Search for Copy --> It should be translated to Copier 1.3. Open misc/translator/po/fr-CA-messages-js.po 1.4. Search for Copy --> It should be translated to Copier 2. Checkout an item to yourself (or to another patron) 2.1. At the top right, click you username and choose My checkouts 2.2. Enter the barcode 39999000010114 (or another barcode) 2.3. Press Enter or click Check out 3. Log into the OPAC 4. Switch the language to Français Canada 5. Access the user summary --> Notice the toolbar at the top of the checkouts table contains untranslated "Copy". "Imprimer" is translated. The others are hard to tell since they are the same in French and English (CSV, iCal) I looked at the koha-tmpl/opac-tmpl/bootstrap/js/datatables.js file and the Copy section looks the same (to me) as the Print section -- 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=37257 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |oleonard@myacpl.org |ity.org | Status|NEW |ASSIGNED -- 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=37257 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch 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=37257 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 168554 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168554&action=edit Bug 37257: Enable translation of Copy control in OPAC user summary Currently we define translatable labels for DataTables "export" options (Copy, CSV, Excel, and Print) in the section of datatables.js for adding our own configuration to these buttons. This works fine until we redefine a button without redefining the translatable label as we do in opac-user.pl. The correct solution is to define these strings in the default set of language strings we use for all other DataTable strings. This patch makes that change in both the staff interface and the OPAC (although the problem only currently manifests in the OPAC). To test, apply the patch and start the translation process: - Install fr-CA or another language in the OPAC 1. Run the following commands: - gulp po:update - ./misc/translator/translate update fr-CA - ./misc/translator/translate install fr-CA 2. Go to Administration > System preferences 3. Search for OPACLanguages and check fr-CA 4. Set opaclanguagesdisplay to Allow 5. Click "Save all I18N/L10N preferences" - Check that "Copy" is translated in the .po files 1. Open misc/translator/po/fr-CA-messages-js.po 2. Search for "Copy" --> It should be translated as "Copier" - Log in to the OPAC as a user with checkouts. - Switch to the language you translated. - View the user summary page. - The controls at the top of the table of checkouts should be correctly translated. - In the staff interface, switch to the language you translated. - Test any DataTable with export controls, e.g. Administration -> Libraries, to confirm that the "Export" menu items are still translated correctly. Sponsored-by: Athens County Public Libraries -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168554|0 |1 is obsolete| | --- Comment #2 from Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> --- Created attachment 168565 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168565&action=edit Bug 37257: Enable translation of Copy control in OPAC user summary Currently we define translatable labels for DataTables "export" options (Copy, CSV, Excel, and Print) in the section of datatables.js for adding our own configuration to these buttons. This works fine until we redefine a button without redefining the translatable label as we do in opac-user.pl. The correct solution is to define these strings in the default set of language strings we use for all other DataTable strings. This patch makes that change in both the staff interface and the OPAC (although the problem only currently manifests in the OPAC). To test, apply the patch and start the translation process: - Install fr-CA or another language in the OPAC 1. Run the following commands: - gulp po:update - ./misc/translator/translate update fr-CA - ./misc/translator/translate install fr-CA 2. Go to Administration > System preferences 3. Search for OPACLanguages and check fr-CA 4. Set opaclanguagesdisplay to Allow 5. Click "Save all I18N/L10N preferences" - Check that "Copy" is translated in the .po files 1. Open misc/translator/po/fr-CA-messages-js.po 2. Search for "Copy" --> It should be translated as "Copier" - Log in to the OPAC as a user with checkouts. - Switch to the language you translated. - View the user summary page. - The controls at the top of the table of checkouts should be correctly translated. - In the staff interface, switch to the language you translated. - Test any DataTable with export controls, e.g. Administration -> Libraries, to confirm that the "Export" menu items are still translated correctly. Sponsored-by: Athens County Public Libraries Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Picked from QA queue by RM ;) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to main Version(s)| |24.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Pushed for 24.11! Well done everyone, thank you! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |trivial -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com Version(s)|24.11.00 |24.11.00,24.05.06 released in| | Status|Pushed to main |Pushed to stable --- Comment #5 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Backported to 24.05.x for upcoming 24.05.06 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to stable |Pushed to oldstable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m Status|Pushed to oldstable |Pushed to oldoldstable Version(s)|24.11.00,24.05.06 |24.11.00,24.05.06,23.11.11 released in| | --- Comment #6 from Fridolin Somers <fridolin.somers@biblibre.com> --- Pushed to 23.11.x for 23.11.11 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37257 Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|Pushed to oldoldstable |RESOLVED CC| |wainuiwitikapark@catalyst.n | |et.nz --- Comment #7 from Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> --- Not backporting to 22.11 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org