Currencies and Countries. Was: Re: OT: Thanks!
Thomas Olsen
tanghus at gmail.com
Sat Oct 24 18:23:38 CEST 2009
On 24/10-2009 16:13 John Layt <johnlayt at googlemail.com> wrote:
> On Monday 19 October 2009 02:23:18 Thomas Olsen wrote:
> > On 19/10-2009 02:02 John Layt <johnlayt at googlemail.com> wrote:
> > > On Sunday 18 October 2009 23:16:29 Thomas Olsen wrote:
> > > > Guess I'll better drop they eye-candy. Just thought it would look
> > > > cool
> > > >
> > > > :-)
> > >
> > > Well, for currency I don't think it's such a problem, as even when a
> > > currency is used in several countries like the USD or NZD, there is
> > > usually only one country that issues the currency and you can use that
> > > flag. The exception of course are things like the Euro, Caribbean
> > > dollar, and CFA Franc where you would need to find an appropriate
> > > symbol like the EU flag.
> >
> > I'm looking forward to seeing a KCurrency class. Maybe if I really want
> > flags in Currency Converter I'll randomize which flag to be used for
> > currencies used by several countries ;-)
>
> Just remembered something about the ISO standard, the first 2 chars of the
> ISO Currency Code are supposed to be the ISO Country Code for the issuing
> country, so just use that to request the flag resource and you should be
> good. The obvious exceptions to this are the Euro (eu) which we don't
> have (yet?), the Pound (gb vs uk), and anything starting with x which are
> supra-national bodies which we don't have either.
The Euro wouldn't be a problem unless you mean the flag is not in KDE?
The British Pound is a little odd. Why do they always have to do everything
differently? Eh - where are you from ;-)
The other - few - currencies could get a generic symbol as flag.
Thanks for the msg. I'll be updating both Currency Converter and Google
Translator on kde-look in the next day or so but I think I'll hold the flags
for now - looking forward to a kdelibs KCurrency class ;-)
Seriously though; if you could sketch up your ideas about it and how it should
interact with other libs, what API etc. I could maybe prototype something in
Python and hopefully sneak my way back to C++ that way. It's been waaay too
long since I've done anything else than PHP, Python and the likes and I
haven't made any contributions to KDE since 1998.
> Cheers!
>
> John.
--
Best Regards / Med venlig hilsen
Thomas Olsen
More information about the Plasma-devel
mailing list