From 6195d0c3192cb83ad317e1b0cc4c687a80e366df Mon Sep 17 00:00:00 2001 From: djfm Date: Mon, 23 Sep 2013 16:32:40 +0000 Subject: [PATCH] [*] LO : Use single quote as thousands separator for CHF currency --- classes/Tools.php | 2 +- controllers/admin/AdminCurrenciesController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Tools.php b/classes/Tools.php index 38aee11b6..302ea15f6 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -514,7 +514,7 @@ class ToolsCore break; /* 0 000.00 X Added for the switzerland currency */ case 5: - $ret = number_format($price, $c_decimals, '.', ' ').$blank.$c_char; + $ret = number_format($price, $c_decimals, '.', "'").$blank.$c_char; break; } if ($is_negative) diff --git a/controllers/admin/AdminCurrenciesController.php b/controllers/admin/AdminCurrenciesController.php index bf8690b64..0d7c7fc4f 100644 --- a/controllers/admin/AdminCurrenciesController.php +++ b/controllers/admin/AdminCurrenciesController.php @@ -151,7 +151,7 @@ class AdminCurrenciesControllerCore extends AdminController array('key' => 2, 'name' => '0 000,00X ('.$this->l('as with Euros').')'), array('key' => 3, 'name' => 'X0.000,00'), array('key' => 4, 'name' => '0,000.00X'), - array('key' => 5, 'name' => '0 000.00X') // Added for the switzerland currency + array('key' => 5, 'name' => '0\'000.00X') // Added for the switzerland currency ), 'name' => 'name', 'id' => 'key'