FsPassengers Forums
What currency would you like in FsP ? - Printable Version

+- FsPassengers Forums (http://www.fspassengers.com/forum)
+-- Forum: FsPassengers (http://www.fspassengers.com/forum/forumdisplay.php?fid=3)
+--- Forum: FsPassengers General (http://www.fspassengers.com/forum/forumdisplay.php?fid=4)
+--- Thread: What currency would you like in FsP ? (/showthread.php?tid=8)



What currency would you like in FsP ? - DanSteph - 13-03-2005

By request I just finished to add currency support in FsP.

You will be able to define up to 50 new currency in a cfg file
and select them in the option for now I have only 2 in the config file: (dollars is by defaut)

start of money_currency.cfg -----------------------------------------------------------------
Currencyname=GBP
CurrencySign=£
CurrencySignInFront=TRUE;
CurrencySeparator=.
CurrencyExchangeWithDollars=1.92609

Currencyname=Euro
CurrencySign=€
CurrencySignInFront=FALSE;
CurrencySeparator='
CurrencyExchangeWithDollars=1.3416

End of money_currency.cfg -----------------------------------------------------------------


it give this for exemple for the GBP:
[Image: livre_sterling.jpg]

So if you want any new currency that should be bundled with FsP's configuration file
state them here (and if possible how they should be displayed, sign, separator etc etc)

Thanks,

Dan



Post Edited ( 03-13-05 02:18 )


Re: What currency would you like in FsP ? - Robjos - 13-03-2005

Fantastic work Dan,

I think the .ini file idea is really good and makes it easy for the user to expand the program in the way that they wish. For the moment I
would just leave the three main curriencies £$ and Euros. Users can add others such as Japanese Yen or whatever if they want at a later
date. If you ever need the exchange rates just use XE (http://www.xe.com/ucc/) it gives the lastest figures.

Just one slight correction: in the UK the currency seperator is , instead of .
eg one million pounds = £1,000,000
but one million pounds and 20 pence = £1,000,000.20

Thanks again for creating such a great program,
Robert


Re: What currency would you like in FsP ? - DanSteph - 13-03-2005

Quote:Robjos wrote:
Just one slight correction: in the UK the currency seperator is , instead of .
eg one million pounds = £1,000,000

Hello Robert,

Thanks for info, cfg modified Wink

Dan