X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FGlobal%2FMyRT.html;h=9b3cb96eea5ebe51d5a648bec8249dcf4636661c;hb=7588a4ac90a9b07c08a3107cd1107d773be1c991;hp=3dca78fad39d0b9ed687538c7615616f86dc46e4;hpb=98d2b25256055abb0dfcb9f586b434474fa97afd;p=freeside.git diff --git a/rt/share/html/Admin/Global/MyRT.html b/rt/share/html/Admin/Global/MyRT.html index 3dca78fad..9b3cb96ee 100644 --- a/rt/share/html/Admin/Global/MyRT.html +++ b/rt/share/html/Admin/Global/MyRT.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -60,21 +60,21 @@ <%init> my @actions; -my @items = map { [ "component-$_", $_ ] } sort @{ RT->Config->Get('HomepageComponents') }; +my @items = map { [ "component-$_", loc($_) ] } sort @{ RT->Config->Get('HomepageComponents') }; my $sys = RT::System->new( $session{'CurrentUser'} ); # XXX: put this in savedsearches_to_portlet_items for ( $m->comp( "/Search/Elements/SearchesForObject", Object => $sys )) { - my ( $desc, $search ) = @$_; + my ( $desc, $loc_desc, $search ) = @$_; my $SearchType = $search->Content->{'SearchType'} || 'Ticket'; if ( $SearchType eq 'Ticket' ) { - push @items, [ "system-$desc", $desc ]; + push @items, [ "system-$desc", $loc_desc ]; } else { my $oid = ref($sys) . '-' . $sys->Id . '-SavedSearch-' . $search->Id; - my $type = - ( $SearchType eq 'Ticket' ) - ? 'Saved Search' : $SearchType; # loc - push @items, [ "saved-$oid", loc($type) . ": $desc" ]; + my $type = ( $SearchType eq 'Ticket' ) + ? 'Saved Search' # loc + : $SearchType; + push @items, [ "saved-$oid", loc($type) . ": $loc_desc" ]; } }