[Koha-bugs] [Bug 7445] Clicking on a tag gives "Language ... does not exist"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 27 10:28:32 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7445

Fridolyn SOMERS <fridolyn.somers at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fridolyn.somers at gmail.com

--- Comment #6 from Fridolyn SOMERS <fridolyn.somers at gmail.com> 2012-01-27 09:28:32 UTC ---
(In reply to comment #5)
> 
> 1. These "long" language codes need to be reduced to two-letter codes that
> Lingua::Stem::Snowball will accept. 


I confirm Lingua::Stem::Snowball needs a 2-characters lang.

It can be simply corrected in Search.pm : 
my $stemmer = Lingua::Stem::Snowball->new( lang => lc(substr($lang, 0, 2)),
encoding => "UTF-8" );

See :
http://annocpan.org/~CREAMYG/Lingua-Stem-Snowball-0.952/lib/Lingua/Stem/Snowball.pm

(Sorry, I don't have time to create a patch).

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list