Fix issues from D24798 comments by @davidedmundson
ClosedPublic

Authored by guoyunhe on Nov 15 2019, 9:21 AM.

Details

Summary

Lower QQC2 version to minimum requirement. Add context to i18nc function. Cannot use i18ncp because the number isn't integer.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
guoyunhe created this revision.Nov 15 2019, 9:21 AM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 15 2019, 9:21 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
guoyunhe requested review of this revision.Nov 15 2019, 9:21 AM
davidedmundson requested changes to this revision.Nov 15 2019, 9:31 AM
davidedmundson added inline comments.
applets/systemmonitor/common/contents/ui/ConfigGeneral.qml
134

The important part was the

I18np that handles "1 second" Vs "2 secondS"

This revision now requires changes to proceed.Nov 15 2019, 9:31 AM
davidedmundson accepted this revision.Nov 15 2019, 10:30 AM

Cannot use i18ncp because the number isn't integer.

Oh, I see.

This revision is now accepted and ready to land.Nov 15 2019, 10:30 AM
This revision was automatically updated to reflect the committed changes.

toFixed() makes decimal separator always a point, thus not localizable. We need something else to support point or comma depending on the locale.