Index: openacs-4/packages/file-storage/www/folder-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/folder-chunk.tcl,v diff -u -r1.20 -r1.21 --- openacs-4/packages/file-storage/www/folder-chunk.tcl 7 Mar 2004 00:02:23 -0000 1.20 +++ openacs-4/packages/file-storage/www/folder-chunk.tcl 12 Mar 2004 13:45:37 -0000 1.21 @@ -30,7 +30,7 @@ set fs_url "" } -set folder_name [fs::get_object_name -object_id $folder_id] +set folder_name [lang::util::localize [fs::get_object_name -object_id $folder_id]] set content_size_total 0 @@ -123,6 +123,10 @@ set file_url "index?[export_vars {{folder_id $object_id}}]" } + + # We need to encode the hashes in any i18n message keys (.LRN plays this trick on some of its folders). + # If we don't, the hashes will cause the path to be chopped off (by ns_conn url) at the leftmost hash. + regsub -all {#} $file_url {%23} file_url } ad_return_template