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

Re: [PATCH 00/15] i18n support for git-gui

From
Shawn O. Pearce <spearce@spearce.org>
Date
Sep 3, 2007, 04:49 UTC
Message-ID
<20070903044938.GQ18160@spearce.org>
In-Reply-To
<Pine.LNX.4.64.0709021738090.28586@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 6 quoted lines
> sorry for the fsckup with the first two patches; both should be attributed 
> to Christian Stimming.
> 
> For convenience, I also uploaded that patch series (on top of your 
> "git-gui: Initialize Tcl's msgcat library for internationalization" in 
> your "pu" branch) to the "for-shawn" branch in git-gui-i18n.
That was *much* easier than the small patch bomb.  ;-)

I've swallowed this series down and added it to my `master` branch. I found one bug in the [mc "..."] string definitions and fixed it (below). I also applied Michele Ballabio's "remove does in some UI strings" patch on top. Those two changes I'm sure will impact some of the translated strings. I guess someone needs to run `make update-po` and ask translators to revise the individual languages?

-->8--
From b86882eda026a0da18472587034250a53e0daf51 Mon Sep 17 00:00:00 2001
From: Shawn O. Pearce <spearce@spearce.org>
Date: Mon, 3 Sep 2007 00:22:19 -0400
Subject: [PATCH] git-gui: Correct stock message for 'Invalid font specified in %s'

This particular message is talking about a specific option in the configuration file named "gui.$name". This option is not localized so we cannot localize the "gui." that denotes the section the option $name is found within. Currently there are no plans to localize the configuration options for git-gui, but if that were to change in the future then it would be necessary to localize not only the "gui." section prefix but also the $name (fontui and fontdiff).

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 git-gui.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-gui.sh b/git-gui.sh
index 913ba68..5635eea 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1643,7 +1643,7 @@ proc apply_config {} {
 				font configure $font $cn $cv
 			}
 			} err]} {
-			error_popup [append [mc "Invalid font specified in gui.%s:" $name] "\n\n$err"]
+			error_popup [append [mc "Invalid font specified in %s:" "gui.$name"] "\n\n$err"]
 		}
 		foreach {cn cv} [font configure $font] {
 			font configure ${font}bold $cn $cv
-- 
1.5.3

-- 
Shawn.
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 20 of 21 in “i18n support for git-gui”
  1. 00/15 i18n support for git-guiJohannes Schindelin, Sep 2, 2007
  2. 01/15 Mark strings for translation.Johannes Schindelin, Sep 2, 2007
  3. Johannes SchindelinSep 2, 2007
  4. 02/15 Makefile rules for translation catalog generation and installation.Johannes Schindelin, Sep 2, 2007
  5. 02/15 Makefile rules for translation catalog generation and installation.Johannes Schindelin, Sep 2, 2007
  6. 03/15 git-gui po/README: Guide to translatorsJohannes Schindelin, Sep 2, 2007
  7. 04/15 Add po/git-gui.potJohannes Schindelin, Sep 2, 2007
  8. 05/15 Ignore po/*.msgJohannes Schindelin, Sep 2, 2007
  9. 06/15 Add glossary that can be converted into a po file for each language.Johannes Schindelin, Sep 2, 2007
  10. 07/15 Add glossary translation template into git.Johannes Schindelin, Sep 2, 2007
  11. 08/15 German translation for git-guiJohannes Schindelin, Sep 2, 2007
  12. 09/15 Initial Chinese translation for git-guiJohannes Schindelin, Sep 2, 2007
  13. 10/15 Japanese translation of git-guiJohannes Schindelin, Sep 2, 2007
  14. 11/15 Italian translation of git-guiJohannes Schindelin, Sep 2, 2007
  15. 12/15 git-gui: initial version of russian translationJohannes Schindelin, Sep 2, 2007
  16. 13/15 Hungarian translation of git-guiJohannes Schindelin, Sep 2, 2007
  17. 14/15 German glossary for translationJohannes Schindelin, Sep 2, 2007
  18. 15/15 git-gui: Added initial version of po/glossary/zh_cn.poJohannes Schindelin, Sep 2, 2007
  19. Johannes SchindelinSep 2, 2007
  20. Shawn O. PearceSep 3, 2007
  21. Johannes SchindelinSep 3, 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.