Currencies and Countries. Was: Re: OT: Thanks!

John Layt johnlayt at googlemail.com
Sat Oct 24 16:13:10 CEST 2009


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.

Cheers!

John.


More information about the Plasma-devel mailing list