[Koha-bugs] [Bug 17827] Untranslatable "by" in MARC21slim2intranetResults.xsl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 26 13:56:23 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17827

--- Comment #3 from Serhij Dubyk <dubyk at ukr.net> ---
Before this patch in file en-GB-marc-MARC21.po present next paragraph:

#:
/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl:457
#, fuzzy, c-format
msgid "by "
msgstr " by "

According string "by " in the file MARC21slim2intranetResults.xsl can not be
translated (in other languages).

After applying this patch performed the following command:
cd /usr/share/koha/misc/translator
sudo env KOHA_CONF=/etc/koha/sites/mykohainstance/koha-conf.xml
PERL5LIB=/usr/share/koha/lib perl -I /usr/share/koha/lib "./translate" update

Now in the file en-GB-marc-MARC21.po present the following (modified)
paragraph:

#:
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl:348
#:
/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl:457
#, fuzzy, c-format
msgid "by "
msgstr " by "

And the string " by " becomes available for translation in
uk-UA/xslt/MARC21slim2intranetResults.xsl (and other language versions)

This can be checked the command
sudo koha-translate --update uk-UA

In the file uk-UA/xslt/MARC21slim2intranetResults.xsl string 'by <p class =
"author">' is now translated.

-- 
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