From: Federico Leva Date: Tue, 20 Nov 2012 21:56:56 +0000 (+0100) Subject: (bug 34977) Change Spanish formatnum behavior X-Git-Tag: 1.31.0-rc.0~21546 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=0f876a3c239252233b8466ae89e299883d3b9ed1;p=lhc%2Fweb%2Fwiklou.git (bug 34977) Change Spanish formatnum behavior 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 --- diff --git a/RELEASE-NOTES-1.21 b/RELEASE-NOTES-1.21 index f9d691bda4..77db898abd 100644 --- a/RELEASE-NOTES-1.21 +++ b/RELEASE-NOTES-1.21 @@ -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 === diff --git a/languages/messages/MessagesEs.php b/languages/messages/MessagesEs.php index 64430b5f65..b8b8f1a134 100644 --- a/languages/messages/MessagesEs.php +++ b/languages/messages/MessagesEs.php @@ -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(