(bug 34977) Change Spanish formatnum behavior
authorFederico Leva <federicoleva@tiscali.it>
Tue, 20 Nov 2012 21:56:56 +0000 (22:56 +0100)
committerFederico Leva <federicoleva@tiscali.it>
Wed, 21 Nov 2012 23:13:29 +0000 (00:13 +0100)
Use non-breaking spaces as thousands separator.
Used the same $separatorTransformTable as in fr, it etc.
The format is the correct one according to official
standards and it's also currently in use "in the wild",
e.g. on Spanish Wikipedia, according to guidelines.

Change-Id: I1c9dfe1f02d907183fb671b7382f2eb706e57bab

RELEASE-NOTES-1.21
languages/messages/MessagesEs.php

index f9d691b..77db898 100644 (file)
@@ -95,6 +95,8 @@ regularly. Below only new and removed languages are listed, as well as
 changes to languages because of Bugzilla reports.
 
 * (bug 30040) Autonym for nds-nl is now 'Nedersaksies' (was 'Nedersaksisch').
+* (bug 34977) Now formatted numbers in Spanish use space as separator
+  for thousands, as mandated by the Real Academia Española.
 
 === Other changes in 1.21 ===
 
index 64430b5..b8b8f1a 100644 (file)
@@ -354,7 +354,7 @@ $dateFormats = array(
        'dmy both' => 'H:i j M Y',
 );
 
-$separatorTransformTable = array( ',' => '.', '.' => ',' );
+$separatorTransformTable = array( ',' => "\xc2\xa0", '.' => ',' );
 $linkTrail = '/^([a-záéíóúñ]+)(.*)$/sDu';
 
 $messages = array(