From 73337650bcfd1d2409906ab169b15705103fbe96 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 20 May 2008 18:58:40 +0000 Subject: [PATCH] convert FilePile to use i18n labels out of the Asset instead of duplicating them --- lib/WebGUI/Asset/FilePile.pm | 20 ++-- lib/WebGUI/i18n/English/Asset_FilePile.pm | 115 ++++------------------ 2 files changed, 29 insertions(+), 106 deletions(-) diff --git a/lib/WebGUI/Asset/FilePile.pm b/lib/WebGUI/Asset/FilePile.pm index 9d38b5f7e..6fb361668 100644 --- a/lib/WebGUI/Asset/FilePile.pm +++ b/lib/WebGUI/Asset/FilePile.pm @@ -78,15 +78,15 @@ sub edit { $tabform->getTab("properties")->yesNo( -name=>"isHidden", -value=>1, - -label=>$i18n->get(886), - -hoverHelp=>$i18n->get('886 description'), + -label=>$i18n->get(886, 'Asset'), + -hoverHelp=>$i18n->get('886 description', 'Asset'), -uiLevel=>6 ); $tabform->getTab("properties")->yesNo( -name=>"newWindow", -value=>0, - -label=>$i18n->get(940), - -hoverHelp=>$i18n->get('940 description'), + -label=>$i18n->get(940, 'Asset'), + -hoverHelp=>$i18n->get('940 description', 'Asset'), -uiLevel=>6 ); $tabform->addTab("security",$i18n->get(107,"Asset"),6); @@ -109,23 +109,23 @@ sub edit { $tabform->getTab("security")->selectBox( -name=>"ownerUserId", -options=>$users, - -label=>$i18n->get(108), - -hoverHelp=>$i18n->get('108 description'), + -label=>$i18n->get(108, 'Asset'), + -hoverHelp=>$i18n->get('108 description', 'Asset'), -value=>[$self->get("ownerUserId")], -subtext=>$subtext, -uiLevel=>6 ); $tabform->getTab("security")->group( -name=>"groupIdView", - -label=>$i18n->get(872), - -hoverHelp=>$i18n->get('872 description'), + -label=>$i18n->get(872, 'Asset'), + -hoverHelp=>$i18n->get('872 description', 'Asset'), -value=>[$self->get("groupIdView")], -uiLevel=>6 ); $tabform->getTab("security")->group( -name=>"groupIdEdit", - -label=>$i18n->get(871), - -hoverHelp=>$i18n->get('871 description'), + -label=>$i18n->get(871, 'Asset'), + -hoverHelp=>$i18n->get('871 description', 'Asset'), -value=>[$self->get("groupIdEdit")], -excludeGroups=>[1,7], -uiLevel=>6 diff --git a/lib/WebGUI/i18n/English/Asset_FilePile.pm b/lib/WebGUI/i18n/English/Asset_FilePile.pm index 6ec2570b3..aea90b3b5 100644 --- a/lib/WebGUI/i18n/English/Asset_FilePile.pm +++ b/lib/WebGUI/i18n/English/Asset_FilePile.pm @@ -3,107 +3,30 @@ use strict; our $I18N = { - '886 description' => { - message => q|

Whether or not this asset will be hidden from the navigation menu and site maps.

|, - lastUpdated => 1119214815, - }, - - '940 description' => { - message => q|

Select yes to open this asset in a new window. + 'upload files description' => { + message => q|

This is where files can be uploaded from your computer. You can upload to to 100 files at a time. File sizes should not exceed 100MB in size.

|, - lastUpdated => 1119214815, - }, + lastUpdated => 1139206282, + }, - '872 description' => { - message => q|

Choose which group can view this page. If you want both visitors and registered users to be able to view the page then you should choose the "Everybody" group. -

|, - lastUpdated => 1119214815, - }, + 'add pile' => { + message => q|Add a Pile of Files|, + context => q|label for File Pile Admin Console|, + lastUpdated => 1107387324, + }, - '871 description' => { - message => q|

Choose the group that can edit this page. The group assigned editing rights can also always view the page. -

|, - lastUpdated => 1119214815, - }, + 'assetName' => { + message => q|File Pile|, + context => q|label for Asset Manager, getName|, + lastUpdated => 1128639521, + }, - 'upload files description' => { - message => q|

This is where files can be uploaded from your computer. You can upload to to 100 files at a time. File sizes should not exceed 100MB in size. -

|, - lastUpdated => 1139206282, - }, + 'upload files' => { + message => q|Upload Files|, + context => q|label for File Pile asset form|, + lastUpdated => 1107387247, + }, - - 'add pile' => { - message => q|Add a Pile of Files|, - context => q|label for File Pile Admin Console|, - lastUpdated => 1107387324, - }, - - 'assetName' => { - message => q|File Pile|, - context => q|label for Asset Manager, getName|, - lastUpdated => 1128639521, - }, - - 'upload files' => { - message => q|Upload Files|, - context => q|label for File Pile asset form|, - lastUpdated => 1107387247, - }, - - '886' => { - lastUpdated => 1044727952, - message => q|Hide from navigation?| - }, - - '886 description' => { - message => q|

Whether or not this asset will be hidden from the navigation menu and site maps.

|, - lastUpdated => 1119149899, - }, - - '940' => { - lastUpdated => 1050438829, - message => q|Open in new window?| - }, - - '940 description' => { - message => q|

Select yes to open this asset in a new window.

|, - lastUpdated => 1119149899, - }, - - '108' => { - lastUpdated => 1031514049, - message => q|Owner| - }, - - '108 description' => { - message => q|

The owner of an asset is usually the person who created the asset. This user always has full editing and viewing rights on the asset. -

-

NOTE: The owner can only be changed by an administrator. -

|, - lastUpdated => 1165517660, - }, - - '872' => { - lastUpdated => 1044218038, - message => q|Who can view?| - }, - - '872 description' => { - message => q|

Choose which group can view this asset. If you want both visitors and registered users to be able to view the asset then you should choose the "Everybody" group.

|, - lastUpdated => 1119149899, - }, - - '871' => { - lastUpdated => 1044218026, - message => q|Who can edit?| - }, - - '871 description' => { - message => q|

Choose the group that can edit this asset. The group assigned editing rights can also always view the asset.

|, - lastUpdated => 1119149899, - }, - }; 1;