Unit Converter [fork]

Rating: 
4.5
Your rating: None Average: 4.5 (8 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, 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 and jolla tablet.

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

Sources on github

Screenshots: 

Keywords:

Application versions: 
AttachmentSizeDate
File harbour-unitconverter-2.14-1.armv7hl.rpm344.87 KB18/04/2018 - 10:46
File harbour-unitconverter-2.14-1.i486.rpm359.47 KB18/04/2018 - 10:46
File harbour-unitconverter-2.15-1.i486.rpm364.55 KB20/04/2018 - 19:27
File harbour-unitconverter-2.15-1.armv7hl.rpm349.77 KB20/04/2018 - 19:27
File harbour-unitconverter-2.16-1.armv7hl.rpm349.67 KB22/04/2018 - 18:18
File harbour-unitconverter-2.16-1.i486.rpm364.49 KB22/04/2018 - 18:18
File harbour-unitconverter-2.17-1.i486.rpm342.35 KB03/05/2018 - 18:45
File harbour-unitconverter-2.17-1.armv7hl.rpm327.91 KB03/05/2018 - 18:45
File harbour-unitconverter-2.17-2.armv7hl.rpm332.07 KB28/09/2018 - 18:43
File harbour-unitconverter-2.17-2.i486.rpm346.59 KB28/09/2018 - 18:43
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
Changelog: 
  • 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

Comments

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.

https://github.com/dikonov/Unit-Converter/blob/master/translations/harbo...

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 2.1.4.14! 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?
 

Pelzlurch's picture

Thanks!!!

renzoarm's picture

Thanks for the update

renzoarm's picture

In the power section, the boiler horsepower and the British termal unit per hour, are swapped in the title ( but correct in the unit)

ade's picture

Thanks for reporting, as far as I can tell it should be correct in the new release.

ABreen's picture

Thank you for adding Imperial Gallons. Your response was very quick.

objectifnul's picture

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's picture

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's picture

If I can find the energy I might switch to French for a while and to some further testing :-)

objectifnul's picture

v2.8-1 is just perfect. Thanks!

objectifnul's picture

Would it be difficult to make this app compatible with non-English numeric keyboards (with a comma instead of decimal dot)?

ade's picture

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.