Thread (24 messages) flat view 24 messages, 6 authors, 2016-06-15

Re: [PATCH 1/5] Internationalization of git-gui

From: Christian Stimming <hidden>
Date: 2016-06-15 22:43:22
Subsystem: the rest · Maintainer: Linus Torvalds

From 18d783abd85e074c302c5e7979dfb242b3c6c386 Mon Sep 17 00:00:00 2001
From: Christian Stimming <redacted>
Date: Sat, 21 Jul 2007 13:51:48 +0200
Subject: [PATCH] Initialize msgcat (gettext).

Use [mc ...] as function name for translating user messages.

Signed-off-by: Christian Stimming <redacted>
---

This patch starts over from before the first i18n patch has been applied and 
takes into account all discussion with Shawn. Currently I don't quite know 
how to apply these patches to the "mob" branch because one would have
to first revert those patches from me that have been applied there... Thanks.

 git-gui.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/git-gui.sh b/git-gui.sh
index c5ff7c8..0c5ca46 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -108,6 +108,12 @@ if {$idx ne {}} {
 }
 unset -nocomplain oguirel idx fd
 
+## Internationalization (i18n) through msgcat and gettext. See
+## http://www.gnu.org/software/gettext/manual/html_node/Tcl.html
+package require msgcat
+::msgcat::mcload [file join $oguilib msgs]
+namespace import ::msgcat::mc
+
 ######################################################################
 ##
 ## read only globals
-- 
1.5.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help