[empathy: 10/16] Fill out empathy_format_currency() with more currencies
- From: Danielle Madeley <daniellem src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 10/16] Fill out empathy_format_currency() with more currencies
- Date: Thu, 5 May 2011 08:31:34 +0000 (UTC)
commit a3efb63e796880a945daa81be60c77df8a610f95
Author: Danielle Madeley <danielle madeley collabora co uk>
Date: Mon Apr 18 13:09:19 2011 +1000
Fill out empathy_format_currency() with more currencies
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 18b7dee..9bed7f3 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", "." },
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]