From 7432ba8c9145bbc4a11fd74437710c9ac82bdf8f Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 15 Dec 2016 13:40:45 -0800 Subject: [PATCH] =?UTF-8?q?Localize=20the=20word=20=E2=80=9CCURRENCY?= =?UTF-8?q?=E2=80=9D=20used=20in=20the=20commodity=20namespace=20selectors?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app-utils/gnc-euro.c | 1 + src/engine/commodity-table.scm | 2 +- src/engine/gnc-commodity.h | 2 +- src/gnome-utils/gnc-currency-edit.c | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app-utils/gnc-euro.c b/src/app-utils/gnc-euro.c index 90cb4107bc..4771efdb8d 100644 --- a/src/app-utils/gnc-euro.c +++ b/src/app-utils/gnc-euro.c @@ -23,6 +23,7 @@ #include "gnc-euro.h" +#include #include #include #include diff --git a/src/engine/commodity-table.scm b/src/engine/commodity-table.scm index e3ab95ea68..5d81a0a780 100644 --- a/src/engine/commodity-table.scm +++ b/src/engine/commodity-table.scm @@ -25,7 +25,7 @@ -(define GNC_COMMODITY_NS_CURRENCY "CURRENCY") +(define GNC_COMMODITY_NS_CURRENCY (gettext "CURRENCY")) ;; If you change the C side, change this too. (define GNC_COMMODITY_NS_AMEX "AMEX") diff --git a/src/engine/gnc-commodity.h b/src/engine/gnc-commodity.h index 981b71b571..82948fa56e 100644 --- a/src/engine/gnc-commodity.h +++ b/src/engine/gnc-commodity.h @@ -97,7 +97,7 @@ GType gnc_commodity_namespace_get_type(void); #define GNC_COMMODITY_NS_LEGACY "GNC_LEGACY_CURRENCIES" /* The ISO define is deprecated in favor of CURRENCY */ #define GNC_COMMODITY_NS_ISO "ISO4217" -#define GNC_COMMODITY_NS_CURRENCY "CURRENCY" +#define GNC_COMMODITY_NS_CURRENCY _("CURRENCY") #define GNC_COMMODITY_NS_NASDAQ "NASDAQ" #define GNC_COMMODITY_NS_NYSE "NYSE" #define GNC_COMMODITY_NS_EUREX "EUREX" diff --git a/src/gnome-utils/gnc-currency-edit.c b/src/gnome-utils/gnc-currency-edit.c index 6a33bc9c9b..75402ed2fa 100644 --- a/src/gnome-utils/gnc-currency-edit.c +++ b/src/gnome-utils/gnc-currency-edit.c @@ -58,6 +58,7 @@ #include "config.h" #include +#include #include #include #include