Unit Converter [fork]

Your rating: None Average: 4.7 (15 votes)

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.

Ruler is only tested on Jolla1/Xperia X/Xperia XA2 plus and Jolla tablet.

Translations are only partial because values are used as reference in the code.

Sources on github



Application versions: 
File harbour-unitconverter-2.17-3.i486.rpm346.99 KB15/11/2018 - 20:17
File harbour-unitconverter-2.17-3.armv7hl.rpm332.18 KB15/11/2018 - 20:17
File harbour-unitconverter-2.18-1.armv7hl.rpm369.46 KB30/12/2018 - 01:28
File harbour-unitconverter-2.18-1.i486.rpm384.44 KB30/12/2018 - 01:28
File harbour-unitconverter-2.18-2.armv7hl.rpm370.96 KB30/12/2018 - 20:27
File harbour-unitconverter-2.18-2.i486.rpm384.77 KB30/12/2018 - 20:27
File harbour-unitconverter-2.18-3.armv7hl.rpm373.22 KB26/01/2019 - 12:51
File harbour-unitconverter-2.18-3.i486.rpm387.18 KB26/01/2019 - 12:51
File harbour-unitconverter-2.18-4.i486.rpm388.45 KB21/08/2019 - 22:38
File harbour-unitconverter-2.18-4.armv7hl.rpm369.27 KB21/08/2019 - 22:38
File harbour-unitconverter-2.18-5.armv7hl.rpm369.42 KB19/10/2019 - 16:16
File harbour-unitconverter-2.18-5.i486.rpm388.27 KB19/10/2019 - 16:16
File harbour-unitconverter-2.19-1.i486.rpm400.62 KB26/10/2019 - 16:33
File harbour-unitconverter-2.19-1.armv7hl.rpm375.3 KB26/10/2019 - 16:33
  • 2-19.1
    • Added Data Transfer rate conversion
    • Slightly larger distance indicator on ruler for bigger screens
  • 2-18.5 Fixed ruler for Xperia XA2 plus sizing
  • 2-18.4
    • Updated Chinese translation
    • Various fixes in inch conversion
  • 2-18.3 Updated French, added Chinese
  • 2-18.2
    • Reposition Quick Search help page to top
    • Updated Swedish translation
  • 2-18.1
    • Fixed deprecated contextMenu in favorites page
    • Show message banner after update of currencies
    • Created page for Quick Search help
  • 2-17.3 Fixed colors for light ambiences
  • 2-17.2 Fixed currency request issue
  • 2-17.1
    • Updated Russian and French
    • More legible app icon by Dikonov
    • Arrow changed in favorites page
  • 2-16.1 additional cm numbers in ruler for non jolla 1 devices
  • 2-15.1 Added Swedish and Russian translation
  • 2-14.1 Fixed ruler for Jolla tablet screen
  • 2-13.1
    • Sort currencies alphabetically
    • French grammar fixes by objectifnul
  • 2-12.1
    • Switched to IEC binary prefixes (kibi, mebi, gibi, etc.) in Data Storage
    • French translation fixes by lutinotmalin
  • 2-11.1 Basic French translation by lutinotmalin (and Dutch by ade)
  • 2-10.1 Added Iceland Krona to currency list, which also fixes wrong currency rates
  • 2-9.1 Fix in Power conversion
  • 2-8.1
    • Support both dot and comma as decimal sign
    • Updated reference to gitub page in about page
  • 2-7.1
    • Added imperial gallon (uk) to fuel consumption and volume
    • Option to switch between scientific and normal number notation
    • ft/s2knot fix and more precision for some rates
  • 2-6.1
    • Redesign of coverpage
    • Don't force decimal comma, as numeric keypad may have decimal dot
  • 2-5.1
    • Coverpage now displays first two convert results
    • Small changes in options page
  • 2-4.1
    • Fixed javascript issue so it starts on more recent Sailfish OS versions
    • Incorporated Top-Ranger's pull request https://github.com/MikeL83/Unit-Converter/pull/3 for optional caching of currency rates
    • Fixed ruler for 1080 (HD) resolution
    • Some additional resolution fixes and more Sailish gui elements


rob_k's picture

Great, thanks!

rob_k's picture

I just noticed: Conversion Length, type 36 inches, and get 9.665e-17 meters (same as lightyears)

