summaryrefslogtreecommitdiffstats
path: root/library/msgcat/msgcat.tcl
Commit message (Collapse)AuthorAgeFilesLines
* * library/msgcat/msgcat.tcl: Added checks to prevent [mclocale]dgp2004-08-131-3/+8
| | | | | | * tests/msgcat.test: from registering filesystem paths to possibly malicious code to be evaluated by a later [mcload]. * library/msgcat/pkgIndex.tcl: Bump to msgcat 1.3.3
* * doc/msgcat.n: Clarified message catalog file encodings. [Bug 811457]dgp2004-03-311-5/+8
| | | | | | | | | | | * library/msgcat/msgcat.tcl ([mcset], [ConvertLocale], [Init]): Corrected [mcset] to be able to successfully set a translation to the empty string. [mcset $loc $src {}] was incorrectly set the $loc translation of $src back to $src. Also changed [ConvertLocale] to minimally require a non-empty "language" part in the locale value. If not, an error raised prompts [Init] to keep looking for a valid locale value, or ultimately fall back on the "C" locale. [Bug 811461]. * library/msgcat/pkgIndex.tcl: Bump to msgcat 1.3.2.
* * library/msgcat/msgcat.tcl ([mcset]): Corrected [mcset] to be abledgp2004-03-311-4/+4
| | | | | | * library/msgcat/pkgIndex.tcl: to successfully set a translation to the empty string. [mcset $loc $src {}] was incorrectly set the $loc translation of $src back to $src. Bump to msgcat 1.3.2.
* * library/msgcat/msgcat.tcl: Added escape so that non-Windowsdgp2003-08-061-4/+11
| | | | | | * library/msgcat/pkgIndex.tcl: platforms do not try to use the registry package. This can save a costly and pointless package search. Bumped to 1.3.1. Thanks to "imdave1". [Bug 781609].
* * README: Bumped version number to 8.4b3 to distinguishdgp2002-08-201-1/+3
| | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: HEAD from the 8.4b2 release. * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf * win/configure: * library/http/http.tcl: Corrected installation directory of * library/msgcat/msgcat.tcl: the package tcltest 2.2. Added * library/opt/optparse.tcl: comments in other packages to remind * library/tcltest/tcltest.tcl: that installation directories need * unix/Makefile.in: updates to match increasing version * win/Makefile.in: numbers. [Bug 597450] * win/makefile.bc: * win/makefile.vc:
* Fix a comment that was causing problems for programs (like "mktclapp") thatdrh2002-07-171-3/+3
| | | | embed the initialization script in strings. No changes to code.
* * More Windows Registry locale codes from Bruno Haible.dgp2002-06-171-15/+127
|
* * Revised locale initialization to interpretdgp2002-06-171-80/+111
| | | | | | | | | environment variable locale values according to XPG4, and to recognize the LC_ALL and LC_MESSAGES values over that of LANG. Also added many Windows Registry locale values to those recognized by msgcat. Revised tests and docs. Bumped to version 1.3. Thanks to Bruno Haible for the report and assistance crafting the solution. [Bug 525522, 525525]
* * [mcmax] wasn't using the caller'sdgp2002-04-201-21/+29
| | | | | | namespace when determining the max translated length. Also made revisions for better use of namespace variables and more efficient [uplevel]s.
* * Added [mcload] to the export listdgp2002-04-191-3/+4
| | | | of msgcat; bumped to 1.2.3. [Bug 544727]
* Added checks for package dependencies.dgp2001-08-091-2/+3
| | | | | Bumped patchlevels of changed packages: http 2.3.2, msgcat 1.2.2, opt 0.4.3, tcltest 2.0.1. [Patch 448931]
* 2000-12-10 Don Porter <dgp@users.sourceforge.net>dgp2000-12-111-7/+7
| | | | | | | | | | | | | | * library/init.tcl: * library/msgcat/msgcat.tcl: * library/msgcat/pkgIndex.tcl: * library/opt/optparse.tcl: * library/opt/pkgIndex.tcl: Where [uplevel] is used in a proc to evaluate a Tcl built-in command in the caller's context, the built-in commands are now fully namespace-qualified. This prevents problems when the caller context is in a namespace where the built-in command name has been used by a command in the namespace. (For example, [::ns::set] might be called instead of the intended [::set]). [Bug #119422, Patch #102545]
* * library/msgcat1.0/pkgIndex.tcl: Bumped version number to 1.2ericm2000-08-111-2/+2
| | | | | | | | [Bug: 6100]. * library/msgcat1.0/msgcat.tcl: Removed erroneous [package forget] in msgcat namespace initializer. Bumped version number to 1.2 [Bug: 6100].
* * library/msgcat1.0/msgcat.tcl: Removed erroneous [package forget]ericm2000-08-101-2/+1
| | | | in msgcat namespace initializer.
* * library/msgcat1.0/msgcat.tcl:ericm2000-07-171-4/+84
| | | | | | | | | | | * 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.
* * tests/msgcat.test:ericm2000-07-061-4/+11
| | | | | | | * library/msgcat1.0/msgcat.tcl: Applied patch from Christian Krone, to provide extended args support for msgcat::unknown, which is used for strings without a known translation in the current locale [Bug: 5984].
* * doc/msgcat.n: Doc's for mcmax function.ericm2000-06-301-4/+26
| | | | | | * 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.
* * msgcat.n: Added docs for new behavior from patch in [Bug: 4158].ericm2000-04-111-7/+25
| | | | | | | | | | | | | * msgcat.test: Added tests for new behavior from patch in [Bug: 4158]. * msgcat.tcl: Applied patch from [Bug: 4158], which enables msgcat::mc to search the entire namespace ancestry chain for message translations (ie, first it checks the current namespace, then the parent, then the parent's parent, etc). Also allows the specification of additional args for msgcat::mc; if extra args are given, the [format] command is used to substitute the additional args in the translated message.
* 1999-08-18 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-08-191-4/+3
| | | | | | | | | | | | | * library/auto.tcl: * library/init.tcl: * library/ldAout.tcl: * library/package.tcl: * library/safe.tcl: * library/word.tcl: * library/http2.1/http.tcl: * library/msgcat1.0/msgcat.tcl: updated libraries to better Tcl style guide (no more string comparisons with == or !=, spacing changes).
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-0/+177