RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Untranslatable code constructs

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 18 Apr 2008 - 23:32:15 CEST
Message-Id: <FB9CE0A5-078C-438C-8EF9-9B24C3F11030@mac.com>

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
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.