【问题标题】:PHP pspell can't find installed languagePHP pspell 找不到安装的语言
【发布时间】:2017-09-28 19:55:08
【问题描述】:

我想在英语、匈牙利语和斯洛伐克语中使用 pspell。我已经使用apt-get install aspell-huapt-get install aspell-sk 安装了husk 语言包。如果我在 aspell 中检查已安装的字典,我可以看到它没问题:

/# aspell dicts
en
en-variant_0
...
en_US-wo_accents
hu
sk
sk-extended
sk_SK
sk_SK-extended

如果我在命令行中使用 aspell 检查文件,它也可以:

/# aspell --lang=hu check README.txt

但在 PHP 中我遇到以下错误:

 pspell_new(): PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "hu".

对于英语来说,它工作得很好。

【问题讨论】:

    标签: php aspell


    【解决方案1】:

    删除并重新安装了 php pspell 包解决了这个问题。所以解决方案是:

    #apt-get remove php5-pspell
    
    #apt-get install php5-pspell
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-12-29
      • 2012-02-25
      • 2019-05-14
      • 2020-05-23
      • 1970-01-01
      • 2014-03-18
      • 1970-01-01
      相关资源
      最近更新 更多