Languages - (was RE: Comments on version 4.00.0a13-1)

Julian Field mailscanner at ecs.soton.ac.uk
Thu Oct 17 11:30:25 IST 2002


At 09:18 17/10/2002, you wrote:
> > -----Original Message-----
> > From: Denis Beauchemin [mailto:Denis.Beauchemin at USHERBROOKE.CA]
> > Sent: 16 October 2002 20:09
> >
> > I have some problems with config files:
> > "Hide Incoming Work Dir = yes"  but my McAfee scans return:
> > /g9GHwad17379/bugbear.virus   contient le virus W32/Bugbear at MM
> > (I've translated McAfee's output in French in SweepViruses.pm but this
> > should have no impact on the problem).  I had the same
> > problem with V3.
>
>Just out of interest is there any thought on adding some form of locale
>support in Mailscanner?
>
>I'm thinking of an option in the config file like "Software Language =
>fr", then you'd have a directory structure like:
>
>Mailscanner/
>         etc/
>         bin/
>         ...
>         languages/
>                 fr/
>                         strings.pl
>                         virus.warning.txt
>                         ...
>                         sender.warning.txt
>                 en/
>                         strings.pl
>                         virus.warning.txt
>                         ...
>                 ...
>
>The text files would naturally be translated into a sensible default
>message in each language.  The strings.pl file would contain something
>like:
>
>$langstring['fr'].containsvirus = 'contient le virus';
>$langstring['fr'].isstarting = 'MailScanner commence';  (whatever!)
>
>Then the code would be genericised, replacing all static text strings
>with $langstring["$config.language"].staticstringkeyword
>
>Or has this already been done, I must admit I'm not managing to keep up
>at the moment?

I've got a structure that looks like
etc/reports/en
etc/reports/de
as I've only got English and German at the moment. You have to change the
directory name explicitly in the mailscanner.conf file I'm afraid. For the
small amount of text involved, it's easier just to translate each file
rather than construct the messages from translated sentences.
And yes, the syslog messages stay in English.

I admit the current system isn't ideal, but....
--
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ



More information about the MailScanner mailing list