author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 14 Sep 2007 05:50:09 +0000 (01:50 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 14 Sep 2007 05:51:18 +0000 (01:51 -0400) | ||
commit | 31bb1d1b2d1e893836b0d2b091fed9e39ee84853 | |
tree | 88f778a7c48f2941c5c89a137c0f162eab68250d | tree | snapshot |
parent | bba060462c8732a5cb46ea00165198a9579517ae | commit | diff |
git-gui: Paper bag fix missing translated strings
The Tcl expression "[append [mc Foo] Bar]" does not return the string
"FooBar" after translation; instead it is setting the variable Foo to
the value Bar, or if Foo is already defined it is appending Bar onto
the end of it. This is *not* what we wanted to have happen here.
Tcl's join function is actually the correct function but its default
joinStr argument is a single space. Unfortunately all of our call
sites do not want an extra space added to their string. So we need
a small wrapper function to make the call to join with an empty
join string. In C this is (roughly) the job of the strcat function.
Since strcat is not yet used at the global level it is a reasonable
name to use here.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
The Tcl expression "[append [mc Foo] Bar]" does not return the string
"FooBar" after translation; instead it is setting the variable Foo to
the value Bar, or if Foo is already defined it is appending Bar onto
the end of it. This is *not* what we wanted to have happen here.
Tcl's join function is actually the correct function but its default
joinStr argument is a single space. Unfortunately all of our call
sites do not want an extra space added to their string. So we need
a small wrapper function to make the call to join with an empty
join string. In C this is (roughly) the job of the strcat function.
Since strcat is not yet used at the global level it is a reasonable
name to use here.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history | |
lib/blame.tcl | diff | blob | history | |
lib/branch_rename.tcl | diff | blob | history | |
lib/checkout_op.tcl | diff | blob | history | |
lib/choose_rev.tcl | diff | blob | history | |
lib/commit.tcl | diff | blob | history | |
lib/diff.tcl | diff | blob | history | |
lib/option.tcl | diff | blob | history | |
lib/shortcut.tcl | diff | blob | history |