Index: openacs-4/packages/acs-lang/tcl/localization-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/localization-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-lang/tcl/localization-procs.tcl 10 Sep 2002 22:22:09 -0000 1.3 +++ openacs-4/packages/acs-lang/tcl/localization-procs.tcl 7 Oct 2002 14:32:46 -0000 1.4 @@ -14,31 +14,17 @@ } -ad_proc -private ad_locale_repeat {str k} { - - Repeats a string. - - @param str String to repeat - @param k Number of times to repeat - @return Repeated string +ad_proc -private ad_locale_escape_vars_if_not_null { + list } { - set out {} - for {set i 0} {$i < $k} {incr i} { - append out $str - } - return $out -} - -ad_proc -private ad_locale_escape_vars_if_not_null {list} { - Processes a list of variables before they are passed into a regexp command. @param list List of variable names } { foreach lm $list { upvar $lm foreign_var - if {[exists_and_not_null foreign_var]} { + if { [exists_and_not_null foreign_var] } { set foreign_var "\[$foreign_var\]" } } @@ -52,7 +38,7 @@ Converts a number to its canonical representation by stripping everything but the decimal seperator and triming left 0's so it - wont be octal. It can process the following types of numbers: + won't be octal. It can process the following types of numbers: