summaryrefslogtreecommitdiffstats
path: root/library/msgcat
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-08-19 02:59:40 (GMT)
committerhobbs <hobbs>1999-08-19 02:59:40 (GMT)
commit827f1718a3c6ad6738473fca1d9ca562ece38f91 (patch)
treead660b8fb995c85c6ffd337c8056ed293d139e53 /library/msgcat
parent92e37b2bd18d8a5451699c466c1664e53403da57 (diff)
downloadtcl-827f1718a3c6ad6738473fca1d9ca562ece38f91.zip
tcl-827f1718a3c6ad6738473fca1d9ca562ece38f91.tar.gz
tcl-827f1718a3c6ad6738473fca1d9ca562ece38f91.tar.bz2
1999-08-18 Jeff Hobbs <hobbs@scriptics.com>
* library/auto.tcl: * library/init.tcl: * library/ldAout.tcl: * library/package.tcl: * library/safe.tcl: * library/word.tcl: * library/http2.1/http.tcl: * library/msgcat1.0/msgcat.tcl: updated libraries to better Tcl style guide (no more string comparisons with == or !=, spacing changes).
Diffstat (limited to 'library/msgcat')
-rw-r--r--library/msgcat/msgcat.tcl7
1 files changed, 3 insertions, 4 deletions
diff --git a/library/msgcat/msgcat.tcl b/library/msgcat/msgcat.tcl
index 37676da..7eb1f90 100644
--- a/library/msgcat/msgcat.tcl
+++ b/library/msgcat/msgcat.tcl
@@ -10,7 +10,7 @@
# 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.2 1999/04/16 00:47:17 stanton Exp $
+# RCS: @(#) $Id: msgcat.tcl,v 1.3 1999/08/19 02:59:49 hobbs Exp $
package provide msgcat 1.0
@@ -78,8 +78,7 @@ proc msgcat::mclocale {args} {
set word ""
foreach part [split $args _] {
set word [string trimleft "${word}_${part}" _]
- set ::msgcat::loclist \
- [linsert $::msgcat::loclist 0 $word]
+ set ::msgcat::loclist [linsert $::msgcat::loclist 0 $word]
}
}
return $::msgcat::locale
@@ -137,7 +136,7 @@ proc msgcat::mcload {langdir} {
# Returns the new locale.
proc msgcat::mcset {locale src {dest ""}} {
- if {$dest == ""} {
+ if {[string equal $dest ""]} {
set dest $src
}