$node->language is empty.
Command like looks like:

/usr/bin/aspell -a --lang= -d  --sug-mode=normal < /tmp/spellcheck/1277741810207/aspell.txt

Where -d is without value.
That cause following error:

Error: You must specify a parameter for "-d".

How to set default language?

Comments

kenorb’s picture

Maybe we should define default language in definition of spellcheck() function:
Current definition:

function spellcheck($strings, $language, $sug_mode = 'normal') {

New definition:

function spellcheck($strings, $language = 'en', $sug_mode = 'normal') {
kenorb’s picture

Or:

    $aspell = variable_get('spellcheck_aspell_binary', 'aspell');
    if (empty($language)) {
        $language = 'en';
    }
    $output = shell_exec("$aspell -a --lang=$language -d $language --sug-mode=$sug_mode < $path");
xano’s picture

Status: Active » Closed (won't fix)

The new code uses Pspell, rather than Aspell through the command line. This issue is now obsolete.