From a3efb63e796880a945daa81be60c77df8a610f95 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Mon, 18 Apr 2011 13:09:19 +1000 Subject: [PATCH] Fill out empathy_format_currency() with more currencies --- libempathy/empathy-utils.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 18b7dee6..9bed7f31 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", "." }, }; -- 2.39.2