summaryrefslogtreecommitdiffstats
path: root/library/msgcat/msgcat.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-05-31 19:58:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-05-31 19:58:45 (GMT)
commitcd7e1651b17ee97ef7188b3771fb7d8291a9449a (patch)
tree66de8db16f5e91e8891a0c300612975e1eb9d8a2 /library/msgcat/msgcat.tcl
parenta720a9f6e21c4c9afd7a4b125478dc9800db11c2 (diff)
parentba5939ea3bf47fc00db9172391b3d68e24539921 (diff)
downloadtcl-bug_3293874.zip
tcl-bug_3293874.tar.gz
tcl-bug_3293874.tar.bz2
Rewind from a refactoring that veered into the weeds.bug_3293874
Diffstat (limited to 'library/msgcat/msgcat.tcl')
-rw-r--r--library/msgcat/msgcat.tcl16
1 files changed, 1 insertions, 15 deletions
diff --git a/library/msgcat/msgcat.tcl b/library/msgcat/msgcat.tcl
index a9b4533..369ed52 100644
--- a/library/msgcat/msgcat.tcl
+++ b/library/msgcat/msgcat.tcl
@@ -13,7 +13,7 @@
package require Tcl 8.5
# When the version number changes, be sure to update the pkgIndex.tcl file,
# and the installation directory in the Makefiles.
-package provide msgcat 1.4.3
+package provide msgcat 1.4.4
namespace eval msgcat {
namespace export mc mcload mclocale mcmax mcmset mcpreferences mcset \
@@ -313,13 +313,6 @@ proc msgcat::mcset {locale src {dest ""}} {
set locale [string tolower $locale]
- # create nested dictionaries if they do not exist
- if {![dict exists $Msgs $locale]} {
- dict set Msgs $locale [dict create]
- }
- if {![dict exists $Msgs $locale $ns]} {
- dict set Msgs $locale $ns [dict create]
- }
dict set Msgs $locale $ns $src $dest
return $dest
}
@@ -347,13 +340,6 @@ proc msgcat::mcmset {locale pairs } {
set locale [string tolower $locale]
set ns [uplevel 1 [list ::namespace current]]
- # create nested dictionaries if they do not exist
- if {![dict exists $Msgs $locale]} {
- dict set Msgs $locale [dict create]
- }
- if {![dict exists $Msgs $locale $ns]} {
- dict set Msgs $locale $ns [dict create]
- }
foreach {src dest} $pairs {
dict set Msgs $locale $ns $src $dest
}