display of decimal numbers in table view
The decimal numbers in the table view are displayed with "," instead of "." This is confusing since the input needs to be with '.' otherwise the number is not accepted.
This problem seems only to appear in the LINUX version
Comments (7)
-
-
I disagree a bit. Using the numerical format of the current locale would be advantegeous for a user and we have no compatability issues as this happens solely in the user interface, i.e. we get no problems with file exchange. Files need to be fixed to US format, but I see no strong reason to deny a user his accustomed locale. I mean if he uses a localized operating system, he probably does so for a reason? (I, for example, avoid German OS).
So I see two options: a) Fix everything to US locale, however that may work b) Use QT for the relevant numerical conversion routines (which are probably all over the UI).
I think the complexity of both solutions might be explored before we decide on a solution?
-
Looking into that a bit, I guess the problem is that in PyQt4, the value of the table is first converted into a python string and then into a float, which bypasses any kind of automagic Qt4 might offer. That could be easily corrected. I beliebe that in PyQT5 this behaves consistently. Can somebody check that?
-
- changed status to resolved
Make conversion from string to float in TableView localized for consistency
To fully fix issue
#231, we need to review all such conversion.See issue
#231→ <<cset 5db8f13a3be0>>
-
Make conversion from string to float in TableView localized for consistency
To fully fix issue
#231, we need to review all such conversion.See issue
#231→ <<cset 5db8f13a3be0>>
-
Could you please reopen this issue with minor and 1.6 deadline? We need to review the whole code-base for further instances. I just fixed the most glaring ones and maybe even all, but I didn't do a thorough review.
-
As this Ticket ist mentioned in changes we may be better add a new one for further work.
- Log in to comment
This must be solved that only Python fornatted numbers are shown, not any other possible number encoding. Likly this is POSIX, C, or some US.UTF8. We have to fixate this, so it is Independent from a Users locale config.