EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03117
< 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
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: IRStats2 decimal symbol
- From: Centro de Documentación <cendocu@gmail.com>
- Date: Thu, 5 Jun 2014 14:15:22 -0300
Hi, I added dot as thousand separator changing this line: /plugins/EPrints/Plugin/Stats/Utils.pm -229 $human = ( $d ? ",$1" : "$1" ).$human; +229 $human = ( $d ? ".$1" : "$1" ).$human; Regards, On Mon, Jun 2, 2014 at 10:42 AM, Centro de Documentación <cendocu@gmail.com> wrote: > Hi, > > I dont' known but is it related to this topic? > > https://developers.google.com/chart/interactive/docs/reference?hl=es#numberformatter > > decimalSymbol > groupingSymbol > > > On Mon, Jun 2, 2014 at 6:23 AM, Sebastien Francois <sf2@ecs.soton.ac.uk> wrote: >> 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/ >> >> *** 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/
- References:
- [EP-tech] IRStats2 decimal symbol
- From: Centro de Documentación <cendocu@gmail.com>
- [EP-tech] Re: IRStats2 decimal symbol
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: IRStats2 decimal symbol
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Re: IRStats2 decimal symbol
- From: Centro de Documentación <cendocu@gmail.com>
- [EP-tech] IRStats2 decimal symbol
- Prev by Date: [EP-tech] Re: Sanitising output
- Next by Date: [EP-tech] Default email address for requests
- Previous by thread: [EP-tech] Re: IRStats2 decimal symbol
- Next by thread: [EP-tech] Add Funders to editors screen
- Index(es):