GNU bug report logs - #13665
Question about the translation of double_to_human

Previous Next

Package: coreutils;

Reported by: Göran Uddeborg <goeran <at> uddeborg.se>

Date: Sat, 9 Feb 2013 18:44:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #25 received at 13665 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, goeran <at> uddeborg.se, 13665 <at> debbugs.gnu.org
Subject: Re: bug#13665: Question about the translation of double_to_human
Date: Sun, 10 Feb 2013 20:11:24 +0000
On 02/10/2013 05:15 PM, Bernhard Voelker wrote:
> On 02/10/2013 05:28 PM, Pádraig Brady wrote:
>> I've cleaned this up in the attached so that both use the same
>> method to output the messages, and both now enable these messages
>> with the the same ---debug option.
>> Also translations are removed from these messages,
>> and a syntax check added to stop future translations sneaking in in future.
>
> Great work, thanks.
>
> Minor nit:
>> diff --git a/cfg.mk b/cfg.mk
>> index fbc64b4..09858a1 100644
>> --- a/cfg.mk
>> +++ b/cfg.mk
>> @@ -521,6 +521,13 @@ sc_THANKS_in_duplicates:
>>   	    && { echo '$(ME): remove the above names from THANKS.in'	\
>>   		  1>&2; exit 1; } || :
>>
>> +# Look for developer diagnostics that are marked for translation.
>> +# This won't find any for which devmsg's format string is on a separate line.
>> +sc_marked_devdiagnostics:
>> +	@prohibit='\<devmsg *\(.*_\(' \
>> +	halt='found marked developer diagnostic(s)'                     \
>> +	  $(_sc_search_regexp)
>> +
>
> Shouldn't it be this pattern instead?
> -	@prohibit='\<devmsg *\(.*_\(' \
> +	@prohibit='\<devmsg *\( *_\(' \

Well that wouldn't catch: devmsg ("[%s]", _("blah"));

> And: do we need to reference Goeran's message to the ML?

Already amended locally :)

thanks,
Pádraig.




This bug report was last modified 12 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.