git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix translation of strings in foreach lists.

From
BSBrett Schwarz <brett_schwarz@yahoo.com>
Date
Jul 24, 2007, 17:54 UTC
Message-ID
<59193.87306.qm@web38905.mail.mud.yahoo.com>
Show 29 quoted lines
> ----- Original Message ----
> From: Christian Stimming <stimming@tuhh.de>
> To: Shawn O. Pearce <spearce@spearce.org>
> Cc: Brett Schwarz <brett_schwarz@yahoo.com>; git@vger.kernel.org; Paul Mackerras <paulus@samba.org>; Junio C Hamano <gitster@pobox.com>
> Sent: Tuesday, July 24, 2007 8:20:28 AM
> Subject: Re: [PATCH] Fix translation of strings in foreach lists.
> 
> Quoting "Shawn O. Pearce" <spearce@spearce.org>:
> >> >I not sure if it's worth changing, but you don't necessarily need
> >> >those [append]'s in there.
> >>
> >> Thanks for the info. It is basically up to Shawn to decide which style
> >> he likes more.
> >
> > "[mc Foo]\n\n$err"
> >
> > is much shorter.  So I'd prefer that over [append [mc Foo] "\n\n$err"].
> 
> Err, but the usual case is that the argument to [mc] is more than one  
> word, and (additionally) that argument has to be quoted by  
> double-quotes (as opposed to braces) because otherwise xgettext  
> doesn't extract the message correctly. Hence, the only possibility  
> here were
> 
>    "[mc "Some Text"]\n\n$err"
> 
> Is this valid Tcl? Being a newcomer to this language I have to says  
> the quotes here look rather strange :-)
> 
Yes, that's valid.

bschwarz@bschwarz-desktop:~/gittcl$ tclsh % package require msgcat 1.3.4 % namespace import msgcat::mc % set err "ERROR" ERROR % msgcat::mcset en "hello there" HOWDY HOWDY % puts "[mc "hello there"]\n\n$err" HOWDY

ERROR %

HTH,
    --brett
       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/
Message 1 of 1 in “Re: [PATCH] Fix translation of strings in foreach lists.”
  1. Brett SchwarzJul 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.