From d9e2590623cc6b29cc3078118ef06d45940caf47 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 30 May 2009 15:28:59 +0000 Subject: [PATCH] Internationalize the shortcut no longer exists message. --- lib/WebGUI/Asset/Shortcut.pm | 3 ++- lib/WebGUI/i18n/English/Asset_Shortcut.pm | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Shortcut.pm b/lib/WebGUI/Asset/Shortcut.pm index 80f8cb5e9..5b0fe168e 100644 --- a/lib/WebGUI/Asset/Shortcut.pm +++ b/lib/WebGUI/Asset/Shortcut.pm @@ -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'); } #------------------------------------------------------------------- diff --git a/lib/WebGUI/i18n/English/Asset_Shortcut.pm b/lib/WebGUI/i18n/English/Asset_Shortcut.pm index 5342cfedc..e9db700dd 100644 --- a/lib/WebGUI/i18n/English/Asset_Shortcut.pm +++ b/lib/WebGUI/i18n/English/Asset_Shortcut.pm @@ -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;