GNU bug report logs -
#45893
[PATCH 0/2] DRAFT: Hint for options.
Previous Next
Reported by: zimoun <zimon.toutoune <at> gmail.com>
Date: Fri, 15 Jan 2021 16:38:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #68 received at 45893 <at> debbugs.gnu.org (full text, mbox):
Hi,
Thanks for the review.
On Tue, 26 Jan 2021 at 21:53, Ludovic Courtès <ludo <at> gnu.org> wrote:
>>> > + (fold (lambda (name res)
>>> > + (if (string-null? res)
>>> > + (string-append "@code{" name "}")
>>> > + (string-append "@code{" name "}, " res)))
>>> > + ""
>>> > + (string-closest (symbol->string guess) command-names)))
>>>
>>> Hmm I thought ‘string-closest’ would return a single string, but
>>> actually it returns a list of strings?
>>>
>>> You cannot append strings together like this as this can break i18n.
>>
>> Hum? But it is not (G_ "")...
>
> Yes, but here you’re building an enumeration like:
>
> ‘foo’, ‘bar’, ‘baz’
>
> This should be i18n’d, and so it should all be in a single format
> string.
Are the options translated? If yes, then I understand, else I miss.
Anyway, I have removed that since I agree with your practical argument:
hint is for typo. Type a faulty option name at the same distance as 2
real option names is not a typo. ;-)
Cheers,
simon
This bug report was last modified 4 years and 106 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.