lang::util::localize (public)
lang::util::localize string_with_hashes [ locale ]
Defined in packages/acs-lang/tcl/lang-util-procs.tcl
Takes a string with embedded message keys on the format #message_key_name# and returns the same string but with the message keys (and their surrounding hash marks) replaced with the corresponding value in the message catalog. Message lookup is done with the locale of the request. If message lookup fails for a certain key then a translation missing message will be used instead.
- Parameters:
- string_with_hashes (required)
- locale (optional)
- Author:
- Peter marklund <peter@collaboraid.biz>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- lang_test__lang_user_site_wide_locale, localize, test_localize_list_of_lists, ad_context_bar_multirow, object_type_hierarchy