bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Added note for translators to gai_strerror.c, so they don't


From: Bruno Haible
Subject: Re: [PATCH] Added note for translators to gai_strerror.c, so they don't translate param names.
Date: Fri, 26 Oct 2007 03:32:03 +0200
User-agent: KMail/1.5.4

Eric Blake wrote:
> Would it perhaps be worth rendering this as:
> 
> _("`Servname' not supported for `ai_socktype'")
> 
> further emphasizing the literalness of the parameter names?

IMO, this goes against the sense of quotes: Quoting usually highlights
a literal value, not a variable name. If a function
    chdir (directory)
is called as
    chdir ("%HOME%")
then the error message should be

       invalid directory: '%HOME%'
not    invalid directory: %HOME%
nor    invalid 'directory': '%HOME%'

The literal part should be quoted, so that its extent becomes clear despite
special characters or possibly spaces. The variable - here 'directory' - should
not be quoted because the literal string "directory" does not appear in the
compiled program.

For this same reason, makeinfo renders @code{x} as `x' but not @var{x}.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]