On 01/02/2017 10:19 AM, Stefan Klinger wrote:
> +                        if(t->type != 0) {
> +                                warning(_("hook %s line %d: overwriting 
> previous definition of Type\n"), file, line);
> +                        }
...
> +                        if(hook->when != 0) {
> +                                warning(_("hook %s line %d: overwriting 
> previous definition of When\n"), file, line);
> +                        }
...
> +                        if(hook->desc != NULL) {
> +                                warning(_("hook %s line %d: overwriting 
> previous definition of Description\n"), file, line);
> +                        }
...
> +                        if(hook->cmd != NULL) {
> +                                warning(_("hook %s line %d: overwriting 
> previous definition of Exec\n"), file, line);
> +                        }

Look at all the times error is used. ;) You should be formatting the
warning with the definition type as well.

This allows a single translation to be used for all four.

-- 
Eli Schwartz

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to