2015-02-08 11:08 GMT+01:00 Florian Effenberger <
floeff@documentfoundation.org>:
Hi,
Volkan Gezer wrote on 2015-02-07 at 18:33:
'0.00' is not a number, only numbers can be accepted for this field,
'0.00' is not a number, only numbers can be accepted for this field.
I think these work if you exchange the "." to a ",", IIRC.
Well, it only works as well as typing "0"; you still have to do it every
single time you want to save a page. And I mean e-v-e-r-y s-i-n-g-l-e
t-i-m-e. Even if you just corrected a typo in the text of the web page and
haven't touched the Photo Shuffler tab page at all.
The problem seems to be that when you go to the page in SilverStripe, the
system always inserts the numbers in the fields using "." as decimal
separator and even insists on adding decimals: 0 becomes "0.00", for
instance. But the system itself does not accept "." as a decimal separator
for *input*. So the system cannot read its own numbers and then objects to
the user about that (!).
My guess is that the bug is that the system uses some sort of English
locale when it writes the numbers but uses the local locale when it reads
them.
The solution is to always use the same locale – be it some sort of English
locale or the actual local locale – both when writing and reading these
numbers. It should just be consistent, which it is not right now.
Try switching locale to Danish, German, French, Swedish or a similar
locale that uses "," as a decimal separator and see if you can reproduce
it.
Or simply find the program code that inserts the numbers in the number
field and see that it probably does not respect the current locale when
doing so.
Jesper
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.