[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
Branch
weather_use_unit_description
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 18182
Build 18200: arc lint + arc unit
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.