Menu

#4 Correctly use language in perl Script

open
nobody
None
5
2005-01-17
2005-01-17
Nick Burch
No

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";

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.