From e96b2bbdb36c197e23131f38299e21d4c66ae18f Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 20 Nov 2008 20:51:03 +0000 Subject: [PATCH] forward porting asset export i18n and hoverhelp --- lib/WebGUI/AssetExportHtml.pm | 4 +++- lib/WebGUI/i18n/English/Asset.pm | 12 +++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/AssetExportHtml.pm b/lib/WebGUI/AssetExportHtml.pm index ad03b4538..4940cf2a5 100644 --- a/lib/WebGUI/AssetExportHtml.pm +++ b/lib/WebGUI/AssetExportHtml.pm @@ -823,10 +823,12 @@ sub www_export { -name => "index", -value => "index.html" ); + $f->text( -label => $i18n->get("Export site root URL"), -name => 'exportUrl', - -value => '', + -value => $session->asset->getUrl, + -hoverHelp => $i18n->get("Export site root URL description"), ); # TODO: maybe add copy options to these boxes alongside symlink diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index dd6d74e10..cda6d36b9 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -768,7 +768,17 @@ case of the check box list, then enter one per line. The total amount of data i 'directory index' => { lastUpdated => 1118896675, message => q|Directory Index|, - }, + }, + + 'Export site root URL' => { + lastUpdated => 1227213703, + message => q|Export site root URL|, + }, + + 'Export site root URL description' => { + lastUpdated => 1227213703, + message => q|A URL to pass on to Macro Widgets.|, + }, 'Depth description' => { message => q|

Sets the depth of the page tree to export. Use a depth of 0 to export only the current page.

|,