Version 1 of Tk and msgcat

Updated 2007-11-08 14:08:42 by MB

The purpose of this page is to illustrate the use of the msgcat package to make a Tk software internationalized automatically. The recommended usage of the msgcat package to translate messages is to insert msgcat::mc instructions like this : http://wiki.tcl.tk/1488 instead of

 label .x -text Files

you write

 label .x -text [msgcat::mc Files]

This is good, but forces the developper to insert "msgcat::mc" everywhere into the current Tcl script. Of course, it is well known that the Frink tool can instrument a Tcl script and insert the msgcat::mc automatically. But the resulting script is modified, which may be unwanted (http://wiki.tcl.tk/2611 ).


See also:


Tcl syntax help - Arts and crafts of Tcl-Tk programming

Category Command - Category Local - Category String Processing