summaryrefslogtreecommitdiffstats
path: root/doc/msgcat.n
diff options
context:
space:
mode:
authorericm <ericm@noemail.net>2000-07-17 22:25:25 (GMT)
committerericm <ericm@noemail.net>2000-07-17 22:25:25 (GMT)
commitde2250c38284b83b2550d3ad831d54d76b153e0e (patch)
tree4aaf12e0f958eefbadbedaafe08b0bd0d6340cbe /doc/msgcat.n
parent3f784a4736109ed358e1378668806a3a411d8d50 (diff)
downloadtcl-de2250c38284b83b2550d3ad831d54d76b153e0e.zip
tcl-de2250c38284b83b2550d3ad831d54d76b153e0e.tar.gz
tcl-de2250c38284b83b2550d3ad831d54d76b153e0e.tar.bz2
* library/msgcat1.0/msgcat.tcl:
* doc/msgcat.n: * tests/msgcat.test: Applied patches from Chris Nelson, to provide the mcmset function, which allows the translator to set multiple string translations in a single function call, rather than requiring many calls to mcset. [RFE: 6000, 5993]. In addition, these patches correct mcload to use utf-8 encoding on when reading message catalog files, and provides for better default behavior for determining the locale on a Windows system. FossilOrigin-Name: 3ad3252f556dddad29e7d484185cae63b065edeb
Diffstat (limited to 'doc/msgcat.n')
-rw-r--r--doc/msgcat.n11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/msgcat.n b/doc/msgcat.n
index e271839..4d604c9 100644
--- a/doc/msgcat.n
+++ b/doc/msgcat.n
@@ -25,6 +25,8 @@ msgcat \- Tcl message catalog
.sp
\fB::msgcat::mcset \fIlocale src-string \fR?\fItranslate-string\fR?
.sp
+\fB::msgcat::mcmset \fIlocale src-trans-list\fR
+.sp
\fB::msgcat::mcunknown \fIlocale src-string\fR
.BE
@@ -99,6 +101,15 @@ in the specified \fIlocale\fR. If \fItranslate-string\fR is not
specified, \fIsrc-string\fR is used for both. The function
returns \fItranslate-string\fR.
.TP
+\fB::msgcat::mcmset \fIlocale src-trans-list\fR
+Sets the translation for multiple source strings in
+\fIsrc-trans-list\fR in the specified \fIlocale\fR.
+\fIsrc-trans-list\fR must have an even number of elements and is in
+the form {\fIsrc-string translate-string\fR ?\fIsrc-string
+translate-string ...\fR?} \fBmcsetcat::mcmset\fR can be significantly
+faster than multiple invocations of \fBmsgcat::mcset\fR. The function
+returns the number of translations set.
+.TP
\fB::msgcat::mcunknown \fIlocale src-string\fR
This routine is called by \fB::msgcat::mc\fR in the case when
a translation for \fIsrc-string\fR is not defined in the