http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7445
--- Comment #7 from Magnus Enger <[email protected]> 2012-01-27 09:35:37 UTC --- (In reply to comment #6) > my $stemmer = Lingua::Stem::Snowball->new( lang => lc(substr($lang, 0, 2)), If only it were that simple... ;-) For the two variants of Norwegian, this would result in nb-NO -> nb nn-NO -> nn but neither of these are valid for Lingua::Stem::Snowball, which expects Norwegian to be coded as "no". I have done a quick and dirty hack for my installations which looks like this: $lang = substr($lang, 0, 2); if ($lang eq 'nb' || $lang eq 'nn') { $lang = 'no'; } but that is probably not the way to go... -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
