aspell - PHP pspell can't find installed language
Get the solution ↓↓↓I would like to use pspell in english, hungarian and slovak languages. I've installed bothhu
andsk
language packs withapt-get install aspell-hu
andapt-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.
Answer
Solution:
Removed and reinstalled the php pspell package solved the problem. So the solution was:
#apt-get remove php5-pspell
#apt-get install php5-pspell
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: cannot add or update a child row: a foreign key constraint fails
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.
Similar questions
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.