#1570 - PATCH for untranslated strings in AssetAdmin.php

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44102 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-11-01 20:58:28 +00:00
parent 1de1f2701f
commit a0798d8622
2 changed files with 24 additions and 13 deletions

View File

@ -234,11 +234,11 @@ HTML;
$this,
"Files",
"File",
array("Title" => "Title", "LinkedURL" => "Filename"),
array("Title" => _t('AssetAdmin.TITLE', "Title"), "LinkedURL" => _t('AssetAdmin.FILENAME', "Filename")),
""
);
$fileList->setFolder($record);
$fileList->setPopupCaption("View/Edit Asset");
$fileList->setPopupCaption(_t('AssetAdmin.VIEWEDITASSET', "View/Edit Asset"));
if($record) {
$nameField = ($id != "root") ? new TextField("Name", "Folder Name") : new HiddenField("Name");
@ -252,34 +252,34 @@ HTML;
$fields = new FieldSet(
new HiddenField("Title"),
new TabSet("Root",
new Tab("Files",
new Tab(_t('AssetAdmin.FILESTAB', "Files"),
$nameField,
$fileList,
$deleteButton,
new HiddenField("FileIDs"),
new HiddenField("DestFolderID")
),
new Tab("Details",
new Tab(_t('AssetAdmin.DETAILSTAB', "Details"),
new ReadonlyField("URL"),
new ReadonlyField("ClassName", _t('AssetAdmin.TYPE','Type')),
new ReadonlyField("Created", _t('AssetAdmin.CREATED','First Uploaded')),
new ReadonlyField("LastEdited", _t('AssetAdmin.LASTEDITED','Last Updated'))
),
new Tab("Upload",
new Tab(_t('AssetAdmin.UPLOADTAB', "Upload"),
new LiteralField("UploadIframe",
$this->getUploadIframe()
)
),
new Tab("Unused files",
new Tab(_t('AssetAdmin.UNUSEDFILESTAB', "Unused files"),
new LiteralField("UnusedAssets",
"<div id=\"UnusedAssets\"><p>Unused files</p>"
"<div id=\"UnusedAssets\"><p>"._t('AssetAdmin.UNUSEDFILESTITLE', 'Unused files')."</p>"
),
$this->getAssetList(),
new LiteralField("UnusedThumbnails",
"</div>
<div id=\"UnusedThumbnails\">
<p>Unused thumbnails</p>
<a id=\"UnusedThumbnails\" href=\"#\">Delete unused thumbnails</a>
<p>"._t('AssetAdmin.UNUSEDTHUMBNAILSTITLE', 'Unused thumbnails')."</p>
<a id=\"UnusedThumbnails\" href=\"#\">"._t('AssetAdmin.DELETEUNUSEDTHUMBNAILS', 'Delete unused thumbnails')."</a>
</div>"
)
)
@ -762,11 +762,11 @@ JS;
$this,
"AssetList",
"File",
array("Title" => "Title", "LinkedURL" => "Filename"),
array("Title" => _t('AssetAdmin.TITLE', "Title"), "LinkedURL" => _t('AssetAdmin.FILENAME', "Filename")),
"",
$where
);
$assetList->setPopupCaption("View Asset");
$assetList->setPopupCaption(_t('AssetAdmin.VIEWASSET', "View Asset"));
$assetList->setPermissions(array("show","delete"));
$assetList->Markable = false;
return $assetList;
@ -820,4 +820,4 @@ JS;
}
return array_diff($allThumbnails,$usedThumbnails);
}
}
}

View File

@ -10,6 +10,17 @@ $lang['en_US']['AssetAdmin']['TOOLARGE'] = '%s is too large (%s). Files of this
$lang['en_US']['AssetAdmin']['UPLOADEDX'] = 'Uploaded %s files';
$lang['en_US']['AssetAdmin']['NOTHINGTOUPLOAD'] = 'There was nothing to upload';
$lang['en_US']['AssetAdmin']['DELSELECTED'] = 'Delete selected files';
$lang['en_US']['AssetAdmin']['VIEWEDITASSET'] = 'View/Edit Asset';
$lang['en_US']['AssetAdmin']['VIEWASSET'] = 'View Asset';
$lang['en_US']['AssetAdmin']['TITLE'] = 'Title';
$lang['en_US']['AssetAdmin']['FILENAME'] = 'Filename';
$lang['en_US']['AssetAdmin']['FILESTAB'] = "Files";
$lang['en_US']['AssetAdmin']['DETAILSTAB'] = "Details";
$lang['en_US']['AssetAdmin']['UPLOADTAB'] = "Upload";
$lang['en_US']['AssetAdmin']['UNUSEDFILESTAB'] = "Unused files";
$lang['en_US']['AssetAdmin']['UNUSEDFILESTITLE'] = 'Unused files';
$lang['en_US']['AssetAdmin']['UNUSEDTHUMBNAILSTITLE'] = 'Unused thumbnails';
$lang['en_US']['AssetAdmin']['DELETEUNUSEDTHUMBNAILS'] = 'Delete unused thumbnails';
$lang['en_US']['AssetAdmin']['TYPE'] = 'Type';
$lang['en_US']['AssetAdmin']['CREATED'] = 'First Uploaded';
$lang['en_US']['AssetAdmin']['LASTEDITED'] = 'Last Updated';
@ -445,4 +456,4 @@ $lang['en_US']['ReportAdmin_left.ss'] = array_merge($lang['en_US']['ReportAdmin_
$lang['en_US']['MemberList.ss'] = array_merge($lang['en_US']['MemberList.ss'], $lang['en_US']['MemberList_Table.ss']);
$lang['en_US']['PageCommentInterface.ss'] = array_merge($lang['en_US']['PageCommentInterface.ss'], $lang['en_US']['PageCommentInterface_singlecomment.ss']);
?>
?>