[Bug 26895] New: Template process failed: file error - parse error - patron-title.inc line 37: unexpected token ('<span) [% span_start = '<span class="patron-title">‘ %] at /usr/share/koha/lib/C4/Templates.pm line 122.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26895 Bug ID: 26895 Summary: Template process failed: file error - parse error - patron-title.inc line 37: unexpected token ('<span) [% span_start = '<span class="patron-title">‘ %] at /usr/share/koha/lib/C4/Templates.pm line 122. Change sponsored?: --- Product: Koha Version: 20.05 Hardware: PC OS: Linux Status: NEW Severity: major Priority: P5 - low Component: Templates Assignee: oleonard@myacpl.org Reporter: xescjp@hotmail.com QA Contact: testopia@bugs.koha-community.org Hello: I have installed Koha 20 in Ubuntu 20LTS through command line. I have installed ca-ES language. The intranet interface appears translated. When I try to add a new user (member)in the intranet part I get this error: Template process failed: file error - parse error - patron-title.inc line 37: unexpected token ('<span) [% span_start = '<span class="patron-title">‘ %] at /usr/share/koha/lib/C4/Templates.pm line 122. To install the new language I had to do following: BEFORE: I created following folders : /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/ca-ES /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/ca-ES If I don't create these folders before, translation command says that the folders no exists. I gave 777 permissions to koha-conf.xml file (before langugage installation) THEN: I excuted the followinfg command. sudo koha-translate --install ca-ES To install Koha I followed this web page instructions: https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages Thank you very much. francescjp -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26895 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic@tamil.fr Version|20.05 |master Assignee|oleonard@myacpl.org |koha-bugs@lists.koha-commun | |ity.org Component|Templates |I18N/L10N --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Confirmed: intranet-tmpl/prog/ca-ES/includes/patron-title.inc is generated with the wrong markup: [%- span_start = '<span class="patron-title">‘ %] [%- span_end = ‘</span>' %] Note the "‘" character where there should be a single quote. -- 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=26895 --- Comment #2 from francesc <xescjp@hotmail.com> --- But this happens with clean installation. I don't have written this character anywhere. This error is caused with installation. I use catalan language that contains this character. May be the default catalan templates use this character. But this character is common used in this language. So the site would be configured in order to process it. I guess it may be the problem. Any clues abiut the problem? Thank you very much. -- 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=26895 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- The mistake was in the translation files, I fixed them. It was: ‘ %%] [%%- span_end = ‘ https://translate.koha-community.org/ca/translate/#search=span&sfields=source,target,locations&soptions=exact,case&unit=6524062&offset=10 You can either fix the file mentioned by Owen in comment#1 manually or wait for the next bug fix release when this will be fixed by an update to the translation files. -- 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=26895 --- Comment #4 from francesc <xescjp@hotmail.com> --- Solved. Thank you very much for your help. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org