We're updating the issue view to help you get more done. 

Currency values get extra space after currency identifier in nl_NL locale


Using the Dutch locale (nl_NL) after saving a currency value an extra space is added between the currency identifier and the sum.
(€500 or € 500 becomes € 500)
On a next save this results in an error message stating the currency specifier is not valid
If I use another locale this does not happen.




User known
August 17, 2019, 7:37 PM

I cannot reproduce this error.

Remco van Gulik
August 18, 2019, 7:33 AM

The same behaviour happend in the collective Access demo site (https://demo.collectiveaccess.org) if I set preferences locale to nl_NL. (At this moment it seems its is being updated to 1.7.8)
The only thing different is that the error is not shown. The two spaces after the currency indicator still happen.
That is the same behaviour I had in version 1.7.5 (add double space, but not show error)

I can send you a link to our tinkering site (This is not the real live version but a copy we use for testing purposes.)
You can see the behaviour for yourself if you set the locale to Dutch (nl_NL). I will send it by email.

I have seen this behaviour (The double spaces) since the beginning in version 1.7.5. and the error since 1.7.6
It happens with all users, and with all systems. (On windows laptop, phone, tablet)
It happens in test systems om my local machine and on the server.

I cannot find the location in the configuration files where the currency is formatted for the locale.

User known
August 18, 2019, 9:38 AM

I don't consider the extra space a problem and wasn't looking for that. All I saw was that there was no error. The issue appears to be an extra non-printing character inserted after the currency placeholder by the Zend_Locale_Format library we use when nl_NL is set. I've added code to strip this. It's in master-fix.

Remco van Gulik
August 18, 2019, 9:56 AM

I agree the double space itself was not a problem

Thanks, that solved it. No error and no double space.
I am just not sure about the comment in the last line of the file.
(No new line at end of file) deleting ?> and then adding ?>

User known
August 18, 2019, 9:59 AM

It my text editor wanting to change the end character. I just removed the ?> entirely


User known


Remco van Gulik




Affects versions