r16187 - gnucash/trunk/src/app-utils - Replace a eur-currency from the currency by EUR to fix old locales.
Christian Stimming
cstim at cvs.gnucash.org
Tue Jun 19 15:40:51 EDT 2007
Author: cstim
Date: 2007-06-19 15:40:49 -0400 (Tue, 19 Jun 2007)
New Revision: 16187
Trac: http://svn.gnucash.org/trac/changeset/16187
Modified:
gnucash/trunk/src/app-utils/gnc-ui-util.c
Log:
Replace a eur-currency from the currency by EUR to fix old locales.
Modified: gnucash/trunk/src/app-utils/gnc-ui-util.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-ui-util.c 2007-06-19 03:02:36 UTC (rev 16186)
+++ gnucash/trunk/src/app-utils/gnc-ui-util.c 2007-06-19 19:40:49 UTC (rev 16187)
@@ -839,6 +839,13 @@
currency = gnc_commodity_table_lookup (table, GNC_COMMODITY_NS_CURRENCY, code);
+ /* Some very old locales (notably on win32) still announce a euro
+ currency as default, although it has been replaced by EUR in
+ 2001. We use EUR as default in that case, but the user can always
+ override from gconf. */
+ if (gnc_is_euro_currency (currency))
+ currency = gnc_get_euro();
+
return (currency ? currency : NULL);
}
More information about the gnucash-changes
mailing list