summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 63c4024)
raw | patch | inline | side by side (parent: 63c4024)
author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 13 Sep 2007 23:04:14 +0000 (19:04 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 13 Sep 2007 23:04:14 +0000 (19:04 -0400) |
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>
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>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index e221d5b511dbcbed5c6142634810d98ba08e2449..31a36cb49f2149b211f6e78f70b8436f59a0770f 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
}
}
+######################################################################
+##
+## Fake internationalization to ease backporting of changes.
+
+proc mc {fmt args} {
+ set cmk [string first @@ $fmt]
+ if {$cmk > 0} {
+ set fmt [string range $fmt 0 [expr {$cmk - 1}]]
+ }
+ return [eval [list format $fmt] $args]
+}
+
######################################################################
##
## read only globals