diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-04-18 11:09:19 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-05-05 15:12:27 +0800 |
commit | a3efb63e796880a945daa81be60c77df8a610f95 (patch) | |
tree | 9045ba5228d7f14f49edcb263885ae8f695172b4 /libempathy | |
parent | f8c157d0188f3c8244b74d4d07fc4f85b7ef1079 (diff) | |
download | gsoc2013-empathy-a3efb63e796880a945daa81be60c77df8a610f95.tar gsoc2013-empathy-a3efb63e796880a945daa81be60c77df8a610f95.tar.gz gsoc2013-empathy-a3efb63e796880a945daa81be60c77df8a610f95.tar.bz2 gsoc2013-empathy-a3efb63e796880a945daa81be60c77df8a610f95.tar.lz gsoc2013-empathy-a3efb63e796880a945daa81be60c77df8a610f95.tar.xz gsoc2013-empathy-a3efb63e796880a945daa81be60c77df8a610f95.tar.zst gsoc2013-empathy-a3efb63e796880a945daa81be60c77df8a610f95.zip |
Fill out empathy_format_currency() with more currencies
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-utils.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 18b7dee69..9bed7f311 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -970,26 +970,27 @@ empathy_format_currency (gint amount, #define POUND "\302\243" /* localised representations of currency */ - /* FIXME: check these */ + /* FIXME: check these, especially negatives and decimals */ static const struct { const char *currency; const char *positive; const char *negative; const char *decimal; } currencies[] = { + /* sym positive negative decimal */ { "EUR", EURO "%s", MINUS EURO "%s", "." }, { "USD", "$%s", MINUS "$%s", "." }, { "JPY", YEN "%s" MINUS YEN "%s", "." }, { "GBP", POUND "%s", MINUS POUND "%s", "." }, - // { "PLN", "" }, - // { "BRL", "" }, - // { "SEK", "" }, - // { "DKK", "" }, - // { "HKD", "" }, - // { "CHF", "" }, + { "PLN", "%s zl", MINUS "%s zl", "." }, + { "BRL", "R$%s", MINUS "R$%s", "." }, + { "SEK", "%s kr", MINUS "%s kr", "." }, + { "DKK", "kr %s", "kr " MINUS "%s", "." }, + { "HKD", "$%s", MINUS "$%s", "." }, + { "CHF", "%s Fr.", MINUS "%s Fr.", "." }, { "NOK", "%s kr", MINUS "%s kr", "." }, { "CAD", "$%s", MINUS "$%s", "." }, - // { "TWD", "" }, + { "TWD", "$%s", MINUS "$%s", "." }, { "AUD", "$%s", MINUS "$%s", "." }, }; |