On 03-07-13 16:11, John Ralls wrote:
On Jul 3, 2013, at 6:57 AM, John Ralls <jra...@ceridwen.us> wrote:


The _() macro just calls gettext(), which takes the passed-in string, compares 
it against the
appropriate message catalog, and returns a translation if it finds one, and the 
provided string
if it doesn't.

So passing a variable to _() is fine. The potential problem is the other use of 
_() -- or gettext() --
which is to flag an enclosed string constant for xgettext to extract and 
include in the pot file.

I don't see where that part is done, but if it is somewhere, then there's no 
gettext problem.
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.

Regards,
John Ralls

Ok, that means I was worrying for no good reason. I have applied your patch. Thank you very much !

Geert
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to