mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
#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:
parent
1de1f2701f
commit
a0798d8622
@ -234,11 +234,11 @@ HTML;
|
|||||||
$this,
|
$this,
|
||||||
"Files",
|
"Files",
|
||||||
"File",
|
"File",
|
||||||
array("Title" => "Title", "LinkedURL" => "Filename"),
|
array("Title" => _t('AssetAdmin.TITLE', "Title"), "LinkedURL" => _t('AssetAdmin.FILENAME', "Filename")),
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
$fileList->setFolder($record);
|
$fileList->setFolder($record);
|
||||||
$fileList->setPopupCaption("View/Edit Asset");
|
$fileList->setPopupCaption(_t('AssetAdmin.VIEWEDITASSET', "View/Edit Asset"));
|
||||||
|
|
||||||
if($record) {
|
if($record) {
|
||||||
$nameField = ($id != "root") ? new TextField("Name", "Folder Name") : new HiddenField("Name");
|
$nameField = ($id != "root") ? new TextField("Name", "Folder Name") : new HiddenField("Name");
|
||||||
@ -252,34 +252,34 @@ HTML;
|
|||||||
$fields = new FieldSet(
|
$fields = new FieldSet(
|
||||||
new HiddenField("Title"),
|
new HiddenField("Title"),
|
||||||
new TabSet("Root",
|
new TabSet("Root",
|
||||||
new Tab("Files",
|
new Tab(_t('AssetAdmin.FILESTAB', "Files"),
|
||||||
$nameField,
|
$nameField,
|
||||||
$fileList,
|
$fileList,
|
||||||
$deleteButton,
|
$deleteButton,
|
||||||
new HiddenField("FileIDs"),
|
new HiddenField("FileIDs"),
|
||||||
new HiddenField("DestFolderID")
|
new HiddenField("DestFolderID")
|
||||||
),
|
),
|
||||||
new Tab("Details",
|
new Tab(_t('AssetAdmin.DETAILSTAB', "Details"),
|
||||||
new ReadonlyField("URL"),
|
new ReadonlyField("URL"),
|
||||||
new ReadonlyField("ClassName", _t('AssetAdmin.TYPE','Type')),
|
new ReadonlyField("ClassName", _t('AssetAdmin.TYPE','Type')),
|
||||||
new ReadonlyField("Created", _t('AssetAdmin.CREATED','First Uploaded')),
|
new ReadonlyField("Created", _t('AssetAdmin.CREATED','First Uploaded')),
|
||||||
new ReadonlyField("LastEdited", _t('AssetAdmin.LASTEDITED','Last Updated'))
|
new ReadonlyField("LastEdited", _t('AssetAdmin.LASTEDITED','Last Updated'))
|
||||||
),
|
),
|
||||||
new Tab("Upload",
|
new Tab(_t('AssetAdmin.UPLOADTAB', "Upload"),
|
||||||
new LiteralField("UploadIframe",
|
new LiteralField("UploadIframe",
|
||||||
$this->getUploadIframe()
|
$this->getUploadIframe()
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
new Tab("Unused files",
|
new Tab(_t('AssetAdmin.UNUSEDFILESTAB', "Unused files"),
|
||||||
new LiteralField("UnusedAssets",
|
new LiteralField("UnusedAssets",
|
||||||
"<div id=\"UnusedAssets\"><p>Unused files</p>"
|
"<div id=\"UnusedAssets\"><p>"._t('AssetAdmin.UNUSEDFILESTITLE', 'Unused files')."</p>"
|
||||||
),
|
),
|
||||||
$this->getAssetList(),
|
$this->getAssetList(),
|
||||||
new LiteralField("UnusedThumbnails",
|
new LiteralField("UnusedThumbnails",
|
||||||
"</div>
|
"</div>
|
||||||
<div id=\"UnusedThumbnails\">
|
<div id=\"UnusedThumbnails\">
|
||||||
<p>Unused thumbnails</p>
|
<p>"._t('AssetAdmin.UNUSEDTHUMBNAILSTITLE', 'Unused thumbnails')."</p>
|
||||||
<a id=\"UnusedThumbnails\" href=\"#\">Delete unused thumbnails</a>
|
<a id=\"UnusedThumbnails\" href=\"#\">"._t('AssetAdmin.DELETEUNUSEDTHUMBNAILS', 'Delete unused thumbnails')."</a>
|
||||||
</div>"
|
</div>"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -762,11 +762,11 @@ JS;
|
|||||||
$this,
|
$this,
|
||||||
"AssetList",
|
"AssetList",
|
||||||
"File",
|
"File",
|
||||||
array("Title" => "Title", "LinkedURL" => "Filename"),
|
array("Title" => _t('AssetAdmin.TITLE', "Title"), "LinkedURL" => _t('AssetAdmin.FILENAME', "Filename")),
|
||||||
"",
|
"",
|
||||||
$where
|
$where
|
||||||
);
|
);
|
||||||
$assetList->setPopupCaption("View Asset");
|
$assetList->setPopupCaption(_t('AssetAdmin.VIEWASSET', "View Asset"));
|
||||||
$assetList->setPermissions(array("show","delete"));
|
$assetList->setPermissions(array("show","delete"));
|
||||||
$assetList->Markable = false;
|
$assetList->Markable = false;
|
||||||
return $assetList;
|
return $assetList;
|
||||||
|
@ -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']['UPLOADEDX'] = 'Uploaded %s files';
|
||||||
$lang['en_US']['AssetAdmin']['NOTHINGTOUPLOAD'] = 'There was nothing to upload';
|
$lang['en_US']['AssetAdmin']['NOTHINGTOUPLOAD'] = 'There was nothing to upload';
|
||||||
$lang['en_US']['AssetAdmin']['DELSELECTED'] = 'Delete selected files';
|
$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']['TYPE'] = 'Type';
|
||||||
$lang['en_US']['AssetAdmin']['CREATED'] = 'First Uploaded';
|
$lang['en_US']['AssetAdmin']['CREATED'] = 'First Uploaded';
|
||||||
$lang['en_US']['AssetAdmin']['LASTEDITED'] = 'Last Updated';
|
$lang['en_US']['AssetAdmin']['LASTEDITED'] = 'Last Updated';
|
||||||
|
Loading…
Reference in New Issue
Block a user