lc_get (public)

 lc_get [ -locale locale ] key

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

Get a certain format string for the current locale.

Switches:
-locale
(optional)
Parameters:
key - the key of for the format string you want.
Returns:
the format string for the current locale.
Author:
Lars Pind <lars@pinds.com>

Partial Call Graph (max 5 caller/called nodes):
%3 test_lang_test__lc_content_size_pretty lang_test__lc_content_size_pretty (test acs-lang) lc_get lc_get test_lang_test__lc_content_size_pretty->lc_get lang::message::lookup lang::message::lookup (public) lc_get->lang::message::lookup calendar::get_month_multirow_information calendar::get_month_multirow_information (private) calendar::get_month_multirow_information->lc_get dt_month_abbrev dt_month_abbrev (public) dt_month_abbrev->lc_get dt_month_names dt_month_names (public) dt_month_names->lc_get lang::message::check lang::message::check (public) lang::message::check->lc_get lc_content_size_pretty lc_content_size_pretty (public) lc_content_size_pretty->lc_get

Testcases:
lang_test__lc_content_size_pretty
Source code:
    # All localization message keys have a certain prefix
    set message_key "acs-lang.localization-$key"

    # Set upvar level to 0 so that no attempt is made to interpolate variables
    # into the string
    # Set translator_mode_p to 0 so we don't dress the message up with a link to translate
    return [lang::message::lookup $locale $message_key {} {} 0 0]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-lang/tcl/localization-procs.xql

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