Bug 26308 - Normal view (vue normale) is not displayed in French
Summary: Normal view (vue normale) is not displayed in French
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: 20.05
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-27 14:05 UTC by Joel
Modified: 2021-06-14 21:29 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel 2020-08-27 14:05:17 UTC
OPAC Normal view is working as expected in English (or German, if that matters), but if I switch to French (fr-CA or fr-FR) it is just not displayed (MARC or ISBD work fine, though)

I have obviously tried any option I could think of with koha-translate (update, uninstall / reinstall, etc)

This is on a Debian 9 with Koha 20.05.02-1 (but the problem was already here in 19.11). Since the upgrade didn't sort the problem, I decided to report a bug.

As far as I can track it (which is not very far and may be completely off) the XSLTBloc on /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-CA/modules/opac-detail.tt line 131 returns nothing:

[% IF ( OPACXSLTDetailsDisplay ) %]
 [% XSLTBloc | $raw %]
[% ELSE %]

I am happy to test patches or give further details if required. 

Thanks for Koha, which is such a useful tool!!!!
Comment 1 Caroline Cyr La Rose 2020-08-28 14:34:15 UTC
Katrin pointed to the   character in .po files. After testing, I found that this was exactly the problem.

To correct it on your installation (commands may vary, I use a "vintage" installation style)

1- Open the file fr-CA-marc-MARC21.po in a text editor and search and replace all instances of   and replace them by a regular space character, save
2- translate install fr-CA
3- Ctrl+F5 in your browser

Should do the trick.

I will correct the .po files on Pootle for new installations.
Comment 2 Caroline Cyr La Rose 2020-08-28 14:50:20 UTC
fr-CA-marc-MARC21.po is corrected in the Koha 20.05 project on Pootle.

I'm not sure if there's anything else I should do...
Comment 3 Jonathan Druart 2020-09-01 10:51:04 UTC
Caroline, the problem should be fixed for 19.11.x too apparently, and maybe 19.05 (needs to be confirmed).
Comment 4 Caroline Cyr La Rose 2020-09-01 13:22:28 UTC
Hi Jonathan,

I did the same corrections on Pootle for 19.11, 19.05 and 18.11.

Caroline
Comment 5 Jonathan Druart 2020-09-01 13:50:32 UTC
Great, thanks!
Comment 6 Joel 2020-09-01 13:57:17 UTC
Indeed, manually editing fr-CA-marc-MARC21.po and doing a koha-translate -u fr-CA did the trick.

Thanks everyone for your help!
Comment 7 Caroline Cyr La Rose 2020-09-02 13:30:49 UTC
Katrin or Jonathan, do you know if   is a problem also in other .po? I only corrected fr-CA-MARC-marc21.po, but I'm wondering if I should remove all instances in all files...
Comment 8 Katrin Fischer 2020-09-02 13:34:00 UTC
(In reply to Caroline Cyr La Rose from comment #7)
> Katrin or Jonathan, do you know if   is a problem also in other .po? I
> only corrected fr-CA-MARC-marc21.po, but I'm wondering if I should remove
> all instances in all files...

I believe it's a problem for the ones that are used to generate strings in XML files. This shoudl be the UNIMARC po file only. But I haven't tested it out explicitly.
Comment 9 Caroline Cyr La Rose 2020-09-02 13:39:40 UTC
afaik, UNIMARC is not used here. So unless someone complains, I won't spend time on that file :)
Comment 10 Katrin Fischer 2020-09-02 18:27:52 UTC
(In reply to Caroline Cyr La Rose from comment #9)
> afaik, UNIMARC is not used here. So unless someone complains, I won't spend
> time on that file :)

Oops. Sorry, MARC21 and NORMARC would have the same problem :(
Comment 11 Caroline Cyr La Rose 2020-09-02 18:32:59 UTC
(In reply to Katrin Fischer from comment #10)
> (In reply to Caroline Cyr La Rose from comment #9)
> > afaik, UNIMARC is not used here. So unless someone complains, I won't spend
> > time on that file :)
> 
> Oops. Sorry, MARC21 and NORMARC would have the same problem :(

Same. :) afaik, only MARC21 is used here in Canada. So I'll leave it like that and correct it if someone complains.