convert FilePile to use i18n labels out of the Asset instead of duplicating them

This commit is contained in:
Colin Kuskie 2008-05-20 18:58:40 +00:00
parent 5640ea4079
commit 73337650bc
2 changed files with 29 additions and 106 deletions

View file

@ -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

View file

@ -3,107 +3,30 @@ use strict;
our $I18N = {
'886 description' => {
message => q|<p>Whether or not this asset will be hidden from the navigation menu and site maps.</p>|,
lastUpdated => 1119214815,
},
'940 description' => {
message => q|<p>Select yes to open this asset in a new window.
'upload files description' => {
message => q|<p>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.
</p>|,
lastUpdated => 1119214815,
},
lastUpdated => 1139206282,
},
'872 description' => {
message => q|<p>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.
</p>|,
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|<p>Choose the group that can edit this page. The group assigned editing rights can also always view the page.
</p>|,
lastUpdated => 1119214815,
},
'assetName' => {
message => q|File Pile|,
context => q|label for Asset Manager, getName|,
lastUpdated => 1128639521,
},
'upload files description' => {
message => q|<p>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.
</p>|,
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|<p>Whether or not this asset will be hidden from the navigation menu and site maps.</p>|,
lastUpdated => 1119149899,
},
'940' => {
lastUpdated => 1050438829,
message => q|Open in new window?|
},
'940 description' => {
message => q|<p>Select yes to open this asset in a new window.</p>|,
lastUpdated => 1119149899,
},
'108' => {
lastUpdated => 1031514049,
message => q|Owner|
},
'108 description' => {
message => q|<p>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.
</p>
<p> <b>NOTE:</b> The owner can only be changed by an administrator.
</p>|,
lastUpdated => 1165517660,
},
'872' => {
lastUpdated => 1044218038,
message => q|Who can view?|
},
'872 description' => {
message => q|<p>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.</p>|,
lastUpdated => 1119149899,
},
'871' => {
lastUpdated => 1044218026,
message => q|Who can edit?|
},
'871 description' => {
message => q|<p>Choose the group that can edit this asset. The group assigned editing rights can also always view the asset.</p>|,
lastUpdated => 1119149899,
},
};
1;