From 0f876a3c239252233b8466ae89e299883d3b9ed1 Mon Sep 17 00:00:00 2001 From: Federico Leva Date: Tue, 20 Nov 2012 22:56:56 +0100 Subject: [PATCH] (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 --- RELEASE-NOTES-1.21 | 2 ++ languages/messages/MessagesEs.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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( -- 2.20.1