36
35
FROM_STRING_FUNC(ExpenseDistance, DISTANCE_LIST)
37
36
AS_STRING_FUNC (ExpensePayment, PAYMENT_TYPE_LIST)
38
37
FROM_STRING_FUNC(ExpensePayment, PAYMENT_TYPE_LIST)
39
/** \todo leave the macro for types to allow translation
40
map the gcc -E output as final code.
38
/* leave the macro in place to support types.
39
allow translation by mapping the gcc -E output.
42
41
AS_STRING_FUNC (ExpenseType, EXPENSE_TYPE_LIST)
43
42
FROM_STRING_FUNC(ExpenseType, EXPENSE_TYPE_LIST)
44
/** \brief Copy of qof-main function
46
Copied into qof-expenses library to prevent a spurious
50
qof_main_make_utf8 (gchar * string)
56
if (g_utf8_validate (string, -1, NULL))
58
value = g_locale_to_utf8 (string, -1, NULL, NULL, NULL);
61
PWARN (" unable to convert from locale %s", string);
62
PINFO ("trying to convert from ISO-8859-15.");
63
value = g_convert (string, -1, "UTF-8", "ISO-8859-15",
67
PERR (" conversion failed");
45
75
/** \brief Currency Table data
47
77
Table relating the currencies[5] to the actual currency names, mnemonics
436
466
if(!gpe_currency_table) populate_currencies();
437
467
currency = (GpeCurrency*) g_hash_table_find
438
468
(gpe_currency_table, check_name, mnemonic);
469
gpe_currency_lookup(inst, currency->pq_code);