Index: openacs-4/packages/acs-admin/www/apm/version-i18n.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-i18n.tcl,v diff -u -r1.15 -r1.16 --- openacs-4/packages/acs-admin/www/apm/version-i18n.tcl 7 Aug 2017 23:47:45 -0000 1.15 +++ openacs-4/packages/acs-admin/www/apm/version-i18n.tcl 3 Sep 2024 15:37:29 -0000 1.16 @@ -4,13 +4,13 @@ @author Peter Marklund (peter@collaboraid.biz) @creation-date 8 October 2002 - @cvs-id $Id$ + @cvs-id $Id$ } { - version_id:naturalnum,notnull - {pre_select_files_p:boolean "1"} - {show_status_p:boolean "0"} - {only_text_p:boolean "0"} - {file_type adp} + version_id:naturalnum,notnull + {pre_select_files_p:boolean,notnull 1} + {show_status_p:boolean,notnull 0} + {only_text_p:boolean,notnull 0} + {file_type:word,notnull adp} } db_1row package_version_info { @@ -25,10 +25,10 @@ set file_option_list [list] set adp_preselect_list [list] set package_key [apm_package_key_from_version_id $version_id] -foreach file [lsort [ad_find_all_files [acs_package_root_dir $package_key]]] { +foreach file [lsort [ad_find_all_files [acs_package_root_dir $package_key]]] { set file_regexp ".${file_type}\$" - + if { [regexp $file_regexp $file match] } { set relative_path [ad_make_relative_path $file] @@ -45,7 +45,7 @@ set number_of_message_keys [llength [lang::util::get_hash_indices $file_contents]] set adp_text_result_list [lang::util::replace_adp_text_with_message_tags $file report] set number_of_text_snippets [llength [lindex $adp_text_result_list 0]] - + set status_string "$number_of_text_snippets texts, $number_of_message_tags tags, $number_of_message_keys keys" } tcl { @@ -84,7 +84,7 @@ } } -form create file_list_form -action [ad_decode $file_type adp "version-i18n-process" "version-i18n-process-2"] +form create file_list_form -action [expr {$file_type eq "adp" ? "version-i18n-process" : "version-i18n-process-2"}] element create file_list_form version_id \ -datatype integer \ @@ -123,7 +123,7 @@ if { $pre_select_files_p } { set href [export_vars -base version-i18n -override {{pre_select_files_p 0}} {version_id file_type show_status_p only_text_p}] - set pre_select_filter [subst {Unselect all checkboxes}] + set pre_select_filter [subst {Deselect all checkboxes}] } else { set href [export_vars -base version-i18n -override {{pre_select_files_p 1}} {version_id file_type show_status_p only_text_p}] set pre_select_filter [subst {Select all checkboxes}] @@ -152,7 +152,7 @@ set file_type_filter [subst { Show adp files: $text_only_filter | Show Tcl files | - Show sql files + Show SQL files }] } tcl { @@ -161,17 +161,17 @@ set file_type_filter [subst { Show adp files | Show Tcl files | - Show sql files + Show SQL files }] } sql { set href1 [export_vars -base version-i18n -override {{file_type adp}} {version_id pre_select_files_p show_status_p only_text_p}] set href2 [export_vars -base version-i18n -override {{file_type tcl}} {version_id pre_select_files_p show_status_p only_text_p}] - + set file_type_filter [subst { Show adp files | Show Tcl files | - Show sql files + Show SQL files }] } }