[Koha] French (fr-FR) Translator problem

InLibro Test caroline.cyr-la-rose at inlibro.com
Sun Sep 25 06:32:55 NZDT 2022


Hi!

This is due to a rogue “ ” (code for non breaking space, in case it doesn’t show up in my message) in one of the marc translation files. 

If you have access to the .po files, open either fr-FR-marc-MARC21.po or fr-FR-marc-UNIMARC.po depending on the marc flavour you are using in your system, search for “ ”, replace it with a regular space, save the file, and reinstall the language. 

I hope this helps,

Caroline Cyr La Rose

> Le 24 sept. 2022 à 11:06, amandeep.kapila at aol.in a écrit :
> 
> Dear all,
> I am adding some language to my Koha OPAC and Staff Client. I can add the languages, as desired, with koha-translate package service but unfortunately its not working as expected for French (fr-FR). When I enable French on either of the interfaces the search results display no bibliographic/metadata for the records, only blank spaces, although it returns exact number of results. 
> I have tried with both Zebra and Elasticsearch, same result. For other languages (Spanish, Arabic etc.) everything shows OK. Even the Canadian version of French (fr-CA) is also working. Its happening both in OPAC and Staff Client. 
> The plack opac error logs display message like below,
> [2022/09/22 11:00:56] [WARN] Use of uninitialized value $field in substitution (s///) at /usr/share/koha/lib/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 1108.[2022/09/22 11:00:57] [WARN] XSLT::Base: /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:269: parser error : Entity 'nbsp' not defined <span class="label">Ãditeur : </span>                                   ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:325: parser error : Entity 'nbsp' not defined <xsl:with-param name="langLabel">Langue : </xsl:with-param>                                              ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:376: parser error : Entity 'nbsp' not defined <span class="results_summary series"><span class="label">Collection : </sp                                                                          ^compilation error: file /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slim2OPACResults.xsl element importxsl:import : unable to load /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl at /usr/share/koha/lib/Koha/XSLT/Base.pm line 342.[2022/09/22 11:00:57] [WARN] XSLT::Base: /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:269: parser error : Entity 'nbsp' not defined <span class="label">Ãditeur : </span>                                   ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:325: parser error : Entity 'nbsp' not defined <xsl:with-param name="langLabel">Langue : </xsl:with-param>                                              ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:376: parser error : Entity 'nbsp' not defined <span class="results_summary series"><span class="label">Collection : </sp                                                                          ^compilation error: file /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slim2OPACResults.xsl element importxsl:import : unable to load /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl at /usr/share/koha/lib/Koha/XSLT/Base.pm line 342.[2022/09/22 11:00:57] [WARN] XSLT::Base: /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:269: parser error : Entity 'nbsp' not defined <span class="label">Ãditeur : </span>                                   ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:325: parser error : Entity 'nbsp' not defined <xsl:with-param name="langLabel">Langue : </xsl:with-param>                                              ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:376: parser error : Entity 'nbsp' not defined <span class="results_summary series"><span class="label">Collection : </sp                                                                          ^compilation error: file /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slim2OPACResults.xsl element importxsl:import : unable to load /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl at /usr/share/koha/lib/Koha/XSLT/Base.pm line 342.[2022/09/22 11:00:57] [WARN] XSLT::Base: /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:269: parser error : Entity 'nbsp' not defined <span class="label">Ãditeur : </span>                                   ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:325: parser error : Entity 'nbsp' not defined <xsl:with-param name="langLabel">Langue : </xsl:with-param>                                              ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:376: parser error : Entity 'nbsp' not defined <span class="results_summary series"><span class="label">Collection : </sp                                                                          ^compilation error: file /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slim2OPACResults.xsl element importxsl:import : unable to load /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl at /usr/share/koha/lib/Koha/XSLT/Base.pm line 342.[2022/09/22 11:00:57] [WARN] XSLT::Base: /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:269: parser error : Entity 'nbsp' not defined <span class="label">Ãditeur : </span>                                   ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:325: parser error : Entity 'nbsp' not defined <xsl:with-param name="langLabel">Langue : </xsl:with-param>                                              ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:376: parser error : Entity 'nbsp' not defined <span class="results_summary series"><span class="label">Collection : </sp                                                                          ^compilation error: file /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slim2OPACResults.xsl element importxsl:import : unable to load /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl at /usr/share/koha/lib/Koha/XSLT/Base.pm line 342.[2022/09/22 11:00:57] [WARN] XSLT::Base: /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:269: parser error : Entity 'nbsp' not defined <span class="label">Ãditeur : </span>                                   ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:325: parser error : Entity 'nbsp' not defined <xsl:with-param name="langLabel">Langue : </xsl:with-param>                                              ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:376: parser error : Entity 'nbsp' not defined <span class="results_summary series"><span class="label">Collection : </sp                                                                          ^compilation error: file /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slim2OPACResults.xsl element importxsl:import : unable to load /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl at /usr/share/koha/lib/Koha/XSLT/Base.pm line 342.[2022/09/22 11:00:57] [WARN] XSLT::Base: /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:269: parser error : Entity 'nbsp' not defined <span class="label">Ãditeur : </span>                                   ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:325: parser error : Entity 'nbsp' not defined <xsl:with-param name="langLabel">Langue : </xsl:with-param>                                              ^/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:376: parser error : Entity 'nbsp' not defined <span class="results_summary series"><span class="label">Collection : </sp                                                                          ^compilation error: file /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slim2OPACResults.xsl element importxsl:import : unable to load /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl at /usr/share/koha/lib/Koha/XSLT/Base.pm line 342.[2022/09/22 11:00:57] [WARN] XSLT::Base: /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/fr-FR/xslt/MARC21slimUtils.xsl:269: parser error : Entity 'nbsp' not defined <span class="label">Ãditeur : </span>                                   ^.......................................................................................................................................................................................................
> Seems like some xslt parser issue.
> Kindly help,
> 
> 
> _______________________________________________
> 
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha



More information about the Koha mailing list