summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorericm <ericm>2000-07-17 22:25:25 (GMT)
committerericm <ericm>2000-07-17 22:25:25 (GMT)
commite58ac604378b855c137c05576fd796df952cb349 (patch)
tree4aaf12e0f958eefbadbedaafe08b0bd0d6340cbe /doc
parent247225ff4ff6cee54489ee55dc9911d459e1003d (diff)
downloadtcl-e58ac604378b855c137c05576fd796df952cb349.zip
tcl-e58ac604378b855c137c05576fd796df952cb349.tar.gz
tcl-e58ac604378b855c137c05576fd796df952cb349.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.
Diffstat (limited to 'doc')
-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