lang::message::get (public)

 lang::message::get -package_key package_key -message_key message_key \
    -locale locale -array array

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

Get all properties of a message in a particular locale.

Switches:
-package_key (required)
-message_key (required)
-locale (required)
-array (required)
Name of an array in the caller's namespace into which you want the message properties delivered.
Returns:
The array will contain the following entries: message_key, package_key, locale, message, deleted_p, sync_time, conflict_p, upgrade_status, creation_date_ansi, creation_user, key_description.
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 test_test_message_register test_message_register (test acs-lang) lang::message::get lang::message::get test_test_message_register->lang::message::get test_upgrade upgrade (test acs-lang) test_upgrade->lang::message::get db_1row db_1row (public) lang::message::get->db_1row lang::message::edit lang::message::edit (private) lang::message::edit->lang::message::get lang::message::get_element lang::message::get_element (private) lang::message::get_element->lang::message::get lang::message::register lang::message::register (public) lang::message::register->lang::message::get lang::test::check_import_result lang::test::check_import_result (private) lang::test::check_import_result->lang::message::get lang::test::execute_upgrade lang::test::execute_upgrade (private) lang::test::execute_upgrade->lang::message::get

Testcases:
test_message_register, upgrade
Source code:
    upvar 1 $array row

    db_1row select_message_props {
        select m.message_key,
               m.package_key,
               m.locale,
               m.message,
               m.deleted_p,
               m.sync_time,
               m.conflict_p,
               m.upgrade_status,
               to_char(m.creation_date, 'YYYY-MM-DD HH24:MI:SS') as creation_date_ansi,
               m.creation_user,
               k.description as key_description
        from   lang_messages m,
               lang_message_keys k
        where  m.package_key = :package_key
        and    m.message_key = :message_key
        and    m.locale = :locale
        and    k.package_key = m.package_key
        and    k.message_key = m.message_key
    } -column_array row
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: