Correctly use language in perl Script
Brought to you by:
jshimada
The perl script has $lang defined in it, but aspell
doesn't seem to be using it. To get aspell to use it,
need to use --language-tag:
--- spellchecker.cgi.old 2005-01-17
16:08:24.000000000 +0000
+++ spellchecker.cgi 2005-01-17 16:06:59.000000000 +0000
@@ -8,7 +8,7 @@
my @textinputs = param( 'textinputs[]' ); # array
my $aspell_cmd = 'aspell';
my $lang = 'en_GB';
-my $aspell_opts = "-a";
+my $aspell_opts = "-a --language-tag=$lang";
my $input_separator = "A";