Skip to content

Commit

Permalink
git-gui: Make backporting changes from i18n version easier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Sep 13, 2007
1 parent 63c4024 commit e7034d6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} {
}
}

######################################################################
##
## 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
Expand Down

0 comments on commit e7034d6

Please sign in to comment.