EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #00502


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Eprints error Language code unknown


Hi Igor,

I feel very stupid for assuming "uk" = "United Kingdom" now :-) Sorry...

I imagine that there are no Stemmer for the Ukranian language for Xapian (yet), I assume that the Russian Stemmer will be the closer match for you (but I understand you don't want to set 'ru' as your default language).

At the moment, the Stemmer is loaded for $c->{defaultlanguage} (or use 'en' if that fails) but this doesn't take into consideration of "local" language (eg Flemish vs. Dutch) so it seems like we need to have an extra configuration variable to set the stemmer.

I'll try to come up with a patch, I'll be in touch.

Seb.


On 04/05/12 12:13, Ігор Ростиславович wrote:
Ok. Thanks. I loked at that table...I use 2 languages on the site. English and Ukrainian. uk on my site is Ukrainian language. What defaultlanguage property do? I didn't find any changes on the site after setting it on "en" (Just on the search).
--



2012/5/4 Sebastien Francois <sf2@ecs.soton.ac.uk>
Hi Igor,

Ha good!.. in 3.3.8, we didn't use the Xapian Stemmer (the thing that brought the error in 3.3.9) so it makes sense that it worked then. Generally 'uk' is not a valid language code (the language is English aka 'en'). See http://en.wikipedia.org/wiki/ISO_639.

I don't know what goes wrong in the advanced search / creators (note that Xapian only deals with the simple search, not the advanced one). Perhaps Tim B will have something to say on that one.

Seb.



Thanks! I changed to en
$c->{defaultlanguage} = 'en'; , and now it's work!
In previous version (3.3.8) my  defaultlanguage was set to uk and works normal too. Interesting... =)
Is it ok If my default lang is uk and I set en?


On 03/05/12 18:52, Ігор Ростиславович wrote:
Also, I found one more problem in Xapian. When I try to search in the field Creators in Cyrillic it show me 0 results. In English it's ok.
--



2012/5/3 Ігор Ростиславович <admin@oa.edu.ua>
Thanks! I changed to en $c->{defaultlanguage} = 'en'; , and now it's work!
In previous version (3.3.8) my  defaultlanguage was set to uk and works normal too. Interesting... =)
Is it ok If my default lang is uk and I set en?
--
Ihor



2012/5/3 Sebastien Francois <sf2@ecs.soton.ac.uk>
I reproduced the error, try applying:

http://trac.eprints.org/eprints/changeset/7676

However, change your default language to something else than 'uk' ;-)


Seb.

On 03/05/12 15:10, Ігор Ростиславович wrote:
Hello. I had upgrade eprints to 3.3.9 from 3.3.8.
After upgrade, fast search stop work. When I type something it shows me: Internal Server Error
In error logs i see: [error] Exception: Language code uk unknown How can I fix it? Thanks.

---

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/



*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/