meven added a comment.
In D24379#541409 <https://phabricator.kde.org/D24379#541409>, @davidedmundson wrote: > This is already available and translated in solid. > > solid/src/solid/devices/backends/upower/upowerdevice.cpp > 142: return tr("Lithium Ion", "battery technology"); Being a private function , this is quite complicated to expose and in solid's backend. k > Can't we expose that instead of duplicating things in QML. Especially with horrific magic numbers instead of enums. I have updated the code to use the enum properly. REPOSITORY R102 KInfoCenter REVISION DETAIL https://phabricator.kde.org/D24379 To: meven, ngraham, ltoscano Cc: davidedmundson, alexde, plasma-devel, ltoscano, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart