Schnell writes:

> First of all I'd like to thank the programmer's for their great work.
> Nice tool guys!

Thanks.

> Most people who are using BackupPC 3.0 (Final) in our company are
> speaking german, but fore some it would be nice if we could change
> the language e.g. into English, France ...
>
> I've added the line "$Conf{Language}" in the <host>.pl file to "fr".
> At first sight everything looks great. The main site of my client in
> the CGI-Webinterface is france, but when I click on a Backup (I've
> made before) I get everything on german again. Could this be a bug?
>
> In the main config.pl "$Conf{Language}" is set to "de".

The $Conf{Language} setting was not designed to be set on a per-host
basis.  But as you noticed, it almost does the right thing.  Some
parts of the CGI code (eg: backup browsing) don't read the per-host
config file (to save time), and that's why the per-host setting
doesn't work.  The host summary works because the blackout
information is displayed, and that can per host specific.

It should be easy to fix.  In lib/BackupPC/CGI/HostInfo.pm you will
notice these two lines of code:

    ConfigRead($host);
    %Conf = $bpc->Conf();

You should add those same two lines near the top of the action()
subroutine in lib/BackupPC/CGI/Browse.pm (after $host is set)
and other CGI components that don't read the file.

> Am I right in thinking that when I set "$Conf{Language}" in the
> <host>.pl file e.g. to "fr" that the user will get mails in
> france too?

I believe so (since the per-host config is read prior to each
email being sent), but I haven't tested it.

Craig

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to