[applets/weather] Use unit description from KUnitConversion
ClosedPublic

Authored by iasensio on Oct 25 2019, 11:36 PM.

Details

Summary

Use unit description directly from KUnitConversion instead of making a new string.
This avoids duplicating translation strings and improves consistency.
The units name is now description (symbol) also for consistency with krunner

Test Plan

No behavior changes within the applet
Configure -> Units shows translated description (symbol) for every unit

Diff Detail

Repository
R114 Plasma Addons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
iasensio created this revision.Oct 25 2019, 11:36 PM
Restricted Application added a project: Plasma. · View Herald TranscriptOct 25 2019, 11:36 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
iasensio requested review of this revision.Oct 25 2019, 11:36 PM
ngraham accepted this revision.Oct 27 2019, 8:33 PM
This revision is now accepted and ready to land.Oct 27 2019, 8:33 PM

Needs a rebase though.

This revision was automatically updated to reflect the committed changes.