Bug 468278 - Untranslatable font size unit and non-localized number format in the Fonts KCM
Summary: Untranslatable font size unit and non-localized number format in the Fonts KCM
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_fonts (show other bugs)
Version: 5.27.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-08 11:01 UTC by Ilya Bizyaev
Modified: 2023-04-08 22:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2023-04-08 11:01:03 UTC
SUMMARY

The font size unit is currently hardcoded to be called "pt" (e.g. "Noto Sans 10pt"). In a correct Russian translation (consistent with e.g. LibreOffice), this string would look like "Noto Sans 10 пт", so " пт" (space intended).

Source: https://invent.kde.org/plasma/plasma-workspace/-/blob/master/kcms/fonts/package/contents/ui/FontWidget.qml#L33


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230404
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Ilya Bizyaev 2023-04-08 11:06:46 UTC
On a related note, fractional font sizes are displayed as "10.5", whereas the correct decimal separator would be a comma in e.g. Russian and German. Updated the bug title accordingly.
Comment 2 Bug Janitor Service 2023-04-08 19:17:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2808
Comment 3 Ismael Asensio 2023-04-08 22:14:58 UTC
Git commit d00465ed10facfdf8fd32ca16b140734e0622379 by Ismael Asensio.
Committed on 08/04/2023 at 20:58.
Pushed by davidedmundson into branch 'master'.

kcms/fonts: Add translation for the font+size string

Put the string displayed in the font pickers ("Font Name XXpt")
into a i18n call instead of a hardcoded string concatenation.
FIXED-IN: 6.0

M  +2    -2    kcms/fonts/package/contents/ui/FontWidget.qml

https://invent.kde.org/plasma/plasma-workspace/commit/d00465ed10facfdf8fd32ca16b140734e0622379