Thread (24 messages) flat view 24 messages, 6 authors, 2016-06-15

Re: [PATCH] Internationalization of git-gui

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:43:22

Brett Schwarz [off-list ref] wrote:
This is a good idea. However, I assume the _ proc is just sugar. It
might be better to follow a more "standard" way for this, and just
import the msgcat namespace, and then you can just use [mc]. For
example:

package require msgcat
namespace import ::msgcat::*
  .
  .
  .
.mbar add cascade -label [mc Repository] -menu .mbar.repository
Not just better, I'd prefer it.  The proc name "_" is cute but
is just too darn short.  I would much prefer to use "mc" and just
say that "mc" in all of git-gui's namespaces is reserved for the
message catalog, much as "cb" is already reserved for setting up
callbacks for Tcl/Tk event handlers.

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help