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 (optional, boolean)
Only load messages from packages that have never before had any message imported
-cache (optional, boolean)
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:

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