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):
%3 bug_tracker::bug::get_list bug_tracker::bug::get_list (public) bug_tracker::get_pretty_names bug_tracker::get_pretty_names bug_tracker::bug::get_list->bug_tracker::get_pretty_names bug_tracker::bug::notification_info::get_notification_info bug_tracker::bug::notification_info::get_notification_info (private) bug_tracker::bug::notification_info::get_notification_info->bug_tracker::get_pretty_names bug_tracker::conn bug_tracker::conn (public) bug_tracker::conn->bug_tracker::get_pretty_names packages/bug-tracker/lib/nav-bar.tcl packages/bug-tracker/ lib/nav-bar.tcl packages/bug-tracker/lib/nav-bar.tcl->bug_tracker::get_pretty_names packages/bug-tracker/www/admin/categories.tcl packages/bug-tracker/ www/admin/categories.tcl packages/bug-tracker/www/admin/categories.tcl->bug_tracker::get_pretty_names ad_conn ad_conn (public) bug_tracker::get_pretty_names->ad_conn lang::util::localize lang::util::localize (public) bug_tracker::get_pretty_names->lang::util::localize parameter::get parameter::get (public) bug_tracker::get_pretty_names->parameter::get

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

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