Le jeudi 24 à 14:35, Geert Janssens a écrit : > What I found missing is the part about default symbols in the > iso-4217-currencies file. There are no default symbols as far as I can > see. Do you plan to implement this in a future patch ?
The only default symbol is for gnc_locale_default_currency(), in which case we use the symbol given by localeconv(3). The choice for the symbol is: 1- explicitely set (by data file / commodity editor) 2- if national currency, localeconv()->currency_symbol 3- the mnemonic (see app-utils/gnc-ui-utils.c:gnc_commodity_get_nice_symbol(); should this maybe be moved to gnc-commodity.c?) > I agree with David T. that duplicate symbols in that file are not > really a problem. If a user uses two currencies that have the same > default symbol, s/he can use the commodities editor to set a different > one. Implementing David's suggestion would also mean the choice for the symbol be simpler. I think that would be just adding one line in iso-currencies-to-c, a call to gnc_commodity_set_yser_symbol. Can't try right now, my build just failed with « libgncmod-register-gnome.so: undefined reference to `gnc_gconf_get_int' » and I don't have time tonight to investigate. -- Fred _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel