gettext problem

gettext problem

Postby lvalenzu » Mon Mar 29, 2010 7:43 am

Hello:

i problem with gettext("menssage"), when put in the title of table not work, but if put out the table is working. what is the problem,

thanks and regards

Luis
lvalenzu
 
Posts: 4
Joined: Mon Mar 29, 2010 7:38 am

Re: gettext problem

Postby sraps » Tue Mar 30, 2010 4:44 pm

I can not confirm this. I have tried to reproduce the problem, but it just works fine. If it still does not work, please try to provide test template.

Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: gettext problem

Postby lvalenzu » Sun Apr 04, 2010 3:52 am

hello sraps:

attach the template i use, in the second column the title is <_("Description")> and the report in not working, if you change <_("Description")> for Description is working OK, in the template put the <_("Description")> after y before the table and working.

ubuntu 8.04
openerp 5.07
openoffice 3.1

regards

Luis
Attachments
invoice.zip
(16.32 KiB) Downloaded 2604 times
lvalenzu
 
Posts: 4
Joined: Mon Mar 29, 2010 7:38 am

Re: gettext problem

Postby sraps » Mon Apr 05, 2010 4:23 pm

Hi,
I can confirm that there is some problem with the template you attached, but I can not tell what exactly it is, at least for now. Will have to give it another look. Now it looks like some problem with styling, but that is just a guess.

Still, what I discovered from the template, it seems, that you are using templates created by Report Designer software by Tiny. If you would look closer, you would notice that the layout of tables are pretty crappy due to limitations of Report Designer and RML as such. There is absolutely no need to use such quirks as nested tables in most cases.

I am sure, that, if you would redesign the template from scratch and put those fields inside your fresh template, it would not create any problems...

Best regards
Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: gettext problem

Postby sraps » Mon Apr 05, 2010 5:14 pm

I discovered where is the problem... Please see the LP bug report for reference:
https://bugs.launchpad.net/report-openoffice/+bug/555751

For temporary workaround you can place another setLang function just before the directive which is not working as it is supposed to.

Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: gettext problem

Postby sraps » Mon Apr 12, 2010 10:38 am

Hi,
Have done dissection and throughout examination of your template...
What we have discovered, only internal table (invoice lines) are in the body all the rest are inside header and footer elements, including data that is related to invoice itself. Which is not good, by itself, because then it is not possible to use headers and footers defined in a global stylesheet. Headers and footers are defined as styles and are applied to all (ALL) pages with the same style. So if you place data from the object to header thy will appear on all the subsequent pages as well.

Other not so good things about template, the tables inside one another, and frames above them. Although this directly does not affect this case, it may render problems with processing sequence of our data.

Conclusion - there are two options, first one is to move all the data from header and footer to the body of document. If it is absolutely unaceptable, you have to place another setLang directive just before contents of the document (invoice lines).

B.R.

Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm


Return to Aeroo Reports & OpenOffice.org Reporting Engine

cron
Copyright © 2001 Alistek Ltd., ALL RIGHTS RESERVED