Closed beroset closed 1 year ago
I've refactored it completely to add a SysInfo
object that can be called from QML.
Looking great now, thank you beroset!
Could you run add a commit that updates translation files too ? lupdate-qt5 -no-obsolete src/* i18n/*.h -ts i18n/*.ts
So that weblate picks them up
Done and rebased.
Thank you!
Inspired by https://github.com/AsteroidOS/asteroid-settings/pull/69 and a comment from @kido I decided to implement this using a
sysinfo()
call which also gets usfreeram
andtotalram
without any additional work. I also added some changes to make it easier to translate strings, such as the screen dimensions. Right now it shows400W x 400H
which use the English abbreviations for height and width, but it's now possible to translate that into other languages.