summaryrefslogtreecommitdiffstats
path: root/library/msgcat
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-03-31 01:55:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-03-31 01:55:20 (GMT)
commit4547f9ecf916bf30c68a16194b791ec6abd03872 (patch)
tree6b7bae4431e438c148f028c50052f2bfb2e535c6 /library/msgcat
parentd6dc5f9be580f37147098a4354643545002a63ee (diff)
downloadtcl-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.
Diffstat (limited to 'library/msgcat')
-rw-r--r--library/msgcat/msgcat.tcl8
-rw-r--r--library/msgcat/pkgIndex.tcl2
2 files changed, 5 insertions, 5 deletions
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]]