diff options
-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]] |