apm_load_catalog_files (private)
apm_load_catalog_files [ -upgrade ] package_key
Defined in packages/acs-tcl/tcl/apm-install-procs.tcl
Load catalog files for a package that is either installed or upgraded. If the package is upgraded message key upgrade status is reset before loading the files. During installation of OpenACS when the acs-lang package hasn't been installed yet this procedure won't do anything. That's not a problem since catalog files will be loaded upon next server restart. Also caches the messages it loads.
- Switches:
- -upgrade (optional, boolean)
- Parameters:
- package_key (required)
- Author:
- Peter Marklund
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # If acs-lang hasn't been installed yet we simply return if { [namespace which lang::catalog::import] eq "" || ![apm_package_installed_p acs-lang] } { return } # Load and cache I18N messages for all enabled locales lang::catalog::import -cache -package_key $package_keyGeneric XQL file: packages/acs-tcl/tcl/apm-install-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/apm-install-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/apm-install-procs-oracle.xql