Bug Tracker item #2945937, was opened at 2010-02-04 13:22
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2945937&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: webui
Group: v3.9.0
>Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Andrey Ananin (waster2008)
Assigned to: Stevan Bajic (sbajic)
Summary: Russian webui translation

Initial Comment:
Hello, just finished Russian translation of DSPAM webui and attach it here. We 
use it in our production environment for our clients.

Installation notes:

As perl gd use default font for load text in graphs I had to change 
admingraph.cgi and graph.cgi to display fonts correctly also:

1. Change line 96 in admingraph.cgi 

$mygraph->set_legend_font(GD::gdMediumBoldFont);

to

$mygraph->set_x_label_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
 8);
$mygraph->set_y_label_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
 8);
$mygraph->set_legend_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf',
 10);

2. Change line 77 in admingraph.cgi 

$mygraph->set_legend_font(GD::gdMediumBoldFont);

to

$mygraph->set_x_label_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
 8);
$mygraph->set_y_label_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
 8);
$mygraph->set_legend_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf',
 10);

3, Make sure that /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf exist 
or in Debian you can install necessary font package via 'apt-get install 
ttf-dejavu'

Thanks.

----------------------------------------------------------------------

>Comment By: SourceForge Robot (sf-robot)
Date: 2010-05-28 02:20

Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Stevan Bajic (sbajic)
Date: 2010-03-31 11:43

Message:
> But can you confirm that tar.gz on
> 
>
http://sourceforge.net/projects/dspam/files/dspam/dspam-3.9.0/dspam-3.9.0.tar.gz/download
> 
> is actual stable 3.9.0 release on 12.01.2010?
> 
Yes. That is 3.9.0.


> As I mentioned I can't find "Adding TTF font support" feature in this
> sources.
>
That is because I added the TTF font support later to the source of DSPAM
and while the addition was before the release of 3.9.0 it still did not
make it into 3.9.0 because adding this into the release would have resulted
in another release candidate and our release manager did not wanted to make
another round with an release canditate.

----------------------------------------------------------------------

Comment By: Andrey Ananin (waster2008)
Date: 2010-03-30 20:34

Message:
Stevan, can you please answer on my question about 3.9.0 version and ttf
fonts support?

----------------------------------------------------------------------

Comment By: Andrey Ananin (waster2008)
Date: 2010-02-09 18:04

Message:
Any comments?

----------------------------------------------------------------------

Comment By: Andrey Ananin (waster2008)
Date: 2010-02-04 20:05

Message:
I'll prepare patches. And It seems that current parsing method of headers
of mbox messages is quite wrong because it just read line by line mbox
message and split it on ":" char to key->value. I think it is not good
because From or Subject header, for example, can occupy more than one line
and actually these are more frequent cases in messages.

But can you confirm that tar.gz on

http://sourceforge.net/projects/dspam/files/dspam/dspam-3.9.0/dspam-3.9.0.tar.gz/download

is actual stable 3.9.0 release on 12.01.2010?

As I mentioned I can't find "Adding TTF font support" feature in this
sources. 

----------------------------------------------------------------------

Comment By: Andrey Ananin (waster2008)
Date: 2010-02-04 14:45

Message:
...8)

Thanks for noting this, it is very useful. But it seems there is an old
configure.pl.in file in current stable DSPAM 3.9.0 tar.gz at Sourceforge
(https://sourceforge.net/projects/dspam/files/dspam/dspam-3.9.0/dspam-3.9.0.tar.gz/download).
But I see that "Adding TTF font support" was added on 2 Jan 2010 befor
release date. Why then downloaded tar.gz still does not have it?

As for webui translation it is full translation and thne should work out
of the box...8)

Also I suggest to add feature to encode MIME headers in history and
quarantine pages. I've already did it for Russian adaptation witn
MIME:Parser and Lingua::DetectCharset perl modules and webui hacks.

Thanks.

----------------------------------------------------------------------

Comment By: Stevan Bajic (sbajic)
Date: 2010-02-04 14:08

Message:
 y :)

If you use DSPAM 3.9.0 then the above hack is not needed. We already
implemented into DSPAM 3.9.0 the possibility to load custom fonts. Look at
configure.pl line 55:
http://dspam.git.sourceforge.net/git/gitweb.cgi?p=dspam/dspam;a=blob;f=webui/cgi-bin/configure.pl.in;hb=HEAD#l51

No need to patch anything. Just download DSPAM 3.9.0 and you are ready to
go.

Let me know if that is enough for you or if you need more changes in order
to get Russian labels in DSPAM WebUI?


-- 
Kind Regards from Switzerland,

Stevan Baji

----------------------------------------------------------------------

Comment By: Andrey Ananin (waster2008)
Date: 2010-02-04 13:31

Message:
Sorry, change line 77 in graph.cgi 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2945937&group_id=250683

------------------------------------------------------------------------------

_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to