lang::message::message_exists_p (public)

 lang::message::message_exists_p [ -varname varname ] locale key

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

Return 1 if message exists in given locale, 0 otherwise.

Switches:
-varname (optional)
when specified, return value in this variable
Parameters:
locale (required)
key (required)
Author:
Gustaf Neumann

Partial Call Graph (max 5 caller/called nodes):
%3 test_test_catalog_import_export test_catalog_import_export (test acs-lang) lang::message::message_exists_p lang::message::message_exists_p test_test_catalog_import_export->lang::message::message_exists_p lang::message::cache lang::message::cache (public) lang::message::message_exists_p->lang::message::cache adp_parse_ad_conn_file adp_parse_ad_conn_file (private) adp_parse_ad_conn_file->lang::message::message_exists_p apm::package_version::attributes::set_all_instances_names apm::package_version::attributes::set_all_instances_names (private) apm::package_version::attributes::set_all_instances_names->lang::message::message_exists_p calendar::do_notifications calendar::do_notifications (public) calendar::do_notifications->lang::message::message_exists_p lang::message::check lang::message::check (public) lang::message::check->lang::message::message_exists_p lang::message::lookup lang::message::lookup (public) lang::message::lookup->lang::message::message_exists_p

Testcases:
test_catalog_import_export
Source code:
        #
        # Make sure messages are loaded into the cache.
        #
        acs::per_thread_cache eval -key acs-lang.message_cache_loaded {
            lang::message::cache
        }
        #
        # Provide linkage to the output variable and perform lookup
        #
        if {[info exists varname]} {
            upvar 1 $varname var
        }
        try {
            return [nsv_get lang_message_$locale $key var]
        } on error {errmsg} {
            return 0
        }
Generic XQL file:
packages/acs-lang/tcl/lang-message-procs.xql

PostgreSQL XQL file:
packages/acs-lang/tcl/lang-message-procs-postgresql.xql

Oracle XQL file:
packages/acs-lang/tcl/lang-message-procs-oracle.xql

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