git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: Christian Stimming <stimming@tuhh.de>
Cc: Brett Schwarz <brett_schwarz@yahoo.com>,
	git@vger.kernel.org, Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH] Internationalization of git-gui
Date: Fri, 20 Jul 2007 22:17:17 -0400	[thread overview]
Message-ID: <20070721021717.GS32566@spearce.org> (raw)
In-Reply-To: <20070720105602.7dcm241ts0k0ww88@webmail.tu-harburg.de>

Christian Stimming <stimming@tuhh.de> wrote:
> I used (and prefer) "_" because that's the standard function name for  
> i18n'd strings when using gettext (talking about a "standard" way).

I thought about this today.  I almost want to use _, e.g:

  proc _ {args} {
    return [eval mc $args]
  }

For the translation, but I don't think its worth the CPU cycles in
Tcl to eval mc via _ every time we need a string when it only is
saving us one keystroke on a function name, *and* we are breaking
tradition with Tcl.

So when in Rome, wear a toga.  Or in this case, use [mc ...].

> Being a newcomer on this list, could you please explain to me how to  
> proceed with the i18n patches so far?

Sure.

> Do you want to have patches  
> submitted after some further changes (which ones?)

Yes.  Here's a few to get started with and that are really obvious.
Some I'm just asking for more information on.

 - Import msgcat::mc and use [mc] instead of [_].

 - Please combine the second and third patches into a single change.
 There is no reason to switch to [mc {}] only to switch to [mc ""].

 - Please use mc's formatting support, rather than [format].
 Its shorter code.

 - Don't bother trying to translate the strings "Tools" (for the
 Tools menu) or "Migrate" (for its only menu option).  This block
 of code doesn't even belong in git-gui.  Its for my day-job and
 is a custom hack that I need to strip out and carry as a local
 patch there, rather than in the public distribution.

 - In our Makefile we do the looping in GNU make using its
 $(foreach) operator, rather than using the shell's for builtin.
 In other words, can we have the catalog target look more like the
 install target?

 - Can ALL_LINGUAS be automatically built from the directory
 contents of the po/ directory?

 - Can we define a dist rule for the maintainer to build the catalog
 files, so the maintainer can convert the .po -> .msg for Tcl and
 the user doesn't need the GNU tools installed to build git-gui?


> and/or in different  
> formats?

Please send one patch per email message, inline and not attached.
This way they are easy to review, respond to and comment on.

> Do you prefer to have all changes in a smaller number of  
> commit rather than split the way I did before?

No, this series looks reasonably fine to me structurally.

Did you base the patches on git.git's git-gui/ subdirectory, or
did you base them on the git-gui.git repository?  Technically all
patches for git-gui should be against the git-gui repository on
repo.or.cz, as git-gui is its own project.  Periodic stable snapshots
are imported into git.git under the git-gui/ subdirectory, for the
ease of distribution with core git.

Dscho recently created a fork of git-gui.git here:

  http://repo.or.cz/w/git-gui/git-gui-i18n.git

and added your patch series into it.  But I'd like to see some
cleanups before it merges in, and I want to hold off on actually
applying it into git-gui 0.8.0 is released, which should be Real
Soon Now as I'm trying to make it into git 1.5.3, which is coming
Even Sooner Than I'd Hoped.  ;-)

> Should I wait for some  
> more days/weeks/whatever until you or particular other developers have  
> reviewed the patches? Thanks.

I think we're settled on using [mc].  I'm fine with the *.po ->
*.msg thing, especially if the maintainer can produce them and
package the *.msg files in the release tarball, so that the enduser
doesn't need to worry about msgfmt working.

