From 4547f9ecf916bf30c68a16194b791ec6abd03872 Mon Sep 17 00:00:00 2001 From: dgp Date: Wed, 31 Mar 2004 01:55:20 +0000 Subject: * 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. --- ChangeLog | 7 +++++++ library/msgcat/msgcat.tcl | 8 ++++---- library/msgcat/pkgIndex.tcl | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5d205c3..38bd5b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-03-31 Don Porter + + * 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 * 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]] -- cgit v0.12