summaryrefslogtreecommitdiffstats
path: root/doc/msgcat.n
diff options
context:
space:
mode:
authorericm <ericm>2000-06-30 06:28:26 (GMT)
committerericm <ericm>2000-06-30 06:28:26 (GMT)
commitbe8ba4515aaf9da7893bcb0930ca1965e0602cb3 (patch)
tree08cdf6c63cdabcea3bef54c3fcd784745766fb05 /doc/msgcat.n
parent5513f66815de5f44c874f0b1f50a3733d993121d (diff)
downloadtcl-be8ba4515aaf9da7893bcb0930ca1965e0602cb3.zip
tcl-be8ba4515aaf9da7893bcb0930ca1965e0602cb3.tar.gz
tcl-be8ba4515aaf9da7893bcb0930ca1965e0602cb3.tar.bz2
* doc/msgcat.n: Doc's for mcmax function.
* library/msgcat1.0/msgcat.tcl: Applied patches from Laurent Duperval, to add mcmax function, which computes the length of the longest of several translated strings. Bumped version number to 1.1.
Diffstat (limited to 'doc/msgcat.n')
-rw-r--r--doc/msgcat.n8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/msgcat.n b/doc/msgcat.n
index f4acd54..e271839 100644
--- a/doc/msgcat.n
+++ b/doc/msgcat.n
@@ -15,6 +15,8 @@ msgcat \- Tcl message catalog
.SH SYNOPSIS
\fB::msgcat::mc \fIsrc-string\fR ?\fIarg arg ...\fR?
.sp
+\fB::msgcat::mcmax ?\fIsrc-string src-string ...\fR?
+.sp
\fB::msgcat::mclocale \fR?\fInewLocale\fR?
.sp
\fB::msgcat::mcpreferences\fR
@@ -63,6 +65,12 @@ use the result. If an application is written for a single language in
this fashion, then it is easy to add support for additional languages
later simply by defining new message catalog entries.
.TP
+\fB::msgcat::mcmax ?\fIsrc-string src-string ...\fR?
+Given several source strings, \fB::msgcat::mcmax\fR returns the length
+of the longest translated string. This is useful when designing
+localized GUI's, which may require that all buttons, for example, be a
+fixed width (which will be the width of the widest button).
+.TP
\fB::msgcat::mclocale \fR?\fInewLocale\fR?
This function sets the locale to \fInewLocale\fR. If \fInewLocale\fR
is omitted, the current locale is returned, otherwise the current locale