From bea557278885f9e7d2d80635edd1aba5f99a121b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 17 Nov 2006 06:49:29 +0000 Subject: [PATCH] fix a typo in a label, and i18n another label in the HttpProxy parser --- lib/WebGUI/Asset/Wobject/HttpProxy/Parse.pm | 3 ++- lib/WebGUI/i18n/English/Asset_HttpProxy.pm | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/HttpProxy/Parse.pm b/lib/WebGUI/Asset/Wobject/HttpProxy/Parse.pm index ae6ed72f5..332a5d947 100644 --- a/lib/WebGUI/Asset/Wobject/HttpProxy/Parse.pm +++ b/lib/WebGUI/Asset/Wobject/HttpProxy/Parse.pm @@ -79,7 +79,8 @@ sub filter { my $self=shift; $self->parse($self->{Content}); # Make paths absolute and let them return to us $self->eof; - return "

Error: HttpProxy can't recursively proxy its own content.

" if ($self->{recurseCheck}); + my $i18n = WebGUI::International->new($self->session, 'Asset_HttpProxy'); + return $i18n->get('no recursion') if ($self->{recurseCheck}); return $self->{Filtered}; } diff --git a/lib/WebGUI/i18n/English/Asset_HttpProxy.pm b/lib/WebGUI/i18n/English/Asset_HttpProxy.pm index b586b6597..904c89599 100644 --- a/lib/WebGUI/i18n/English/Asset_HttpProxy.pm +++ b/lib/WebGUI/i18n/English/Asset_HttpProxy.pm @@ -186,7 +186,13 @@ our $I18N = { }, 'may not leave error message' => { - message => q|

You are not allowed to leave %s

"|, + message => q|

You are not allowed to leave %s

|, + lastUpdated => 1163746361, + context => q|This entry is used to tell the user that the HttpProxy cannot leave this URL. Please leave the %s part of the string as is, since this entry is used in sprintf|, + }, + + 'no recursion' => { + message => q|

Error: HttpProxy can't recursively proxy its own content.

|, lastUpdated => 1162959817, context => q|This entry is used to tell the user that the HttpProxy cannot leave this URL. Please leeave the %s part of the string as is, since this entry is used in sprintf|, },