Index: openacs-4/packages/acs-lang/www/admin/package-list.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/package-list.adp,v diff -u -r1.17.2.2 -r1.17.2.3 --- openacs-4/packages/acs-lang/www/admin/package-list.adp 7 Apr 2022 12:53:59 -0000 1.17.2.2 +++ openacs-4/packages/acs-lang/www/admin/package-list.adp 15 Jul 2022 11:37:50 -0000 1.17.2.3 @@ -8,60 +8,4 @@ - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
#acs-lang.Package##acs-lang.Translated##acs-lang.Untranslated##acs-lang.Deleted##acs-lang.Total#
- - - - - @packages.package_key@ - - - @packages.num_translated_pretty@ - - - - @packages.num_untranslated_pretty@ - - - - @packages.num_deleted_pretty@ - - - - @packages.num_messages_pretty@ - -
- -
+ Index: openacs-4/packages/acs-lang/www/admin/package-list.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/package-list.tcl,v diff -u -r1.14.2.2 -r1.14.2.3 --- openacs-4/packages/acs-lang/www/admin/package-list.tcl 20 Dec 2019 21:47:58 -0000 1.14.2.2 +++ openacs-4/packages/acs-lang/www/admin/package-list.tcl 15 Jul 2022 11:37:50 -0000 1.14.2.3 @@ -68,6 +68,71 @@ set view_untranslated_url [export_vars -base message-list { locale package_key { show "untranslated" } }] } +set actions [list] +if {$locale_enabled_p && $site_wide_admin_p} { + lappend actions \ + "#acs-lang.Import_all_messages_for_this_locale#" \ + $import_all_url \ + "#acs-lang.Import_all_messages__title#" \ + \ + "#acs-lang.Export_all_messages_for_this_locale#" \ + $export_all_url \ + "#acs-lang.Export_all_messages__title#" +} + +template::list::create \ + -name packages \ + -multirow packages \ + -actions $actions \ + -elements { + edit { + label {} + link_url_col batch_edit_url + display_template {} + } + package_key { + label "#acs-lang.Package#" + link_url_col view_messages_url + link_html {title "View all messages in package"} + } + num_translated { + label "#acs-lang.Translated#" + display_template { + + @packages.num_translated_pretty@ + + } + html {align right} + } + num_untranslated { + label "#acs-lang.Untranslated#" + display_template { + + @packages.num_untranslated_pretty@ + + } + html {align right} + } + num_deleted { + label "#acs-lang.Deleted#" + display_template { + + @packages.num_deleted_pretty@ + + } + html {align right} + } + total { + label "#acs-lang.Total#" + display_template { + + @packages.num_messages_pretty@ + + } + html {align right} + } + } + # Search form set search_locales [list \ [list "Current locale - [lang::util::get_label $current_locale]" $current_locale] \