[Koha-bugs] [Bug 34433] New: 'Custom cover image' in lightbox is untranslatable
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jul 27 15:21:58 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34433
Bug ID: 34433
Summary: 'Custom cover image' in lightbox is untranslatable
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: I18N/L10N
Assignee: koha-bugs at lists.koha-community.org
Reporter: caroline.cyr-la-rose at inlibro.com
QA Contact: testopia at bugs.koha-community.org
CC: frederic at tamil.fr
Created attachment 153974
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153974&action=edit
Sample records
In the staff interface, when viewing a custom cover image in the lightbox, at
the bottom, it says 'Custom cover image'. This string is not translatable.
To test:
Note: I attached a file of sample (MARC21) records that I use for various image
sources, in which one record has a URL to an image in 956$u, you can import
this file into Koha, if needed
- Download the attached marc file (coverimages.mrc)
- In the Koha staff interface, go to Cataloging > Stage records for
import
- Click the "Choose file" or "Browse" button and choose the downloaded
file
- Click "Upload file"
- Click "Stage for import"
- Click "View detail of the enqueued job"
- Click "View batch"
- Click "Import this batch into the catalog"
1. Enable CustomCoverImages
1.1. Go to Administration > System preferences
1.2. Search for CustomCoverImages
1.3. Select "Show" in CustomCoverImages
1.4. Set CustomCoverImagesURL to {956$u}
1.5. Click "Save all Enhanced content preferences"
2. Install new language
2.1. gulp po:update --lang fr-CA
2.2. Search for "Custom cover image" in the staff-prog.po file, make sure it
is translated
2.3. Install translations
./misc/translator/translate install fr-CA
2.4. In the staff interface, go to Administration > System preferences
2.5. Search for language
2.6. Check the box next to the newly installed language
2.7. Click "Save all I18N/L10N preferences"
3. View the image in the lightbox in the staff interface
3.1. If using the attached records, search the catalog in the staff
interface for "As you like it";
If not using the file, add an image URL in 956$u, or finagle something
with CustomCoverImagesURL
3.2. Click on the title to view the detailed record
3.3. Click on the image to view it in the lightbox
--> In the image box, notice that it says "Custom cover image"
3.4. Click the X to close the lightbox
5. Change the language of the staff interface
6. Reopen the lightbox
--> The caption of the lightbox is still "Custom cover image" in the other
language even if the string was translated in the po file
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list