-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(fix) Library: BPM display uses decimal separator of selected locale #13067
Conversation
73eea91
to
241b35e
Compare
Since we translate Mixxx in various languages, also the decimal separator should be translated. I can remember a discussion where the decimal comma has been considered as ugly in the bpm display in the skin. |
I would vote for changing the library to localized decimal separator, and everywhere else. We have already the inconsistency between tooltips and grid element. The number display in the skin could be still an issue, because the comma uses space below the bottom line of the numbers. For that reason I would vote keeping the decimal dot for all. |
Yep. And I bet I was part of the comma group ; ) The widget commmit (WNumber etc.) was a test. I'm not sure, and I think I'll revert it for now (after others have taken a look). |
That would be definitely "correct". Do you have screenshots at hand, maybe the issue is no longer visible or we may default to native separator and allow overriding it by the skin. |
The library commit can be merged as it is. |
241b35e
to
f7ed730
Compare
I removed f7ed730 and added a comment. |
I think #13068 is a good idea nonetheless to make the editor more permissive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thank you.
fixes #13051
QString::number(double, format, precision)
is locale-independent.IMO this raises the question how we want to display BPM / beats in general:
Need to fix
WNumber
, too.Maybe also dialogs like
Track Properties✔️ uses localeAnd✔️ uses localeWBeatSpinBox
.
everywhere)Need to adjust library's BPM delegate (it's editor), since that currently correctly uses the selected locale (
,
or.
)The second commit fixes #13065
The max BPM limit may be moved to some prefs.h file and made available for BPMDelegate, WTrackProperties etc.