Index: openacs-4/packages/file-storage/catalog/file-storage.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/catalog/file-storage.en_US.ISO-8859-1.xml,v diff -u -r1.28 -r1.29 --- openacs-4/packages/file-storage/catalog/file-storage.en_US.ISO-8859-1.xml 17 May 2004 15:15:12 -0000 1.28 +++ openacs-4/packages/file-storage/catalog/file-storage.en_US.ISO-8859-1.xml 8 Oct 2004 21:10:51 -0000 1.29 @@ -1,5 +1,5 @@ - + Action Actions: @@ -28,8 +28,8 @@ Edit Folder Edit URL file - link Delete %title% + File deleted Rename %title% Edit %pretty_name% Title: %title% @@ -38,7 +38,6 @@ This folder is available via WebDAV at %webdav_url% Delete %folder_name% Folder ID - This folder is available via WebDAV at %webdav_url% Folder Name: folder Up to %up_name% @@ -62,15 +61,21 @@ Do you want to delete the listed items? Download an archive of the contents of this folder Either there is already a folder with the name "%folder_name%" or you clicked on the button more than once. You can use the Back button to return and choose a new name, or <a href="%directory_url%">return to the directory listing</a> to see if your folder is there. + File-Storage folder: %folder_name%\n + File Storage Notification Folder %folder_name% is empty. It appears that there is already a file with that name in this folder (although possibly you clicked more than once on the submit button.) Leave title blank when uploading multiple interlinked documents. Live version of "%title%" Modify permissions on this file Modify permissions on this folder Moving %allowed_count% items. + Name of the $action_type: %filename%\n + New version of file uploaded + New Version Uploaded for file: %filename%\n No valid items to be moved. %not_allowed_count% items can not be moved + Notification for: File-Storage: %action_type%\n Please enter the new name for this file: Select the folder that you would like to copy "%file_name%" to Select the folder that you would like to move "%file_name%" under @@ -90,6 +95,8 @@ Use the "Browse..." button to locate your file, then click "Open". The specified version is not valid. + Version Notes: %description%\n + View folder contents: %url_version% \n\n We got an error that we couldn't readily identify. Please let the system owner know about this. We received an error from the database. Probably the folder you selected already contains a file with the same name. @@ -105,7 +112,9 @@ Multiple files: Name new + New File Uploaded New Folder + New URL Uploaded No such type no such URL Permissions @@ -132,7 +141,9 @@ Upload a new version Upload New File Upload New Version + Uploaded by: %owner%\n URL: + URL deleted Upload New Version of %title% Delete %version_name% Version filename Index: openacs-4/packages/file-storage/tcl/file-storage-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/tcl/file-storage-procs.tcl,v diff -u -r1.44 -r1.45 --- openacs-4/packages/file-storage/tcl/file-storage-procs.tcl 19 Jun 2004 14:47:48 -0000 1.44 +++ openacs-4/packages/file-storage/tcl/file-storage-procs.tcl 8 Oct 2004 21:10:51 -0000 1.45 @@ -796,16 +796,16 @@ set root_folder [fs_get_root_folder] if {[string equal $action "new_file"]} { - set action_type {New File Uploaded} + set action_type "[_ file-storage.New_File_Uploaded]" } elseif {[string equal $action "new_url"]} { - set action_type {New URL Uploaded} + set action_type "[_ file-storage.New_URL_Uploaded]" set file_id $url_id } elseif {[string equal $action "new_version"]} { - set action_type {New version of file uploaded} + set action_type "[_ file-storage.lt_New_version_of_file_u]" } elseif {[string equal $action "delete_file"]} { - set action_type {File deleted} + set action_type "[_ file-storage.File_deleted]" } elseif {[string equal $action "delete_url"]} { - set action_type {URL deleted} + set action_type "[_ file-storage.URL_deleted]" } else { error "Unknown file-storage notification action: $action" } @@ -830,30 +830,32 @@ # Set email message body - "text only" for now set text_version "" - append text_version "Notification for: File-Storage: $action_type\n" - append text_version "File-Storage folder: [fs_get_folder_name $folder_id]\n" + append text_version "[_ file-storage.lt_Notification_for_File]" + set folder_name [fs_get_folder_name $folder_id] + append text_version "[_ file-storage.lt_File-Storage_folder_f]" if {[string equal $action "new_version"]} { - append text_version "New Version Uploaded for file: $filename\n" + append text_version "[_ file-storage.lt_New_Version_Uploaded_]" } else { - append text_version "Name of the $action_type: $filename\n" + append text_version "[_ file-storage.lt_Name_of_the_action_ty]" } if {[info exists owner]} { - append text_version "Uploaded by: $owner\n" + append text_version "[_ file-storage.Uploaded_by_ownern]" } if {[info exists description]} { - append text_version "Version Notes: $description\n" + append text_version "[_ file-storage.lt_Version_Notes_descrip]" } - append text_version "View folder contents: $url$path1?folder_id=$folder_id \n\n" + ser url_version "$url$path1?folder_id=$folder_id" + append text_version "[_ file-storage.lt_View_folder_contents_]" set new_content $text_version # Do the notification for the file-storage notification::new \ -type_id [notification::type::get_type_id \ -short_name fs_fs_notif] \ -object_id $folder_id \ - -notif_subject {File Storage Notification} \ + -notif_subject "[_ file-storage.lt_File_Storage_Notifica]" \ -notif_text $new_content # walk through all folders up to the root folder @@ -864,7 +866,7 @@ -type_id [notification::type::get_type_id \ -short_name fs_fs_notif] \ -object_id $parent_id \ - -notif_subject {File Storage Notification} \ + -notif_subject "[_ file-storage.lt_File_Storage_Notifica] \ -notif_text $new_content set folder_id $parent_id }