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

Re: [PATCH 1/2] gitk: Import msgcat for translation support

From
Paul Mackerras <paulus@samba.org>
Date
Jul 27, 2007, 23:53 UTC
Message-ID
<18090.34168.705811.872887@cargo.ozlabs.ibm.com>
In-Reply-To
<20070727165318.e96b1yxxwsooo884@webmail.tu-harburg.de>
Christian Stimming writes:
> Import tcl's msgcat package to have the [mc...] procedure for  
> translation available.
I would prefer
if {[catch {
    package require msgcat
    # rest of your new stuff
}]} {
    proc mc {str} {
	return $str
    }
}

so that everything still works if msgcat isn't available. In other words I don't want to introduce a possible regression by increasing gitk's requirements.

Paul.
Previous: Paul Mackerras
Message 9 of 9 in “gitk: Import msgcat for translation support”
  1. 1/2 gitk: Import msgcat for translation supportChristian Stimming, Jul 27, 2007
  2. 2/2 gitk: Markup many strings for translation.Christian Stimming, Jul 27, 2007
  3. Paul MackerrasJul 28, 2007
  4. Junio C HamanoJul 28, 2007
  5. Paul MackerrasJul 28, 2007
  6. Junio C HamanoJul 28, 2007
  7. gitk still interested in translations?Christian Stimming, Oct 21, 2007
  8. Paul MackerrasOct 23, 2007
  9. Paul MackerrasJul 27, 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.