User "Nikerabbit" posted a comment on MediaWiki.r96398.
Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96398#c22020
Commit summary:
"Did you mean" functionality now has three modes: enchant, soundex, aspell
(command-line aspell support copied from old version of the extension,
for those that do not want to mess with enchant)
Comment:
<pre>+ if ( $wgUser ) {
+ $aspellcommand .= ' --lang=' .
$wgUser->getDefaultOption( 'language' );
+ }
</pre>
This if statement is always true. But I think you actually want to use
$wgContLanguageCode here.
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview