After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 533690 - Add currency conversion functions
Add currency conversion functions
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: 2.30.0
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-18 11:39 UTC by Jonh Wendell
Modified: 2010-03-12 04:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonh Wendell 2008-05-18 11:39:58 UTC
Hi.

It would be nice having a currency conversion tool in gcalctool.
The table of current values for all currencies could be updated from internet daily, or could be feeded manually.
Comment 1 Robin Sonefors (ozamosi) 2009-10-05 23:58:21 UTC
In http://git.gnome.org/cgit/gcalctool/commit/?id=d16a5b07b64239213c9ac985a31cb9c89db6b507 I added a new "swearword button" to the financial mode, that implements a somewhat rough version of this. There's still work to be done, but I'm hoping for some feedback before I spend too much time with it.


The currency rates are downloaded from the European central bank, just like in Qalculate. The list of available currencies is therefore a bit eurocentric, however, it's a freely available source, and they actually like 3rd party users.

It adds two new dependencies:
 * libsoup to download the rates
 * libxml2 to parse the downloaded file. While the Glib "XML-like" parser could probably do it, I don't feel comfortable using something with warnings written in that big letters, and using regex to parse XML is Evil.

Since the usage of those are very limited, they could be replaced relatively easily.
Comment 2 Robert Ancell 2010-03-12 04:27:25 UTC
works well for me.  Note you can also type these conversions into the display, e.g.:
"5 EUR in USD"