On Apr 18, 2008, at 4:41 PM, Göran Uddeborg wrote:
> While translating the rpm 5.1 I found this piece of code in
> compile_single_pattern() in rpmio/rpmgrep.c:
>
> fprintf(stderr, _("%s: Too many %spatterns (max %d)\n"), __progname,
> (filename == NULL)? "command-line " : "", MAX_PATTERN_COUNT);
>
> There is no way here to translate "command-line ". Note that it is
> not enough to just mark "command-line " too for translation. In the
> general case won't work to translate sentences built from parts like
> that. (It would work for Swedish in this case, but Swedish and
> English are relatively close, in a global perspective.) It needs to
> be separated into two complete messages.
Also fixed.
The real flaw, likely invisible to a translator, is that the entire
check
and error message is now unnecessary. rpmgrep, unlike pcregrep,
will realloc mire patterns until ENOMEM is returned.
73 de Jeff
Received on Fri Apr 18 23:32:24 2008