_ (public)

 _ key [ substitution_list ]

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

Short hand proc that invokes the lang::message::lookup proc. Returns a localized text from the message catalog with the locale ad_conn locale if invoked within a request, or the system locale otherwise.


    set the_url [export_vars -base "[ad_conn package_url]view" { item_id }]
    set body [_ my-package.lt_To_view_this_item [list item_url $the_url]]
If the message value is "To view this item, please click here: %item_url%", then the URL will be insert into the message.

key - Unique identifier for this message. Will be the same identifier for each locale. The key is on the format package_key.message_key
substitution_list (optional) - A list of values to substitute into the message on the form { name value name value ... }. This argument should only be given for certain messages that contain place holders (on the syntax %1:pretty_name%, %2:another_pretty_name% etc) for embedding variable values. If the message contains variables that should be interpolated and this argument is not provided then upvar will be used to fetch the variable values.
A localized message
Jeff Davis <davis@xarg.net>
Peter Marklund <peter@collaboraid.biz>
Christian Hvid <chvid@collaboraid.biz>
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_group_type acs_subsite_group_type (test acs-subsite) _ _ test_acs_subsite_group_type->_ test_group_localization group_localization (test acs-subsite) test_group_localization->_ lang::message::lookup lang::message::lookup (public) _->lang::message::lookup Class ::Generic::Form Class ::Generic::Form (public) Class ::Generic::Form->_ Class ::Generic::List Class ::Generic::List (public) Class ::Generic::List->_ Class ::xo::db::Class Class ::xo::db::Class (public) Class ::xo::db::Class->_ Class ::xo::db::CrClass Class ::xo::db::CrClass (public) Class ::xo::db::CrClass->_ Class ::xowf::test_item::Answer_manager Class ::xowf::test_item::Answer_manager (public) Class ::xowf::test_item::Answer_manager->_

group_localization, acs_subsite_group_type
Source code:
    return [lang::message::lookup "" $key "TRANSLATION MISSING" $substitution_list 2]
Generic XQL file:

PostgreSQL XQL file:

Oracle XQL file:

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