这是indexloc提供的服务,不要输入任何密码
Skip to content

Zoom percentage localization not sufficient for some languages #1650

@scribblemaniac

Description

@scribblemaniac

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


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

No one assigned

    Labels

    TranslationUIRelated to the visual appearance of the program

    Type

    Projects

    Status

    Low priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions