bug_tracker::get_pretty_names (public)
bug_tracker::get_pretty_names -array array [ -package_id package_id ]
Defined in packages/bug-tracker/tcl/bug-tracker-procs.tcl
- Switches:
- -array (required)
- -package_id (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: upvar $array row if { $package_id eq "" } { set package_id [ad_conn package_id] } set row(bug) [lang::util::localize [parameter::get -package_id $package_id -parameter "TicketPrettyName" -default "bug"]] set row(bugs) [lang::util::localize [parameter::get -package_id $package_id -parameter "TicketPrettyPlural" -default "bugs"]] set row(Bug) [string totitle $row(bug)] set row(Bugs) [string totitle $row(bugs)] set row(component) [lang::util::localize [parameter::get -package_id $package_id -parameter "ComponentPrettyName" -default "component"]] set row(components) [lang::util::localize [parameter::get -package_id $package_id -parameter "ComponentPrettyPlural" -default "components"]] set row(Component) [string totitle $row(component)] set row(Components) [string totitle $row(components)] set row(patch) [lang::util::localize [parameter::get -package_id $package_id -parameter "PatchPrettyName" -default "patch"]] set row(patches) [lang::util::localize [parameter::get -package_id $package_id -parameter "PatchPrettyPlural" -default "patches"]] set row(Patch) [string totitle $row(patch)] set row(Patches) [string totitle $row(patches)]Generic XQL file: packages/bug-tracker/tcl/bug-tracker-procs.xql
PostgreSQL XQL file: packages/bug-tracker/tcl/bug-tracker-procs-postgresql.xql
Oracle XQL file: packages/bug-tracker/tcl/bug-tracker-procs-oracle.xql