diff options
author | dgp <dgp@users.sourceforge.net> | 2004-03-31 01:55:20 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-03-31 01:55:20 (GMT) |
commit | 4547f9ecf916bf30c68a16194b791ec6abd03872 (patch) | |
tree | 6b7bae4431e438c148f028c50052f2bfb2e535c6 | |
parent | d6dc5f9be580f37147098a4354643545002a63ee (diff) | |
download | tcl-4547f9ecf916bf30c68a16194b791ec6abd03872.zip tcl-4547f9ecf916bf30c68a16194b791ec6abd03872.tar.gz tcl-4547f9ecf916bf30c68a16194b791ec6abd03872.tar.bz2 |
* library/msgcat/msgcat.tcl ([mcset]): Corrected [mcset] to be able
* 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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | library/msgcat/msgcat.tcl | 8 | ||||
-rw-r--r-- | library/msgcat/pkgIndex.tcl | 2 |
3 files changed, 12 insertions, 5 deletions
@@ -1,3 +1,10 @@ +2004-03-31 Don Porter <dgp@users.sourceforge.net> + + * library/msgcat/msgcat.tcl ([mcset]): Corrected [mcset] to be able + * 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. + 2004-03-31 Donal K. Fellows <donal.k.fellows@man.ac.uk> * generic/tclObj.c (HashObjKey): Make sure this hashes the whole diff --git a/library/msgcat/msgcat.tcl b/library/msgcat/msgcat.tcl index ab47299..2180129 100644 --- a/library/msgcat/msgcat.tcl +++ b/library/msgcat/msgcat.tcl @@ -10,12 +10,12 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: msgcat.tcl,v 1.17.2.1 2003/08/06 23:02:41 dgp Exp $ +# RCS: @(#) $Id: msgcat.tcl,v 1.17.2.2 2004/03/31 01:55:21 dgp Exp $ package require Tcl 8.2 # When the version number changes, be sure to update the pkgIndex.tcl file, # and the installation directory in the Makefiles. -package provide msgcat 1.3.1 +package provide msgcat 1.3.2 namespace eval msgcat { namespace export mc mcload mclocale mcmax mcmset mcpreferences mcset \ @@ -295,8 +295,8 @@ proc msgcat::mcload {langdir} { proc msgcat::mcset {locale src {dest ""}} { variable Msgs - if {[string equal $dest ""]} { - set dest $src + if {[llength [info level 0]] == 3} { ;# dest not specified + set dest $src } set ns [uplevel 1 [list ::namespace current]] diff --git a/library/msgcat/pkgIndex.tcl b/library/msgcat/pkgIndex.tcl index 90198df..a048de1 100644 --- a/library/msgcat/pkgIndex.tcl +++ b/library/msgcat/pkgIndex.tcl @@ -1,2 +1,2 @@ if {![package vsatisfies [package provide Tcl] 8.2]} {return} -package ifneeded msgcat 1.3.1 [list source [file join $dir msgcat.tcl]] +package ifneeded msgcat 1.3.2 [list source [file join $dir msgcat.tcl]] |