-
Notifications
You must be signed in to change notification settings - Fork 293
Description
Issue Summary
The zoom amount is indicated on the bottom status bar and it should be possible to display this correctly in any supported locale.
Actual Results
The decimal separator is localized, and we get a locale-specific percentage sign character, but that character always appears to the right of the zoom number.
Expected Results
It should be possible to change the following things for a specific locale:
- The character used for the percentage sign
- The order of the percentage sign and number
- The decimal separator character
See also: https://phrase.com/blog/posts/number-localization/#Percentages
The common percent sign (%) may seem like it would be uniform across all locales, but that’s not actually the case. Different locales use different symbols for the percent sign. And like currency symbols, the percent sign can go to the left or right of its associated number depending on the locale.
System Information
- Pencil2D Version: 57966e7
Developer Notes
This issue has been discussed some in #1442. The issue existed prior to that PR, but some improvements the the localization were made as related code was changed. Here is my relevant comments on the solution to this issue:
there does not seem to actually be any good way to do this. The [current solution] is basically as good as I could come up with. We could do something hackish like tr("%1%2).arg(locale.toString(...), locale.percent()), but even with comments that would be quite difficult for our translators to understand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status