r19058 - gnucash/trunk/src/engine - Bug #118391: Mark currency names for translation but using the "iso_4217" translation domain.
Christian Stimming
cstim at code.gnucash.org
Fri Apr 23 16:07:24 EDT 2010
Author: cstim
Date: 2010-04-23 16:07:24 -0400 (Fri, 23 Apr 2010)
New Revision: 19058
Trac: http://svn.gnucash.org/trac/changeset/19058
Modified:
gnucash/trunk/src/engine/gnc-commodity.c
gnucash/trunk/src/engine/iso-currencies-to-c
Log:
Bug #118391: Mark currency names for translation but using the "iso_4217" translation domain.
This will make approx. 50% of the currency names show up in translated form.
At least more than nothing. Eventually, we most probably must change our
long name definitions to match those of iso_4217, and after this we will
get 100% translations.
Modified: gnucash/trunk/src/engine/gnc-commodity.c
===================================================================
--- gnucash/trunk/src/engine/gnc-commodity.c 2010-04-23 20:07:01 UTC (rev 19057)
+++ gnucash/trunk/src/engine/gnc-commodity.c 2010-04-23 20:07:24 UTC (rev 19058)
@@ -2340,6 +2340,8 @@
* gnc_commodity_table_add_default_data
********************************************************************/
+#define CUR_I18N(String) dgettext ("iso_4217", String)
+
gboolean
gnc_commodity_table_add_default_data(gnc_commodity_table *table, QofBook *book)
{
Modified: gnucash/trunk/src/engine/iso-currencies-to-c
===================================================================
--- gnucash/trunk/src/engine/iso-currencies-to-c 2010-04-23 20:07:01 UTC (rev 19057)
+++ gnucash/trunk/src/engine/iso-currencies-to-c 2010-04-23 20:07:24 UTC (rev 19058)
@@ -48,7 +48,7 @@
{
const char *fullname = ~S;
gnc_commodity *c = gnc_commodity_new(book,
- _(fullname),
+ CUR_I18N(fullname),
~S,
~S,
~S,
More information about the gnucash-changes
mailing list