Internationalize the shortcut no longer exists message.

This commit is contained in:
Colin Kuskie 2009-05-30 15:28:59 +00:00
parent 398f5203f4
commit d9e2590623
2 changed files with 7 additions and 1 deletions

View file

@ -653,7 +653,8 @@ sub isDashlet {
sub notLinked {
my $self = shift;
$self->session->errorHandler->warn("Shortcut ".$self->getId." is linked to an asset ".$self->get("shortcutToAssetId").", which no longer exists.");
return "The asset this shortcut is linked to no longer exists. You need to delete this shortcut.";
my $i18n = WebGUI::International->new($self->session, 'Asset_Shortcut');
return $i18n->get('no longer exists');
}
#-------------------------------------------------------------------

View file

@ -388,6 +388,11 @@ A property or value must be quoted if it contains spaces. Feel free to use the c
lastUpdated => 1146539258,
},
'no longer exists' => {
message => q|The asset this shortcut is linked to no longer exists. You need to delete this shortcut.|,
lastUpdated => 1243698146,
},
};
1;