Show
Ignore:
Timestamp:
11/29/06 20:28:35 (17 years ago)
Author:
jerome
Message:

Now prepares datas for ReportLab? 2.x

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkinvoice

    r3069 r3079  
    142142        self.canvas.setFont("Helvetica-Bold", size) 
    143143        self.canvas.setFillColorRGB(0, 0, 0) 
    144         self.canvas.drawRightString(xcenter, self.ypos, "%s :" % label) 
     144        self.canvas.drawRightString(xcenter, self.ypos, "%s :" % self.userCharsetToUTF8(label)) 
    145145        self.canvas.setFont("Courier-Bold", size) 
    146146        self.canvas.setFillColorRGB(0, 0, 1) 
    147         self.canvas.drawString(xcenter + 0.5*cm, self.ypos, value) 
     147        self.canvas.drawString(xcenter + 0.5*cm, self.ypos, self.userCharsetToUTF8(value)) 
    148148        self.canvas.restoreState() 
    149149        self.ypos -= (size + 4) 
     
    231231        self.canvas.setFont("Helvetica-Bold", 14) 
    232232        self.canvas.setFillColorRGB(0, 0, 0) 
    233         self.canvas.drawCentredString(xcenter, self.ypos, "%s :" % _("Here's the invoice for your printouts")) 
     233        msg = _("Here's the invoice for your printouts") 
     234        self.canvas.drawCentredString(xcenter, self.ypos, "%s :" % self.userCharsetToUTF8(msg)) 
    234235         
    235236        self.yorigine = self.ypos