[PATCH] Add back translation support in combo boxes

Aurimas Fišeras aurimas at members.fsf.org
Wed Jul 3 10:29:22 EDT 2013


2013.07.03 17:11, John Ralls rašė:
> 
> On Jul 3, 2013, at 6:57 AM, John Ralls <jralls at ceridwen.us> wrote:
> 

> Sorry, that didn't make sense. What I meant to say is that one should pass variables to _() only
> if the constant values have been flagged to xgettext so that they're in the message catalog. I
> don't see where that happens in the code, but the gnc_option_get_permissible_values functions
> refer to a struct of SCM variables, so perhaps it's done in scheme somewhere.

Yes, it is done somewhere, because translation works. How to test:
0. Run GnuCash in non-English locale, e.g.:
LANGUAGE=de_DE.utf-8 /gnucash/install/path/bin/gnucash
1. Open any report, say, Expense barchart, go to options.
2. "Step size", "price source", "show average" combo box items are not
translated.
3. Apply the patch, compile, install, go to step 0: combo box items are
translated.



More information about the gnucash-devel mailing list