aspell - PHP pspell can't find installed languageGet the solution ↓↓↓
I would like to use pspell in english, hungarian and slovak languages. I've installed both
sk language packs with
apt-get install aspell-hu and
apt-get install aspell-sk. If I check the installed dictionaries in aspell, I can see it's ok:
/# aspell dicts en en-variant_0 ... en_US-wo_accents hu sk sk-extended sk_SK sk_SK-extended
If I check a file with aspell in command line, it also works:
/# aspell --lang=hu check README.txt
But in PHP I've got the following error:
pspell_new(): PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "hu".
For english it just works fine.
Removed and reinstalled the php pspell package solved the problem. So the solution was:
#apt-get remove php5-pspell #apt-get install php5-pspell
People are also looking for solutions of the problem: illegal string offset
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.