From ae1ec5f2cfc2d9916feba1bff122539b3a6edb3b Mon Sep 17 00:00:00 2001 From: luciferfran Date: Fri, 16 Feb 2018 13:01:36 +0100 Subject: [PATCH] =?UTF-8?q?Use=20proper=20=E2=82=AC=20symbol=20for=20curre?= =?UTF-8?q?ncy=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also place the symbol after the figure as it is by far the most common usage according to https://en.wikipedia.org/wiki/Language_and_the_euro#Summary Closes #379 --- CHANGELOG.md | 1 + src/PhpSpreadsheet/Style/NumberFormat.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d4bf4e5..31c6df07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Avoid potentially unsupported PSR-16 cache keys - [#354](https://github.com/PHPOffice/PhpSpreadsheet/issues/354) - Check for MIME type to know if CSV reader can read a file - [#167](https://github.com/PHPOffice/PhpSpreadsheet/issues/167) +- Use proper € symbol for currency format - [#379](https://github.com/PHPOffice/PhpSpreadsheet/pull/379) ## [1.1.0] - 2018-01-28 diff --git a/src/PhpSpreadsheet/Style/NumberFormat.php b/src/PhpSpreadsheet/Style/NumberFormat.php index 6632b517..b18a97d3 100644 --- a/src/PhpSpreadsheet/Style/NumberFormat.php +++ b/src/PhpSpreadsheet/Style/NumberFormat.php @@ -47,7 +47,8 @@ class NumberFormat extends Supervisor const FORMAT_CURRENCY_USD_SIMPLE = '"$"#,##0.00_-'; const FORMAT_CURRENCY_USD = '$#,##0_-'; - const FORMAT_CURRENCY_EUR_SIMPLE = '[$EUR ]#,##0.00_-'; + const FORMAT_CURRENCY_EUR_SIMPLE = '#,##0.00_-"€"'; + const FORMAT_CURRENCY_EUR = '#,##0_-"€"'; /** * Excel built-in number formats.