From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-gui-i18n: Fix translation of the context menu
Date: Mon, 23 Jul 2007 10:58:22 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0707231057550.14781@racer.site> (raw)
In-Reply-To: <20070723035122.GB32566@spearce.org>
Hi,
On Sun, 22 Jul 2007, Shawn O. Pearce wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
>
> > diff --git a/git-gui.sh b/git-gui.sh
> > index 075a2b9..52170ee 100755
> > --- a/git-gui.sh
> > +++ b/git-gui.sh
> > @@ -2457,9 +2457,9 @@ bind_button3 $ui_diff "
> > set cursorX %x
> > set cursorY %y
> > if {\$ui_index eq \$current_diff_side} {
> > - $ctxm entryconf $ui_diff_applyhunk -label [mc {Unstage Hunk From Commit}]
> > + $ctxm entryconf $ui_diff_applyhunk -label \"[mc "Unstage Hunk From Commit"]\"
>
> That's the wrong change to do here, as you are going to eval
> the result of the translation. If the translation had a Tcl
> special character (\, $, [) in it then we'd actually execute that.
> Instead the [ should be escaped:
>
> > + $ctxm entryconf $ui_diff_applyhunk -label \[mc "Unstage Hunk From Commit"\]
>
> But you aren't a Tcl programmer, so its OK. ;-)
Heh.
Thanks,
Dscho
prev parent reply other threads:[~2007-07-23 9:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-22 16:20 [PATCH] git-gui-i18n: Fix translation of the context menu Johannes Schindelin
2007-07-23 3:51 ` Shawn O. Pearce
2007-07-23 9:58 ` Johannes Schindelin [this message]
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=Pine.LNX.4.64.0707231057550.14781@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.org \
/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;
as well as URLs for NNTP newsgroup(s).