diff options
author | stanton <stanton> | 1999-04-30 22:44:59 (GMT) |
---|---|---|
committer | stanton <stanton> | 1999-04-30 22:44:59 (GMT) |
commit | fe45fa11e3df7cd37954c0f8051d9948114951b6 (patch) | |
tree | a193f27eb18d04a30f8b4f663611d5957c2f5f6a /doc/msgcat.n | |
parent | b81b15c0f284194a10d17be0a8daa622ec578d94 (diff) | |
download | tcl-fe45fa11e3df7cd37954c0f8051d9948114951b6.zip tcl-fe45fa11e3df7cd37954c0f8051d9948114951b6.tar.gz tcl-fe45fa11e3df7cd37954c0f8051d9948114951b6.tar.bz2 |
* Merged changes from 8.1.0 branch
Diffstat (limited to 'doc/msgcat.n')
-rw-r--r-- | doc/msgcat.n | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/msgcat.n b/doc/msgcat.n index e04d2a6..0ddd7ce 100644 --- a/doc/msgcat.n +++ b/doc/msgcat.n @@ -13,7 +13,7 @@ .SH NAME msgcat \- Tcl message catalog .SH SYNOPSIS -\fB::msgcat::mc src-string\fR +\fB::msgcat::mc \fIsrc-string\fR .sp \fB::msgcat::mclocale \fR?\fInewLocale\fR? .sp @@ -43,7 +43,7 @@ wishes to be enabled for multi-lingual applications. .SH COMMANDS .TP -\fB::msgcat::mc src-string\fR +\fB::msgcat::mc \fIsrc-string\fR Returns a translation of \fIsrc-string\fR according to the user's current locale. If no translation string exists, \fB::msgcat::mcunknown\fR is called and the string @@ -58,8 +58,9 @@ later simply by defining new message catalog entries. .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 new locale -is returned. The initial locale defaults to the locale specified in +is omitted, the current locale is returned, otherwise the current locale +is set to \fInewLocale\fR. +The initial locale defaults to the locale specified in the user's environment. See \fBLOCALE AND SUBLOCALE SPECIFICATION\fR below for a description of the locale string format. .TP @@ -81,7 +82,7 @@ and were loaded is returned. Sets the translation for \fIsrc-string\fR to \fItranslate-string\fR in the specified \fIlocale\fR. If \fItranslate-string\fR is not specified, \fIsrc-string\fR is used for both. The function -return \fItranslate-string\fR. +returns \fItranslate-string\fR. .TP \fB::msgcat::mcunknown \fIlocale src-string\fR This routine is called by \fB::msgcat::mc\fR in the case when @@ -89,9 +90,9 @@ a translation for \fIsrc-string\fR is not defined in the current locale. The default action is to return \fIsrc-string\fR. This procedure can be redefined by the application, for example to log error messages for each unknown -string. The \fB::msgcat::mcunknown\fB procedure is invoked at the +string. The \fB::msgcat::mcunknown\fR procedure is invoked at the same stack context as the call to \fB::msgcat::mc\fR. The return vaue -of \fB::msgcat::mcunknown\fB is used as the return vaue for the call +of \fB::msgcat::mcunknown\fR is used as the return vaue for the call to \fB::msgcat::mc\fR. .SH "LOCALE AND SUBLOCALE SPECIFICATION" |