summaryrefslogtreecommitdiffstats
path: root/library/msgcat
Commit message (Collapse)AuthorAgeFilesLines
* Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ | | | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
| * * library/msgcat/msgcat.tcl: Bump to version msgcat 1.3.4 to accountdgp2006-09-102-3/+3
| | | | | | | | * library/msgcat/pkgIndex.tcl: for modifications.
| * * library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback ofdas2006-09-101-126/+139
| | | | | | | | | | | | | | | | | | | | * tests/msgcat.test: default msgcat locale to * unix/tclUnixInit.c (TclpSetVariables): current CFLocale identifier if available (via private ::tcl::mac::locale global, set at interp init when on Mac OS X 10.3 or later with CoreFoundation). * unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers. * unix/configure: autoconf-2.13
| * * library/msgcat/msgcat.tcl: Added checks to prevent [mclocale]dgp2004-08-132-4/+9
| | | | | | | | | | | | * 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-312-5/+5
| | | | | | | | | | | | * 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-062-5/+12
| | | | | | | | | | | | * 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].
* | bump to msgcat 1.4.3 to account for commitsdgp2009-12-172-3/+3
| |
* | [Bug 2913616]: Make msgcat package work in safe interpreters.dkf2009-12-161-10/+13
| |
* | * doc/ParseCmd.3, doc/Tcl.n, doc/eval.n, doc/exec.n:hobbs2006-11-031-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/fconfigure.n, doc/interp.n, doc/unknown.n: * library/auto.tcl, library/init.tcl, library/package.tcl: * library/safe.tcl, library/tm.tcl, library/msgcat/msgcat.tcl: * tests/all.tcl, tests/basic.test, tests/cmdInfo.test: * tests/compile.test, tests/encoding.test, tests/execute.test: * tests/fCmd.test, tests/http.test, tests/init.test: * tests/interp.test, tests/io.test, tests/ioUtil.test: * tests/iogt.test, tests/namespace-old.test, tests/namespace.test: * tests/parse.test, tests/pkg.test, tests/pkgMkIndex.test: * tests/proc.test, tests/reg.test, tests/trace.test: * tests/upvar.test, tests/winConsole.test, tests/winFCmd.test: * tools/tclZIC.tcl: * generic/tclParse.c (Tcl_ParseCommand): Replace {expand} with {*} officially (TIP #293). Leave -DALLOW_EXPAND=0|1 option to keep {expand} syntax for transition users. [Bug 1589629]
* | * library/msgcat/msgcat.tcl: Removed some unneeded [uplevel]s.dgp2006-09-111-5/+4
| |
* | * library/msgcat/msgcat.tcl: Bump to version msgcat 1.4.2 to accountdgp2006-09-102-3/+3
| | | | | | | | * library/msgcat/pkgIndex.tcl: for modifications.
* | * library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback ofdas2006-09-101-127/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/msgcat.test: default msgcat locale to * unix/tclUnixInit.c (TclpSetVariables): current CFLocale identifier if available (via private ::tcl::mac::locale global, set at interp init when on Mac OS X 10.3 or later with CoreFoundation). * library/tcltest/tcltest.tcl: add 'line' verbose level: prints source * doc/tcltest.n: file line information of failing tests. * macosx/Tcl.xcodeproj/project.pbxproj: add new tclUnixCompat.c file; revise tests target to use new tcltest 'line' verbose level. * unix/configure.in: add descriptions to new AC_DEFINEs for MT-safe. * unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* | * library/msgcat/msgcat.tcl: Added checks to prevent [mclocale]dgp2004-08-131-2/+7
| | | | | | | | | | * tests/msgcat.test: from registering filesystem paths to possibly malicious code to be evaluated by a later [mcload].
* | * doc/msgcat.n: Clarified message catalog file encodings. [Bug 811457]dgp2004-03-311-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/msgcat/msgcat.tcl: Updated internals to make use of [dict]s to store message catalog data and to use [source -encoding utf-8] to access catalog files. Thanks to Michael Sclenker. [Patch 875055, RFE 811459] 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.4.1.
* | * library/msgcat/msgcat.tcl: Updated internals to make use ofdgp2004-03-312-36/+53
| | | | | | | | | | | | | | * library/msgcat/pkgIndex.tcl: [dict]s to store message catalog data and to use [source -encoding utf-8] to access catalog files. Thanks to Michael Sclenker. Also corrects bug to allow translation to an empty string. Bump to msgcat 1.4.1. [Patch 875055]
* | update msgcat version to 1.4dgp2003-10-211-1/+1
| |
* | TIP #156: Language-Neutral Root Locale for MsgcatKevin B Kenny2003-10-211-2/+6
| |
* | * library/msgcat/msgcat.tcl: Added escape so that non-Windowsdgp2003-08-062-5/+12
|/ | | | | | * 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-172-81/+112
| | | | | | | | | 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-192-4/+5
| | | | of msgcat; bumped to 1.2.3. [Bug 544727]
* Added checks for package dependencies.dgp2001-08-092-3/+5
| | | | | 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-112-8/+8
| | | | | | | | | | | | | | * 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-112-3/+3
| | | | | | | | [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-162-0/+178