-- 
Shawn.

  reply	other threads:[~2007-07-21  2:17 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-19 17:33 [PATCH] Internationalization of git-gui Brett Schwarz
2007-07-20  5:04 ` Shawn O. Pearce
2007-07-20  8:56   ` Christian Stimming
2007-07-21  2:17     ` Shawn O. Pearce [this message]
2007-07-21  7:50       ` Christian Stimming
2007-07-21  8:03         ` Shawn O. Pearce
2007-07-21 12:33           ` [PATCH 1/5] " Christian Stimming
2007-07-21 12:34             ` [PATCH 2/5] " Christian Stimming
2007-07-21 12:36               ` [PATCH 3/5] " Christian Stimming
2007-07-21 12:37                 ` Christian Stimming
2007-07-21 12:41                   ` [PATCH 5/5] " Christian Stimming
2007-07-21 13:46                   ` [PATCH 3/5] " David Kastrup
2007-07-21 16:27                     ` Simon 'corecode' Schubert
2007-07-21 17:41                       ` David Kastrup
2007-07-21 18:50                     ` Translation process (was: [PATCH 3/5] Internationalization of git-gui) Christian Stimming
2007-07-21 19:27                     ` German translations " Christian Stimming
2007-07-21 19:57                       ` German translations David Kastrup
2007-07-22 13:16                         ` Christian Stimming
2007-07-22 14:52                         ` Edgar Toernig
2007-07-23 19:20                           ` Christian Stimming
2007-07-21 20:09                       ` David Kastrup
2007-07-22  7:47                   ` [PATCH 3/5] Internationalization of git-gui Shawn O. Pearce
2007-07-22  8:05                     ` Junio C Hamano
2007-07-22 12:16                       ` Christian Stimming
2007-07-22 12:44                         ` Johannes Schindelin
2007-07-22 12:57                           ` Christian Stimming
2007-07-22 13:06                             ` Johannes Schindelin
2007-07-22  7:45               ` [PATCH 2/5] " Shawn O. Pearce
2007-07-22 12:24                 ` Christian Stimming
2007-07-21 14:22             ` [PATCH 1/5] " Johannes Schindelin
2007-07-21 19:41               ` Junio C Hamano
2007-07-21 19:50                 ` Christian Stimming
2007-07-21 21:20                   ` Johannes Schindelin
2007-07-21 21:28                   ` Junio C Hamano
2007-07-21 21:35                     ` Johannes Schindelin
2007-07-22 13:35                     ` Christian Stimming
2007-07-22 14:29                       ` Johannes Schindelin
2007-07-23 20:16                     ` [PATCH] Add glossary that can be converted into a po file for each language Christian Stimming
2007-07-24  1:48                       ` Junio C Hamano
2007-07-24  6:56                       ` Junio C Hamano
2007-07-24  9:34                         ` Christian Stimming
2007-07-21 21:12                 ` [PATCH 1/5] Internationalization of git-gui Johannes Schindelin
2007-07-21 22:36                   ` Junio C Hamano
2007-07-21 23:01                     ` Johannes Schindelin
2007-07-22  7:38             ` Shawn O. Pearce
2007-07-23 19:23               ` Christian Stimming
2007-07-24 14:57                 ` Shawn O. Pearce
2007-07-20  9:03 ` [PATCH] " Christian Stimming
  -- strict thread matches above, loose matches on Subject: below --
2007-07-21 16:29 Brett Schwarz
2007-07-20 18:34 Brett Schwarz
2007-07-20 21:40 ` Christian Stimming
2007-07-20 18:15 Brett Schwarz
2007-07-19 10:56 Christian Stimming
2007-07-19 12:25 ` Johannes Schindelin
2007-07-20  4:55   ` Shawn O. Pearce
2007-07-20 17:32     ` Paolo Ciarrocchi
2007-07-20 18:10       ` Junio C Hamano
2007-07-20 18:38         ` Johannes Schindelin
2007-07-20 18:47           ` Paolo Ciarrocchi
2007-07-20 19:06             ` Johannes Schindelin
2007-07-20 19:02         ` Sam Ravnborg
2007-07-20 19:16         ` Xudong Guan
2007-07-21  8:12         ` しらいしななこ
2007-07-21  8:22           ` Junio C Hamano
2007-07-21 13:21             ` Johannes Schindelin
2007-07-21 18:57             ` Paolo Ciarrocchi
2007-07-21 21:25               ` Johannes Schindelin
2007-07-21 22:57                 ` Junio C Hamano
2007-07-22  1:12                   ` Johannes Schindelin

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=20070721021717.GS32566@spearce.org \
    --to=spearce@spearce.org \
    --cc=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;
as well as URLs for NNTP newsgroup(s).