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
(boolean) (optional)
Parameters:
package_key
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 apm_package_install apm_package_install (public) apm_load_catalog_files apm_load_catalog_files apm_package_install->apm_load_catalog_files apm_package_installed_p apm_package_installed_p (public) apm_load_catalog_files->apm_package_installed_p lang::catalog::import lang::catalog::import (public) apm_load_catalog_files->lang::catalog::import

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_key
Generic 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

[ hide source ] | [ make this the default ]
Show another procedure: