[Seaside] Number localisation

Boris Popov, DeepCove Labs boris at deepcovelabs.com
Sat Apr 23 23:33:50 UTC 2011


If you're using per-session locales, that API becomes much simpler too, but wouldn't illustrate the example as nicely.

Sent from my iPhone

On 2011-04-23, at 19:23, "Boris Popov, DeepCove Labs" <boris at deepcovelabs.com> wrote:

> In VisualWorks,
> 
>  
> 
> (Locale named: 'en') numberPolicy print: 1000.23 using: '#,##0.00' '1,000.23'
> 
> (Locale named: 'fr') numberPolicy print: 1000.23 using: '#,##0.00' '1 000,23'
> 
> (Locale named: 'es') numberPolicy print: 1000.23 using: '#,##0.00' '1.000,23'
> 
>  
> 
> self:  a NumberPrintPolicy
> 
> decimalPoint:  $, "16r002C"
> 
> groupingSize:  3
> 
> localeID:  #es
> 
> policy:  nil
> 
> thousandsSeparator:  $. "16r002E"
> 
>  
> 
> -Boris
> 
>  
> 
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Sebastian Sastre
> Sent: 23 April 2011 19:15
> To: Seaside - general discussion
> Subject: [Seaside] Number localisation
> 
>  
> 
> Hi guys,
> 
>  
> 
> so... ideas to do number localisation?
> 
>  
> 
> How do you guys deal with it?
> 
>  
> 
> sebastian 
> 
>  
> 
> o/
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110423/d49572af/attachment.htm


More information about the seaside mailing list