The source code we are using can be found here: https://gitorious.org/bossteam/youad/blobs/master/youad/youad/invoice/model.py
Look around line: 189<https://gitorious.org/bossteam/youad/blobs/master/youad/youad/invoice/model.py#line189> self.pdf.drawString((LEFT)*mm, (TOP)*mm, _("Client")) That text is being extracted into the pot and po files however it is never being translated when we create the PDF document in Chinese for example. None of the translations for the Invoice class are working. Maybe we are just missing a simple setting?? The rest of the sites translations work so I don't think it is a global setting we are missing. On Fri, Nov 4, 2011 at 10:09 PM, cd34 <[email protected]> wrote: > On Nov 4, 8:03 pm, Bruce Wade <[email protected]> wrote: > > We are trying to use translation when generating a PDF file from a > request. > > However for some reason the locale for the string is extracted from the > > file however when generating the PDF it never translates. > > > > Any suggestions on how to translate for reportlab using pyramid? > > when using canvas.textLines(_('translated text')), you're saying > reportlab is ignoring it? > > I just tested v2.5 and a quick test worked for me. > > There are some characters that may not render based on the font you've > chosen. > > Can you supply some sample code that doesn't work? > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.warplydesigned.com http://www.fitnessfriendsfinder.com -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
