Re: margins definition with LC_NUMERIC=pt_BR

Everton Luis Berz <[email protected]> Fri, 15 Jul 2005 17:29:59 -0300
Newsgroups gmane.text.rlib.user
Organization Faccat
Message-ID <[email protected]>
Margins still not works.

I am testing the numeric format for my locale, see results:

XML:
<field value="format(12345,'!$ %n')"/>
<literal width="3"/>
<field value="format(9876.54,'!# %.2f')"/>
<literal width="3"/>
<field value="format(123.45,'!$ %n')"/>
<literal width="3"/>

PDF - using rlib_set_locale($rlib, "pt_BR");
12.345,00 R$        9876,00      123,00 R$

PDF - using rlib_set_locale($rlib, "en_US");
$12,345.00       9876.54       $123.45


Decimal places at pt_BR dont works.
I think the margins problem is the same (because rlib
dont understand pt_BR decimal places).

-- 
Everton


Bob Doan escreveu:
> Use
> 
> rlib_set_locale($rlib, "pt_BR");
> 
> instead of setlocale
> 
> - bob
> 
> On Fri, 2005-07-15 at 16:12 -0300, Everton Luis Berz wrote:
> 
>>Hi,
>>when I use locale pt_BR my report are showing wrong margins.
>>The decimal separator in pt_BR is "," (comma)
>>
>>My PHP:
>>setlocale(LC_NUMERIC, "pt_BR");
>>@dl("rlib.so") or die("Gerador de relatórios não instalado!");
>>$rlib = rlib_init() or die(_("Gerador de relatórios não inicializado!"));
>>...
>>
>>My XML:
>><Report fontSize="10"
>>         orientation="portrait"
>>         paperType="'A4'"
>>         leftMargin="0.75"
>>         topMargin="0.40">
>>...
>>
>>
>>I tried use "0,75" and "0,40" but report shows nothing.
>>
>>Thanks,
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> _______________________________________________
> Rlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rlib-users
> 




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click