git-gui: Make backporting changes from i18n version easier
This is a very trivial hack to define a global mc procedure that does not actually perform i18n translations on its input strings. By declaring an mc procedure here in our maint version of git-gui we can take patches that are intended for the latest development version of git-gui and easily backport them without needing to tweak the mc calls first. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Sep 13, 2007 at 19:04 UTC
e7034d66ecd9c16ae8bd8d331fc41efc48e925f1
1 file changed
+12
git-gui.sh
+12
@@ -62,6 +62,18 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} {
62
}
63
}
64
65
+######################################################################
66
+##
67
+## Fake internationalization to ease backporting of changes.
68
+
69
+proc mc {fmt args} {
70
+ set cmk [string first @@ $fmt]
71
+ if {$cmk > 0} {
72
+ set fmt [string range $fmt 0 [expr {$cmk - 1}]]
73
+ }
74
+ return [eval [list format $fmt] $args]
75
+}
76
+
77
######################################################################
78
##
79
## read only globals