From: Brett Schwarz <brett_schwarz@yahoo.com>
To: Paul Mackerras <paulus@samba.org>, Christian Stimming <stimming@tuhh.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/2] gitk: Import msgcat for translation support
Date: Sat, 28 Jul 2007 00:28:10 -0700 (PDT) [thread overview]
Message-ID: <157938.79347.qm@web38908.mail.mud.yahoo.com> (raw)
>
> ----- Original Message ----
> From: Paul Mackerras <paulus@samba.org>
> To: Christian Stimming <stimming@tuhh.de>
> Cc: git@vger.kernel.org
> Sent: Friday, July 27, 2007 4:53:28 PM
> Subject: Re: [PATCH 1/2] gitk: Import msgcat for translation support
>
> 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.
Junio already replied to this, and he was correct. However, this made me think
of something (that probably should be in git-gui as well) to make it a little
more robust. We should check that the msg directory is where we think it is,
and either give a warning, or exit the app (I would vote for the former).
So, something like:
set msgdir [file join . msgs] ;# or whatever this turns out to be
if {[file exists $msgdir]} {
::msgcat::mcload $msgdir
} else {
puts stderr "WTF: can't find message catalog directory"
}
Or you could just use [catch] around the ::msgcat::mcload too.
Regards,
--brett
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
next reply other threads:[~2007-07-28 7:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-28 7:28 Brett Schwarz [this message]
2007-07-28 10:40 ` [PATCH 1/2] gitk: Import msgcat for translation support Christian Stimming
-- strict thread matches above, loose matches on Subject: below --
2007-07-27 14:53 Christian Stimming
2007-07-27 23:53 ` Paul Mackerras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=157938.79347.qm@web38908.mail.mud.yahoo.com \
--to=brett_schwarz@yahoo.com \
--cc=git@vger.kernel.org \
--cc=paulus@samba.org \
--cc=stimming@tuhh.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox