number format should be localized

2009-02-16 Thread Giuseppe Sacco
Hi all,
on w.d.o main page we present the number of total packages on the
current stable distribution. This number is packages_in_stable so it
is added to the html page by a macro expansion or something similar.

I am wondering if this number could be formatted according to the page
locale. In Italian it should be 25.113 while it is 25113.

Is this possibile?

Thanks,
Giuseppe


-- 
To UNSUBSCRIBE, email to debian-www-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: number format should be localized

2009-02-16 Thread Matt Kraai
On Mon, Feb 16, 2009 at 03:18:49PM +0100, Giuseppe Sacco wrote:
 on w.d.o main page we present the number of total packages on the
 current stable distribution. This number is packages_in_stable so it
 is added to the html page by a macro expansion or something similar.
 
 I am wondering if this number could be formatted according to the page
 locale. In Italian it should be 25.113 while it is 25113.
 
 Is this possibile?

I'm sure it's possible, but I don't know how easy it would be.  Maybe
one of the resident WML experts could comment?

-- 
Matt http://ftbfs.org/


-- 
To UNSUBSCRIBE, email to debian-www-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: number format should be localized

2009-02-16 Thread Alberto

*Giuseppe* wrote:

I am wondering if this number could be formatted according to the page
locale. In Italian it should be 25.113 while it is 25113.


Absolutely I don't agree.
In 1982 Sandro Pertini (former President of Italian Republic) signed a 
law that oblige everyone to use the International System (in Italy, of 
course). (*)
According to CGPM (**) dot . and comma , are ONLY a decimal 
separator and NEVER a thousand separator.

The official thousand separator is the space  , but it can be omitted.
So, according to international agreements, the correct number should be 
25 113 or 25113.
Most Italian people make this kind of mistake, because the former 
thousand separator was the upper point (a dot put in a position similar 
to apostrophe), a type which is not present of the common keyboard. 
IMHO this is not a sufficient excuse.
We have some universal convention that makes works in every kind of 
science simpler.
I don't think that Debian should break it, so please don't use that 
wrong syntax.

Regards,
Alberto

(*) I can post the law, but obviously it's in italian
(**) 
http://en.wikipedia.org/wiki/General_Conference_on_Weights_and_Measures

and http://www.bipm.org/jsp/en/ViewCGPMResolution.jsp?CGPM=22RES=10
declares that the symbol for the decimal marker shall be either the 
point on the line or the comma on the line,
reaffirms that Numbers may be divided in groups of three in order to 
facilitate reading; neither dots nor commas are ever inserted in the 
spaces between groups, as stated in Resolution 7 of the 9th CGPM, 
1948.


Spazio INFINITO per i tuoi messaggi con AOL email! Registrati ora gratis


--
To UNSUBSCRIBE, email to debian-www-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: number format should be localized

2009-02-16 Thread Giuseppe Sacco
Hi Alberto,

Il giorno lun, 16/02/2009 alle 14.01 -0500, Alberto ha scritto:
 *Giuseppe* wrote:
  I am wondering if this number could be formatted according to the page
  locale. In Italian it should be 25.113 while it is 25113.
 
 Absolutely I don't agree.
 In 1982 Sandro Pertini (former President of Italian Republic) signed a 
 law that oblige everyone to use the International System (in Italy, of 
 course). (*)
 According to CGPM (**) dot . and comma , are ONLY a decimal 
 separator and NEVER a thousand separator.
[...]

while I might agree with you on what should be used as separators (and
I'm not, currently), I am not asking here to use a peculiar one just for
web pages.
My question is about supporting locales for formatting these numbers
related to quantities on our web pages.

Then, if you think Italian locale is wrong in Debian, please submit a
bug report against the relevant package.

Thanks,
Giuseppe


-- 
To UNSUBSCRIBE, email to debian-www-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: number format should be localized

2009-02-16 Thread Alberto
*Giuseppe* wrote:
 I am wondering if this number could be formatted according to the
 page locale. In Italian it should be 25.113 while it is 25113.
 Absolutely I don't agree.
 In 1982 Sandro Pertini (former President of Italian Republic) signed
 a law that oblige everyone to use the International System (in Italy,
 of course). (*)
 According to CGPM (**) dot . and comma , are ONLY a decimal 
 separator and NEVER a thousand separator.
[...]
 while I might agree with you on what should be used as separators (and
 I'm not, currently),

There is noting to agree.
The official thousand separator is   in the whole Earth (but it can be
omitted).
Any other type is not correct, as stated in the international
agreements.
I know that often in English-US you can find , and in Italian ., but
it is definitively wrong.
There is a law. There a treaty. Nothing to think, just to enjoy everyone
to use the same symbols to avoid confusion.
After centuries of different units we have one official system. Why
don't use it, especially when there is a law that obliged to use it?

It seems the bad attitude to use R:  instead of Re:  in some
mailreaders translated to Italian (e.g. Microsoft Outlook Express,
Libero webmail, AOL webmail and so on).
RFC says Re:  then let's use Re: . Don't waste time with non
conforming syntax!

 I am not asking here to use a peculiar one just for
 web pages.
 My question is about supporting locales for formatting these numbers
 related to quantities on our web pages.

Yes, this could be a right question, but the International System of
measure is *one*, so you shouldn't care about it.
Just use one kind of format for every version of webpage.

Please note that this agreement about thousand separator was signed
about 60 years ago. This is not new!

 Then, if you think Italian locale is wrong in Debian, please submit a
 bug report against the relevant package.

What is the relevant package?
However Etch's /usr/share/i18n/locales/it_IT (not yet switched to Lenny)
shows:
| LC_NUMERIC
| decimal_point U002C
| thousands_sep 
| grouping  0;0
| END LC_NUMERIC
which is correct, since the thousand separator is not mandatory.

Regards,
Alberto


-- 
To UNSUBSCRIBE, email to debian-www-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org