mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Use the symbol in iso-4217-currencies by default
Author: Frédéric Perrin <frederic.perrin@resel.fr> git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23345 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
96f52a43e6
commit
bc1970bf71
@ -1754,14 +1754,10 @@ gnc_commodity_get_nice_symbol(const gnc_commodity *cm)
|
||||
if (!cm) return NULL;
|
||||
|
||||
nice_symbol = gnc_commodity_get_user_symbol(cm);
|
||||
if (nice_symbol)
|
||||
return nice_symbol;
|
||||
else if (gnc_commodity_equiv (cm, gnc_locale_default_currency_nodefault ()))
|
||||
return gnc_localeconv()->currency_symbol;
|
||||
else if ((nice_symbol = gnc_commodity_get_mnemonic(cm)))
|
||||
return nice_symbol;
|
||||
if (nice_symbol && *nice_symbol)
|
||||
return nice_symbol;
|
||||
else
|
||||
return "";
|
||||
return gnc_commodity_get_mnemonic(cm);
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
|
@ -54,12 +54,14 @@ exec guile -s $0 "$@"
|
||||
PWARN(\"failed to insert %s into commodity table\", fullname);
|
||||
}
|
||||
}
|
||||
gnc_commodity_set_user_symbol(c, ~S);
|
||||
}\n"
|
||||
fullname
|
||||
namespace
|
||||
mnemonic
|
||||
exchange-code
|
||||
smallest-fraction)
|
||||
smallest-fraction
|
||||
local-symbol)
|
||||
|
||||
;; Sorry, code doubling of the error message, but whatever.
|
||||
(begin
|
||||
|
Loading…
Reference in New Issue
Block a user