Skip to content
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 locale dependent delay names #6

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

michaelgregorius
Copy link
Contributor

The technical names and display names of the delays are generated via sprintf calls which are locale dependent. This means that for example the feedback delay might be saved either as "fbdelay_0.1s" (point) or "fbdelay_0,1s" (comma).

The fix adds a string array next to the array of lengths and uses this string array when creating the names. This ensures that they will not be locale dependent and that they will always look the same. Because the names are English anyway the point was chosen as the decimal separator.

Partially fixes LMMS issue 5167.

The technical names and display names of the delays are generated via `sprintf` calls which are locale dependent. This means that for example the feedback delay might be saved either as "fbdelay_0.1s" (point) or "fbdelay_0,1s" (comma).

The fix adds a string array next to the array of lengths and uses this string array when creating the names. This ensures that they will not be locale dependent and that they will always look the same.
@PhysSong PhysSong merged commit d8bf808 into LMMS:lmms Apr 14, 2024
@michaelgregorius michaelgregorius deleted the DelayNameFixes branch April 14, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants