Re: [PATCH 1/5] Internationalization of git-gui
- From
Christian Stimming <stimming@tuhh.de>
- Date
- Jul 21, 2007, 12:33 UTC
- Message-ID
- <200707211433.29318.stimming@tuhh.de>
- In-Reply-To
- <20070721080338.GT32566@spearce.org>
>From 18d783abd85e074c302c5e7979dfb242b3c6c386 Mon Sep 17 00:00:00 2001
From: Christian Stimming <chs@ckiste.goetheallee> 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 <stimming@tuhh.de> ---
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