From 9e69dea9b83defd4c031ccc951efd11630d723da Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 6 Mar 2005 19:30:35 +0000 Subject: [PATCH] move Asset labels into its own Help file --- lib/WebGUI/Asset.pm | 120 ++++++++++----------- lib/WebGUI/i18n/English/Asset.pm | 173 ++++++++++++++++++++++++++++++- 2 files changed, 232 insertions(+), 61 deletions(-) diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 1f25f5ff2..0364942f5 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -943,51 +943,51 @@ sub getEditForm { -value=>$self->get("assetId") ); $tabform->getTab("properties")->text( - -label=>WebGUI::International::get(99), + -label=>WebGUI::International::get(99,"Asset"), -name=>"title", -value=>$self->get("title") ); $tabform->getTab("properties")->text( - -label=>WebGUI::International::get(411), + -label=>WebGUI::International::get(411,"Asset"), -name=>"menuTitle", -value=>$self->get("menuTitle"), -uiLevel=>1 ); $tabform->getTab("properties")->text( -name=>"url", - -label=>WebGUI::International::get(104), + -label=>WebGUI::International::get(104,"Asset"), -value=>$self->get("url"), -uiLevel=>3 ); - $tabform->addTab("display",WebGUI::International::get(105),5); + $tabform->addTab("display",WebGUI::International::get(105,"Asset"),5); $tabform->getTab("display")->yesNo( -name=>"isHidden", -value=>$self->get("isHidden"), - -label=>WebGUI::International::get(886), + -label=>WebGUI::International::get(886,"Asset"), -uiLevel=>6 ); $tabform->getTab("display")->yesNo( -name=>"newWindow", -value=>$self->get("newWindow"), - -label=>WebGUI::International::get(940), + -label=>WebGUI::International::get(940,"Asset"), -uiLevel=>6 ); - $tabform->addTab("security",WebGUI::International::get(107),6); + $tabform->addTab("security",WebGUI::International::get(107,"Asset"),6); $tabform->getTab("security")->yesNo( -name=>"encryptPage", -value=>$self->get("encryptPage"), - -label=>WebGUI::International::get('encrypt page'), + -label=>WebGUI::International::get('encrypt page',"Asset"), -uiLevel=>6 ); $tabform->getTab("security")->dateTime( -name=>"startDate", - -label=>WebGUI::International::get(497), + -label=>WebGUI::International::get(497,"Asset"), -value=>$self->get("startDate"), -uiLevel=>6 ); $tabform->getTab("security")->dateTime( -name=>"endDate", - -label=>WebGUI::International::get(498), + -label=>WebGUI::International::get(498,"Asset"), -value=>$self->get("endDate"), -uiLevel=>6 ); @@ -1009,20 +1009,20 @@ sub getEditForm { $tabform->getTab("security")->selectList( -name=>"ownerUserId", -options=>$users, - -label=>WebGUI::International::get(108), + -label=>WebGUI::International::get(108,"Asset"), -value=>[$self->get("ownerUserId")], -subtext=>$subtext, -uiLevel=>6 ); $tabform->getTab("security")->group( -name=>"groupIdView", - -label=>WebGUI::International::get(872), + -label=>WebGUI::International::get(872,"Asset"), -value=>[$self->get("groupIdView")], -uiLevel=>6 ); $tabform->getTab("security")->group( -name=>"groupIdEdit", - -label=>WebGUI::International::get(871), + -label=>WebGUI::International::get(871,"Asset"), -value=>[$self->get("groupIdEdit")], -excludeGroups=>[1,7], -uiLevel=>6 @@ -1030,7 +1030,7 @@ sub getEditForm { $tabform->addTab("meta","Meta",3); $tabform->getTab("meta")->textarea( -name=>"synopsis", - -label=>WebGUI::International::get(412), + -label=>WebGUI::International::get(412,"Asset"), -value=>$self->get("synopsis"), -uiLevel=>3 ); @@ -1521,7 +1521,7 @@ Returns a toolbar with a set of icons that hyperlink to functions that delete, e sub getToolbar { my $self = shift; return undef if ($self->{_toolbarOff}); - my $toolbar = deleteIcon('func=delete',$self->get("url"),WebGUI::International::get(43)) + my $toolbar = deleteIcon('func=delete',$self->get("url"),WebGUI::International::get(43,"Asset")) .editIcon('func=edit',$self->get("url")) .moveUpIcon('func=promote',$self->get("url")) .moveDownIcon('func=demote',$self->get("url")) @@ -2539,14 +2539,14 @@ sub www_editMetaDataField { -label=>WebGUI::International::get('Field Id','Asset'), ); $f->text("fieldName", WebGUI::International::get('Field name','Asset'), $fieldInfo->{fieldName}); - $f->textarea("description", WebGUI::International::get(85), $fieldInfo->{description}); + $f->textarea("description", WebGUI::International::get(85,"Asset"), $fieldInfo->{description}); $f->fieldType( -name=>"fieldType", - -label=>WebGUI::International::get(486), + -label=>WebGUI::International::get(486,"Asset"), -value=>[$fieldInfo->{fieldType} || "text"], -types=> [ qw /text integer yesNo selectList radioList/ ] ); - $f->textarea("possibleValues",WebGUI::International::get(487),$fieldInfo->{possibleValues}); + $f->textarea("possibleValues",WebGUI::International::get(487,"Asset"),$fieldInfo->{possibleValues}); $f->submit(); $ac->setHelp("metadata edit property","Asset"); return $ac->render($f->print, WebGUI::International::get('Edit Metadata',"Asset")); @@ -2619,7 +2619,7 @@ sub www_editTree { $tabform->hidden({name=>"func",value=>"editTreeSave"}); $tabform->addTab("properties",WebGUI::International::get("properties","Asset"),9); $tabform->getTab("properties")->readOnly( - -label=>WebGUI::International::get(104), + -label=>WebGUI::International::get(104,"Asset"), -uiLevel=>9, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_url"}), -value=>WebGUI::Form::selectList({ @@ -2633,8 +2633,8 @@ sub www_editTree { }).' / '.WebGUI::Form::selectList({ name=>"endOfUrl", options=>{ - menuTitle=>WebGUI::International::get(411), - title=>WebGUI::International::get(99), + menuTitle=>WebGUI::International::get(411,"Asset"), + title=>WebGUI::International::get(99,"Asset"), currentUrl=>"Current URL" } })."" ); - $tabform->addTab("display",WebGUI::International::get(105),5); + $tabform->addTab("display",WebGUI::International::get(105,"Asset"),5); $tabform->getTab("display")->yesNo( -name=>"isHidden", -value=>$self->get("isHidden"), - -label=>WebGUI::International::get(886), + -label=>WebGUI::International::get(886,"Asset"), -uiLevel=>6, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_isHidden"}) ); $tabform->getTab("display")->yesNo( -name=>"newWindow", -value=>$self->get("newWindow"), - -label=>WebGUI::International::get(940), + -label=>WebGUI::International::get(940,"Asset"), -uiLevel=>6, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_newWindow"}) ); $tabform->getTab("display")->yesNo( -name=>"displayTitle", - -label=>WebGUI::International::get(174), + -label=>WebGUI::International::get(174,"Asset"), -value=>$self->getValue("displayTitle"), -uiLevel=>5, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_displayTitle"}) ); $tabform->getTab("display")->template( -name=>"styleTemplateId", - -label=>WebGUI::International::get(1073), + -label=>WebGUI::International::get(1073,"Asset"), -value=>$self->getValue("styleTemplateId"), -namespace=>'style', -afterEdit=>'op=editPage&npp='.$session{form}{npp}, @@ -2680,7 +2680,7 @@ sub www_editTree { ); $tabform->getTab("display")->template( -name=>"printableStyleTemplateId", - -label=>WebGUI::International::get(1079), + -label=>WebGUI::International::get(1079,"Asset"), -value=>$self->getValue("printableStyleTemplateId"), -namespace=>'style', -afterEdit=>'op=editPage&npp='.$session{form}{npp}, @@ -2688,36 +2688,36 @@ sub www_editTree { ); $tabform->getTab("display")->interval( -name=>"cacheTimeout", - -label=>WebGUI::International::get(895), + -label=>WebGUI::International::get(895,"Asset"), -value=>$self->getValue("cacheTimeout"), -uiLevel=>8, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_cacheTimeout"}) ); $tabform->getTab("display")->interval( -name=>"cacheTimeoutVisitor", - -label=>WebGUI::International::get(896), + -label=>WebGUI::International::get(896,"Asset"), -value=>$self->getValue("cacheTimeoutVisitor"), -uiLevel=>8, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_cacheTimeoutVisitor"}) ); - $tabform->addTab("security",WebGUI::International::get(107),6); + $tabform->addTab("security",WebGUI::International::get(107,"Asset"),6); $tabform->getTab("security")->yesNo( -name=>"encryptPage", -value=>$self->get("encryptPage"), - -label=>WebGUI::International::get('encrypt page'), + -label=>WebGUI::International::get('encrypt page',"Asset"), -uiLevel=>6, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_encryptPage"}) ); $tabform->getTab("security")->dateTime( -name=>"startDate", - -label=>WebGUI::International::get(497), + -label=>WebGUI::International::get(497,"Asset"), -value=>$self->get("startDate"), -uiLevel=>6, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_startDate"}) ); $tabform->getTab("security")->dateTime( -name=>"endDate", - -label=>WebGUI::International::get(498), + -label=>WebGUI::International::get(498,"Asset"), -value=>$self->get("endDate"), -uiLevel=>6, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_endDate"}) @@ -2740,7 +2740,7 @@ sub www_editTree { $tabform->getTab("security")->selectList( -name=>"ownerUserId", -options=>$users, - -label=>WebGUI::International::get(108), + -label=>WebGUI::International::get(108,"Asset"), -value=>[$self->get("ownerUserId")], -subtext=>$subtext, -uiLevel=>6, @@ -2748,14 +2748,14 @@ sub www_editTree { ); $tabform->getTab("security")->group( -name=>"groupIdView", - -label=>WebGUI::International::get(872), + -label=>WebGUI::International::get(872,"Asset"), -value=>[$self->get("groupIdView")], -uiLevel=>6, -subtext=>'
'.WebGUI::International::get("change","Asset").' '.WebGUI::Form::yesNo({name=>"change_groupIdView"}) ); $tabform->getTab("security")->group( -name=>"groupIdEdit", - -label=>WebGUI::International::get(871), + -label=>WebGUI::International::get(871,"Asset"), -value=>[$self->get("groupIdEdit")], -excludeGroups=>[1,7], -uiLevel=>6, @@ -2876,12 +2876,12 @@ sub www_export { my $f = WebGUI::HTMLForm->new(-action=>$self->getUrl); $f->hidden("func","exportStatus"); $f->integer( - -label=>WebGUI::International::get('Depth'), + -label=>WebGUI::International::get('Depth',"Asset"), -name=>"depth", -value=>99, ); $f->selectList( - -label=>WebGUI::International::get('Export as user'), + -label=>WebGUI::International::get('Export as user',"Asset"), -name=>"userId", -options=>WebGUI::SQL->buildHashRef("select userId, username from users"), -value=>[1], @@ -2892,17 +2892,17 @@ sub www_export { -value=>"index.html" ); $f->text( - -label=>WebGUI::International::get('Extras URL'), + -label=>WebGUI::International::get('Extras URL',"Asset"), -name=>"extrasURL", -value=>$session{config}{extrasURL} ); $f->text( - -label=>WebGUI::International::get('Uploads URL'), + -label=>WebGUI::International::get('Uploads URL',"Asset"), -name=>"uploadsURL", -value=>$session{config}{uploadsURL} ); $f->submit; - $self->getAdminConsole->render($self->checkExportPath.$f->print,WebGUI::International::get('Export Page')); + $self->getAdminConsole->render($self->checkExportPath.$f->print,WebGUI::International::get('Export Page'),"Asset"); } @@ -2923,8 +2923,8 @@ sub www_exportStatus { $iframeUrl = WebGUI::URL::append($iframeUrl, 'userId='.$session{form}{userId}); $iframeUrl = WebGUI::URL::append($iframeUrl, 'extrasURL='.$session{form}{extrasURL}); $iframeUrl = WebGUI::URL::append($iframeUrl, 'uploadsURL='.$session{form}{uploadsURL}); - my $output = ''; - $self->getAdminConsole->render($output,WebGUI::International::get('Page Export Status')); + my $output = ''; + $self->getAdminConsole->render($output,WebGUI::International::get('Page Export Status'),"Asset"); } #------------------------------------------------------------------- @@ -2995,7 +2995,7 @@ sub www_exportGenerate { print "DONE
"; } print "

Exported ".scalar(@{$assets})." pages in ".(time()-$startTime)." seconds.

"; - print ''.WebGUI::International::get(493).''; + print ''.WebGUI::International::get(493,"Asset").''; return; } @@ -3016,7 +3016,7 @@ sub www_manageAssets { $output .= '
 
-
'.WebGUI::International::get(1083).''; +
'.WebGUI::International::get(1083,"Asset").''; foreach my $link (@{$self->getAssetAdderLinks("proceed=manageAssets",1)}) { $output .= ''.$link->{label}.'
'; } @@ -3033,7 +3033,7 @@ sub www_manageAssets { $hasClips = 1; } if ($hasClips) { - $output .= '
'.WebGUI::International::get(1082).'' + $output .= '
'.WebGUI::International::get(1082,"Asset").'' .WebGUI::Form::formHeader() .WebGUI::Form::hidden({name=>"func",value=>"pasteList"}) .WebGUI::Form::checkList({name=>"assetId",vertical=>1,options=>\%options}) @@ -3066,14 +3066,14 @@ sub www_manageClipboard { my ($header,$limit); $ac->setHelp("clipboard manage"); if ($session{form}{systemClipboard} && WebGUI::Grouping::isInGroup(3)) { - $header = WebGUI::International::get(965); - $ac->addSubmenuItem($self->getUrl('func=manageClipboard'), WebGUI::International::get(949)); - $ac->addSubmenuItem($self->getUrl('func=emptyClipboard&systemClipboard=1'), WebGUI::International::get(959), - 'onclick="return window.confirm(\''.WebGUI::International::get(951).'\')"'); + $header = WebGUI::International::get(965,"Asset"); + $ac->addSubmenuItem($self->getUrl('func=manageClipboard'), WebGUI::International::get(949),"Asset"); + $ac->addSubmenuItem($self->getUrl('func=emptyClipboard&systemClipboard=1'), WebGUI::International::get(959,"Asset"), + 'onclick="return window.confirm(\''.WebGUI::International::get(951).'\')"',"Asset"); } else { - $ac->addSubmenuItem($self->getUrl('func=manageClipboard&systemClipboard=1'), WebGUI::International::get(954)); - $ac->addSubmenuItem($self->getUrl('func=emptyClipboard'), WebGUI::International::get(950), - 'onclick="return window.confirm(\''.WebGUI::International::get(951).'\')"'); + $ac->addSubmenuItem($self->getUrl('func=manageClipboard&systemClipboard=1'), WebGUI::International::get(954),"Asset"); + $ac->addSubmenuItem($self->getUrl('func=emptyClipboard'), WebGUI::International::get(950,"Asset"), + 'onclick="return window.confirm(\''.WebGUI::International::get(951).'\')"',"Asset"); $limit = 1; } foreach my $assetData (@{$self->getAssetsInClipboard($limit)}) { @@ -3121,14 +3121,14 @@ sub www_manageTrash { my ($header, $limit); $ac->setHelp("trash manage"); if ($session{form}{systemTrash} && WebGUI::Grouping::isInGroup(3)) { - $header = WebGUI::International::get(965); - $ac->addSubmenuItem($self->getUrl('func=manageTrash'), WebGUI::International::get(10)); - $ac->addSubmenuItem($self->getUrl('func=emptyTrash&systemTrash=1'), WebGUI::International::get(967), - 'onclick="return window.confirm(\''.WebGUI::International::get(651).'\')"'); + $header = WebGUI::International::get(965,"Asset"); + $ac->addSubmenuItem($self->getUrl('func=manageTrash'), WebGUI::International::get(10),"Asset"); + $ac->addSubmenuItem($self->getUrl('func=emptyTrash&systemTrash=1'), WebGUI::International::get(967,"Asset"), + 'onclick="return window.confirm(\''.WebGUI::International::get(651).'\')"',"Asset"); } else { - $ac->addSubmenuItem($self->getUrl('func=manageTrash&systemTrash=1'), WebGUI::International::get(964)); - $ac->addSubmenuItem($self->getUrl('func=emptyTrash'), WebGUI::International::get(11), - 'onclick="return window.confirm(\''.WebGUI::International::get(651).'\')"'); + $ac->addSubmenuItem($self->getUrl('func=manageTrash&systemTrash=1'), WebGUI::International::get(964),"Asset"); + $ac->addSubmenuItem($self->getUrl('func=emptyTrash'), WebGUI::International::get(11,"Asset"), + 'onclick="return window.confirm(\''.WebGUI::International::get(651).'\')"',"Asset"); $limit = 1; } foreach my $assetData (@{$self->getAssetsInTrash($limit)}) { diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index 9f36c0d9e..b410da5a4 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -37,7 +37,7 @@ our $I18N = { 'asset fields body' => { message => q| -

Asset ID
This is the unique identifier WebGUI uses to keep track of this Asset instance. Normal users should never need to be concerned with the Asset ID, but some advanced users may need to know it for things like SQL Reports. The Asset ID is not editable.

+

^International("asset id","Asset");
This is the unique identifier WebGUI uses to keep track of this Asset instance. Normal users should never need to be concerned with the Asset ID, but some advanced users may need to know it for things like SQL Reports. The Asset ID is not editable.

Title
@@ -331,6 +331,177 @@ each wobject under the tab "Metadata" in the wobject properties.

lastUpdated => 1089039511 }, + '1079' => { + lastUpdated => 1073152790, + message => q|Printable Style| + }, + '967' => { + lastUpdated => 1052850265, + message => q|Empty system trash.| + }, + '959' => { + lastUpdated => 1052850265, + message => q|Empty system clipboard.| + }, + 'Uploads URL' => { + lastUpdated => 1089039511, + context => q|Field label for the Export Page operation|, + message => q|Uploads URL| + }, + '99' => { + lastUpdated => 1031514049, + message => q|Title| + }, + 'Page Export Status' => { + lastUpdated => 1089039511, + context => q|Title for the Page Export Status operation|, + message => q|Page Export Status| + }, + '1083' => { + lastUpdated => 1076866510, + message => q|New Content| + }, + '965' => { + lastUpdated => 1099050265, + message => q|System Trash| + }, + 'Extras URL' => { + lastUpdated => 1089039511, + context => q|Field label for the Export Page operation|, + message => q|Extras URL| + }, + '895' => { + lastUpdated => 1056292971, + message => q|Cache Timeout| + }, + '108' => { + lastUpdated => 1031514049, + message => q|Owner| + }, + '872' => { + lastUpdated => 1044218038, + message => q|Who can view?| + }, + '896' => { + lastUpdated => 1056292980, + message => q|Cache Timeout (Visitors)| + }, + 'Export as user' => { + lastUpdated => 1089039511, + context => q|Field label for the Export Page operation|, + message => q|Export as user| + }, + '871' => { + lastUpdated => 1044218026, + message => q|Who can edit?| + }, + '104' => { + lastUpdated => 1031514049, + context => q|asset property|, + message => q|URL| + }, + '11' => { + lastUpdated => 1051514049, + message => q|Empty trash.| + }, + '412' => { + lastUpdated => 1031514049, + message => q|Synopsis| + }, + '954' => { + lastUpdated => 1052850265, + message => q|Manage system clipboard.| + }, + '1082' => { + lastUpdated => 1076866475, + message => q|Clipboard| + }, + '107' => { + lastUpdated => 1031514049, + message => q|Security| + }, + '174' => { + lastUpdated => 1031514049, + message => q|Display the title?| + }, + '487' => { + lastUpdated => 1031514049, + message => q|Possible Values| + }, + 'Depth' => { + lastUpdated => 1089039511, + context => q|Field label for the Export Page operation|, + message => q|Depth| + }, + '964' => { + lastUpdated => 1052850265, + message => q|Manage system trash.| + }, + '105' => { + lastUpdated => 1046638916, + message => q|Display| + }, + '1073' => { + lastUpdated => 1070027660, + message => q|Style Template| + }, + 'Export Page' => { + lastUpdated => 1089039511, + context => q|Title for the Export Page operation|, + message => q|Export Page| + }, + '951' => { + lastUpdated => 1052850265, + message => q|Are you certain that you wish to empty the clipboard to the trash?| + }, + '950' => { + lastUpdated => 1052850265, + message => q|Empty clipboard.| + }, + '85' => { + lastUpdated => 1031514049, + message => q|Description| + }, + '486' => { + lastUpdated => 1031514049, + message => q|Data Type| + }, + '497' => { + lastUpdated => 1031514049, + message => q|Start Date| + }, + '651' => { + lastUpdated => 1101514049, + message => q|Emptying your trash will remove these assets from your site forever. Are you sure you want to continue?| + }, + '498' => { + lastUpdated => 1031514049, + message => q|End Date| + }, + '949' => { + lastUpdated => 1052850265, + message => q|Manage clipboard.| + }, + '411' => { + lastUpdated => 1031514049, + message => q|Menu Title| + }, + '886' => { + lastUpdated => 1044727952, + message => q|Hide from navigation?| + }, + '43' => { + lastUpdated => 1031514049, + message => q|Are you certain that you wish to delete this content?| + }, + '940' => { + lastUpdated => 1050438829, + message => q|Open in new window?| + }, + '493' => { + lastUpdated => 1031514049, + message => q|Back to site.| + } }; 1;