From ba72d1914a173a06e5c9f090a93a6ad14aabc698 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Thu, 29 Jul 2010 14:38:35 -0500 Subject: [PATCH] get asset name from i18n --- lib/WebGUI/Session/Style.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Session/Style.pm b/lib/WebGUI/Session/Style.pm index 0b4610f72..2f4a22e4b 100644 --- a/lib/WebGUI/Session/Style.pm +++ b/lib/WebGUI/Session/Style.pm @@ -262,12 +262,14 @@ if ($self->session->user->isRegistered || $self->session->setting->get("preventP } if ( $asset ) { + my $i18n = WebGUI::International->new( $session ); + my $assetName = $i18n->get( @{ $asset->assetName } ); my $assetDef = { assetId => $asset->getId, title => $asset->getTitle, url => $asset->getUrl, icon => $asset->getIcon(1), - type => $asset->assetName, + type => $assetName, helpers => $asset->getHelpers, }; $var{'head.tags'} .= sprintf <<'ADMINJS', JSON->new->encode( $assetDef );