Re: [PATCH v2] i18n: config: unfold error messages marked for translation
Vasco Almeida <vascomalmeida@sapo.pt> writes:
> Unfold the message into several templates for each known origin_type.
> That would result in better translation at the expense of code
> verbosity.
Looks good now, except one minor nit I'll tweak out while queuing.
Show 6 quoted lines
> if (cf->die_on_error)
> - die(_("bad config line %d in %s %s"), cf->linenr, cf->origin_type, cf->name);
> + die("%s", error_msg);
> else
> - return error(_("bad config line %d in %s %s"), cf->linenr, cf->origin_type, cf->name);
> + error_return = error("%s", error_msg);