lang::util::edit_lang_key_url (public)
lang::util::edit_lang_key_url -message message \ [ -package_key package_key ]
Defined in packages/acs-lang/tcl/lang-util-procs.tcl
Generates the URL to edit a message key.
- Switches:
- -message (required)
- key with or without hashes, such as \#acs-admin.Actions\# or acs-admin.Actions.
- -package_key (optional, defaults to
"acs-translations"
)- must correspond to that in the message key.
- Returns:
- a local URL or the empty string when no URL can be generated.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- test_edit_lang_key_url
Source code: if { [regsub "^${package_key}." [string trim $message "\#"] {} message_key] } { set edit_url [export_vars -base "[apm_package_url_from_key "acs-lang"]admin/edit-localized-message" { { locale {[ad_conn locale]} } package_key message_key { return_url [ad_return_url] } }] } else { set edit_url "" } return $edit_urlXQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-lang/tcl/lang-util-procs.xql