EPrints Technical Mailing List Archive

Message: #03096


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: IRStats2 decimal symbol


I think this is hard-coded - I wrote a "human_display" method for decimals (in Stats::Utils) which uses comma as a separator.

This should be generalised via a phrase or something.

=> https://github.com/eprints/irstats2/issues/52

Seb.

On 02/06/14 09:22, John Salter wrote:
Hi Christian,
I've never had to do this - so don't know how well EPrints handles this.
I'd start looking at:
http://perldoc.perl.org/perllocale.html
  - although I can't see that many references to 'locale' in perl_lib.

Cheers,
John

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Centro de Documentación
Sent: 31 May 2014 22:25
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] IRStats2 decimal symbol

Hi guys,

How can I add dot as thousand separator and comma as decimal separator
instead of default symbols?

1,000 => 1.000 (one thousand)
62.4% => 62,4%

Regards,

Cristian
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/