lang::catalog::import (public)

 lang::catalog::import [ -package_key package_key ] \
    [ -locales locales ] [ -initialize ] [ -cache ]

Defined in packages/acs-lang/tcl/lang-catalog-procs.tcl

Import messages from catalog files to the database. By default all messages for enabled packages and enabled locales will be imported. Optionally, the import can be restricted to a certain package and/or a list of locales. Invokes the proc lang::catalog::import_messages that deals with multiple imports (upgrades).

Switches:
-package_key
(optional)
Restrict the import to the package with this key
-locales
(optional)
A list of locales to restrict the import to
-initialize
(boolean) (optional)
Only load messages from packages that have never before had any message imported
-cache
(boolean) (optional)
Provide this switch if you want the proc to cache all the imported messages
Returns:
An array list containing the number of messages processed, number of messages added, number of messages updated, number of messages deleted by the import, and a list of errors produced. The keys of the array list are processed, added, updated, and deleted, and errors.
Author:
Peter Marklund
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_lang_test__lc_procs lang_test__lc_procs (test acs-lang) lang::catalog::import lang::catalog::import test_lang_test__lc_procs->lang::catalog::import test_locale_language_fallback locale_language_fallback (test acs-lang) test_locale_language_fallback->lang::catalog::import test_test_catalog_import_export test_catalog_import_export (test acs-lang) test_test_catalog_import_export->lang::catalog::import test_upgrade upgrade (test acs-lang) test_upgrade->lang::catalog::import ad_log ad_log (public) lang::catalog::import->ad_log ad_try ad_try (public) lang::catalog::import->ad_try apm_enabled_packages apm_enabled_packages (public) lang::catalog::import->apm_enabled_packages lang::catalog::get_catalog_paths_for_import lang::catalog::get_catalog_paths_for_import (private) lang::catalog::import->lang::catalog::get_catalog_paths_for_import lang::catalog::import_from_file lang::catalog::import_from_file (private) lang::catalog::import->lang::catalog::import_from_file apm_load_catalog_files apm_load_catalog_files (private) apm_load_catalog_files->lang::catalog::import lang::test::execute_upgrade lang::test::execute_upgrade (private) lang::test::execute_upgrade->lang::catalog::import packages/acs-admin/www/apm/version-i18n-import.tcl packages/acs-admin/ www/apm/version-i18n-import.tcl packages/acs-admin/www/apm/version-i18n-import.tcl->lang::catalog::import packages/acs-lang/www/admin/import-locale-from-files.tcl packages/acs-lang/ www/admin/import-locale-from-files.tcl packages/acs-lang/www/admin/import-locale-from-files.tcl->lang::catalog::import packages/acs-lang/www/admin/import-messages.tcl packages/acs-lang/ www/admin/import-messages.tcl packages/acs-lang/www/admin/import-messages.tcl->lang::catalog::import

Testcases:
lang_test__lc_procs, locale_language_fallback, upgrade, test_catalog_import_export
[ show source ]
Show another procedure: