aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-18 11:09:19 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-18 11:09:19 +0800
commitdead3334cd8845069c9e55aaa70f79a58a1fc065 (patch)
treec403c3ead3854d7e340a8d9aa86b0efa72aabc3c
parent38e5806e7b0bc11609b5adff84de7a02134fdd59 (diff)
downloadgsoc2013-empathy-dead3334cd8845069c9e55aaa70f79a58a1fc065.tar
gsoc2013-empathy-dead3334cd8845069c9e55aaa70f79a58a1fc065.tar.gz
gsoc2013-empathy-dead3334cd8845069c9e55aaa70f79a58a1fc065.tar.bz2
gsoc2013-empathy-dead3334cd8845069c9e55aaa70f79a58a1fc065.tar.lz
gsoc2013-empathy-dead3334cd8845069c9e55aaa70f79a58a1fc065.tar.xz
gsoc2013-empathy-dead3334cd8845069c9e55aaa70f79a58a1fc065.tar.zst
gsoc2013-empathy-dead3334cd8845069c9e55aaa70f79a58a1fc065.zip
Fill out empathy_format_currency() with more currencies
-rw-r--r--libempathy/empathy-utils.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index aaee37b95..eea3c2674 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -806,26 +806,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", "." },
};