Fork of the Unit Converter application for Sailfish OS.
This application allows user to convert values from one unit type to another.
Supported unit categories:
Acceleration, angle, area, currency, data storage, data transfer, density, energy and work, flow, force, frequency, fuel consumption, length, magnetic field strength, magnetic flux density, mass, numbers, power, pressure, speed, temperature, time, torque and volume. Additional ruler.
Translations are only partial because values are used as reference in the code.
Sources on github
Comments
objectifnul
Sun, 2017/12/10 - 02:22
Permalink
Currently (v2.7-1), the comma of my (French) keyboard has a weird behavior: it erases the entry field. So I have to make a copy-paste from an other app (e.g. notes).
ade
Sun, 2017/12/10 - 14:12
Permalink
It turned out to be not that hard, as Qt.locale().decimalPoint can tell what sign is used. B.t.w. it does not work if you start the app from the command prompt.
So 2.8-1 should now support both comma and dot.
ade
Sun, 2017/12/10 - 02:37
Permalink
If I can find the energy I might switch to French for a while and to some further testing :-)
objectifnul
Sun, 2017/12/10 - 16:09
Permalink
v2.8-1 is just perfect. Thanks!
objectifnul
Sun, 2017/12/10 - 01:28
Permalink
Would it be difficult to make this app compatible with non-English numeric keyboards (with a comma instead of decimal dot)?
ade
Sun, 2017/12/10 - 01:56
Permalink
The orignal version translated all dots to commas and did not allow a dot as input. Not really convenient if your numeric keyboard has a decimal dot.
So I removed the dot to comma conversion (hoping it would display the appropriate separator) and allowed comma and dot as input. But that is not working out I presume.
I do think it's hard to solve, maybe some language like settings can tell what decimal sign is active for the numeric keyboard, then followed by some correcting actions.
Pages