Great app nevertheless!

ade's picture

I will look into that later, thanks for reporting.

Edit: serveral bugs in inch conversion should we fixed in 2.18.4

objectifnul's picture

Currency update failure: "Error while downloading xml"

ade's picture

Like I said, it work fine on my Jolla 1, Xperia X, Xperia XA2 and Jolla Tablet.

But for some reason, it does not work for everyone, see also https://github.com/a-dekker/Unit-Converter/issues/11

I have not been able to find the cause of why it does not work for some people.

objectifnul's picture

OK, I guess I lack a required certificate (only 3 Entrust TLS instead of 4). No idea how to get the missing one as openrepos-certificatemanager is deprecated. (Xperia X & Jolla 1)

Ahti30708's picture

The second answer (Another less destructive...) fixes this and 2miich (Finnish ice hockey league from the Store). For me one of five Sailfish phones had the problem.

On my Jolla the RPM was downloaded to /home/.zypp-cache/... and the current version is 2018.2.24

objectifnul's picture

Currencies are no longer updated.

ade's picture

Works fine here, just got my update.

Historyscholar's picture

On my Xa2 plus,I don't  see Chinese  translation .It is still  English on my screen .

ade's picture

It seems you have Chinese language issues with a lot of apps.

Try selecting a different variation of Chinese in the settings menu, and see if it helps.

murfik's picture

pls compile .ts translations, because half app translated on russia, but .ts have all translations

ade's picture
Desmo's picture

Great app that comes in useful on a regular basis. Unfortunately, the currency converter has stopped working. When I put in an amount, "nan" shows up in the other currency values.

ade's picture

Yes, confirmed. Will look at it this weekend.

edit: already fixed

sdiconov's picture

On Jolla C the scale of the ruler is distorted. The lines are nowhere near real mm because of the physical screen size (probably). The Jolla C screen is 110x62 mm.

Please, make it easier to change the value in the Favourites. It could function like the regular conversion screens without a special "Edit" command.

ade's picture

The ruler is only fitted for Jolla 1 and Xperia screen sizes. For the tablet it's already harder because of a different screen ratio. I will have another look at it.
But no plans to work on the favourites part at the moment.

olf's picture

Thank you so much @ade for taking care of Unit Converter and making it even better!

sdiconov's picture

Could someone tell (give a relevant tutorial link) how to translate this app? I can make a Russian translation.

ade's picture

As mentioned in the description: "Translations are only partial because values are used as reference in the code.".
Maybe it could be made fully translatable, but that would require more that a little rework.
For now it is partially translated to Dutch and French. You could download https://github.com/a-dekker/Unit-Converter/blob/master/translations/harb... and open it in Qt Linguist 5. Then you can choose your destination language and translate the translatable strings.

sdiconov's picture

Russian translation uploaded. 

ade's picture

Uploaded to where?

sdiconov's picture

Oops, stupid github interface. I did not want to fork the repo, just propose this file.


The icons may need a facelift to look as a good set together.

sdiconov's picture

Unlike the Jolla store version this fork actually runs in SFOS! However it needs a lot of work at currency conversion. The list of currencies is long and unmanageable while being incomplete.
Here is a list of suggestions:
1 order the list of currencies alphabetically
2 add missing currencies, e.g Byelorussian rouble BYN.
3 fix favourites by allowing to enter a value to convert between bookmarked units AND allow to reverse the pairs.

ade's picture

Ad 1)
I will see how easy it is to sort the currencies alphabetically. I agree it would make searching easier.
Ad 2)
The currency info is from http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml, so we are kind of limited to what they provide. Byelorussian rouble BYN is not part of that at the moment.
Ad 3)
"Fix" sounds like broken. This looks like a "nice to have". You can always swap the values yourself of course.

objectifnul's picture

About revised French localisation (currency menu): «Nonation des nombres» should be «Notation des nombres», and «Intervalle désirée» should be «Intervalle désiré»

ade's picture

I left a message for lutinotmalin about this.

Qleg's picture

@ade, thanks for useful app. Converter works fine on Xperia_X, but I can't  launch him on X_Compact :-(

ade's picture

That is kind of unexpected. Can you type/start "harbour-unitconverter" from terminal and tell me what the output is?

Qleg's picture

Yes. It works. But how attach/send screenshot of terminal?