MINOR Added translations for BrokenLinksReport, ReportAdminForm.ss, AssetTableField.ss (fixes #5527, thanks Martimiz) (from r104980)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112461 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 01:46:53 +00:00
parent 5f393e761c
commit 0ac0beca47
4 changed files with 47 additions and 12 deletions

View File

@ -82,7 +82,7 @@ class BrokenLinksReport extends SS_Report {
$fields = array( $fields = array(
"Title" => array( "Title" => array(
"title" => "Page name", "title" => _t('BrokenLinksReport.PageName', 'Page name'),
'formatting' => sprintf( 'formatting' => sprintf(
'<a href=\"admin/show/$ID\" title=\"%s\">$value</a>', '<a href=\"admin/show/$ID\" title=\"%s\">$value</a>',
_t('BrokenLinksReport.HoverTitleEditPage', 'Edit page') _t('BrokenLinksReport.HoverTitleEditPage', 'Edit page')
@ -105,7 +105,7 @@ class BrokenLinksReport extends SS_Report {
} }
function parameterFields() { function parameterFields() {
return new FieldSet( return new FieldSet(
new DropdownField('CheckSite', 'Check site', array( new DropdownField('CheckSite', _t('BrokenLinksReport.CheckSite','Check site'), array(
'Published' => _t('BrokenLinksReport.CheckSiteDropdownPublished', 'Published Site'), 'Published' => _t('BrokenLinksReport.CheckSiteDropdownPublished', 'Published Site'),
'Draft' => _t('BrokenLinksReport.CheckSiteDropdownDraft', 'Draft Site') 'Draft' => _t('BrokenLinksReport.CheckSiteDropdownDraft', 'Draft Site')
)), )),
@ -113,7 +113,7 @@ class BrokenLinksReport extends SS_Report {
'Reason', 'Reason',
_t('BrokenLinksReport.ReasonDropdown', 'Problem to check'), _t('BrokenLinksReport.ReasonDropdown', 'Problem to check'),
array( array(
'' => 'Any', '' => _t('BrokenLinksReport.Any', 'Any'),
'BROKENFILE' => _t('BrokenLinksReport.ReasonDropdownBROKENFILE', 'Broken file'), 'BROKENFILE' => _t('BrokenLinksReport.ReasonDropdownBROKENFILE', 'Broken file'),
'BROKENLINK' => _t('BrokenLinksReport.ReasonDropdownBROKENLINK', 'Broken link'), 'BROKENLINK' => _t('BrokenLinksReport.ReasonDropdownBROKENLINK', 'Broken link'),
'VPBROKENLINK' => _t('BrokenLinksReport.ReasonDropdownVPBROKENLINK', 'Virtual page pointing to non-existent page'), 'VPBROKENLINK' => _t('BrokenLinksReport.ReasonDropdownVPBROKENLINK', 'Virtual page pointing to non-existent page'),

View File

@ -16,6 +16,8 @@ $lang['en_US']['AssetAdmin']['MOVEDX'] = 'Moved %s files';
$lang['en_US']['AssetAdmin']['NOTEMP'] = 'There is no temporary folder for uploads. Please set upload_tmp_dir in php.ini.'; $lang['en_US']['AssetAdmin']['NOTEMP'] = 'There is no temporary folder for uploads. Please set upload_tmp_dir in php.ini.';
$lang['en_US']['AssetAdmin']['NOTHINGTOUPLOAD'] = 'There was nothing to upload'; $lang['en_US']['AssetAdmin']['NOTHINGTOUPLOAD'] = 'There was nothing to upload';
$lang['en_US']['AssetAdmin']['NOWBROKEN'] = 'These pages now have broken links:'; $lang['en_US']['AssetAdmin']['NOWBROKEN'] = 'These pages now have broken links:';
$lang['en_US']['AssetAdmin']['SAVEDFILE'] = 'Saved file %s';
$lang['en_US']['AssetAdmin']['SAVEFOLDERNAME'] = 'Save folder name';
$lang['en_US']['AssetAdmin']['THUMBSDELETED'] = '%s unused thumbnails have been deleted'; $lang['en_US']['AssetAdmin']['THUMBSDELETED'] = '%s unused thumbnails have been deleted';
$lang['en_US']['AssetAdmin']['UPLOAD'] = 'Upload Files Listed Below'; $lang['en_US']['AssetAdmin']['UPLOAD'] = 'Upload Files Listed Below';
$lang['en_US']['AssetAdmin']['UPLOADEDX'] = 'Uploaded %s files'; $lang['en_US']['AssetAdmin']['UPLOADEDX'] = 'Uploaded %s files';
@ -45,6 +47,7 @@ $lang['en_US']['AssetTableField']['FILENAME'] = 'Filename';
$lang['en_US']['AssetTableField']['IMAGE'] = 'Image'; $lang['en_US']['AssetTableField']['IMAGE'] = 'Image';
$lang['en_US']['AssetTableField']['LASTEDIT'] = 'Last changed'; $lang['en_US']['AssetTableField']['LASTEDIT'] = 'Last changed';
$lang['en_US']['AssetTableField']['MAIN'] = 'Main'; $lang['en_US']['AssetTableField']['MAIN'] = 'Main';
$lang['en_US']['AssetTableField']['NODATAFOUND'] = 'No %s found';
$lang['en_US']['AssetTableField']['NOLINKS'] = 'This file hasn\'t been linked to from any pages.'; $lang['en_US']['AssetTableField']['NOLINKS'] = 'This file hasn\'t been linked to from any pages.';
$lang['en_US']['AssetTableField']['OWNER'] = 'Owner'; $lang['en_US']['AssetTableField']['OWNER'] = 'Owner';
$lang['en_US']['AssetTableField']['PAGESLINKING'] = 'The following pages link to this file:'; $lang['en_US']['AssetTableField']['PAGESLINKING'] = 'The following pages link to this file:';
@ -52,9 +55,34 @@ $lang['en_US']['AssetTableField']['SIZE'] = 'Size';
$lang['en_US']['AssetTableField']['TITLE'] = 'Title'; $lang['en_US']['AssetTableField']['TITLE'] = 'Title';
$lang['en_US']['AssetTableField']['TYPE'] = 'Type'; $lang['en_US']['AssetTableField']['TYPE'] = 'Type';
$lang['en_US']['AssetTableField']['URL'] = 'URL'; $lang['en_US']['AssetTableField']['URL'] = 'URL';
$lang['en_US']['AssetTableField.ss']['NOITEMSFOUND'] = 'No items found'; $lang['en_US']['AssetTableField.ss']['DELFILE'] = 'Delete this file';
$lang['en_US']['AssetTableField_Item.ss']['DRAGTOFOLDER'] = 'Drag to folder on left to move file'; $lang['en_US']['AssetTableField.ss']['DRAGTOFOLDER'] = 'Drag to folder on left to move file';
$lang['en_US']['CMSBatchActions']['DELETE_DRAFT_PAGES'] = 'Delete from draft'; $lang['en_US']['AssetTableField.ss']['EDIT'] = 'Edit asset';
$lang['en_US']['AssetTableField.ss']['SHOW'] = 'Show asset';
$lang['en_US']['BrokenLinksReport']['Any'] = 'Any';
$lang['en_US']['BrokenLinksReport']['BROKENLINKS'] = 'Broken links report';
$lang['en_US']['BrokenLinksReport']['CheckSite'] = 'Check site';
$lang['en_US']['BrokenLinksReport']['CheckSiteDropdownDraft'] = 'Draft Site';
$lang['en_US']['BrokenLinksReport']['CheckSiteDropdownPublished'] = 'Published Site';
$lang['en_US']['BrokenLinksReport']['ColumnDateLastModified'] = 'Date last modified';
$lang['en_US']['BrokenLinksReport']['ColumnDateLastPublished'] = 'Date last published';
$lang['en_US']['BrokenLinksReport']['ColumnProblemType'] = 'Problem type';
$lang['en_US']['BrokenLinksReport']['ColumnURL'] = 'URL';
$lang['en_US']['BrokenLinksReport']['HasBrokenFile'] = 'has broken file';
$lang['en_US']['BrokenLinksReport']['HasBrokenLink'] = 'has broken link';
$lang['en_US']['BrokenLinksReport']['HasBrokenLinkAndFile'] = 'has broken link and file';
$lang['en_US']['BrokenLinksReport']['HoverTitleEditPage'] = 'Edit page';
$lang['en_US']['BrokenLinksReport']['PageName'] = 'Page name';
$lang['en_US']['BrokenLinksReport']['ReasonDropdown'] = 'Problem to check';
$lang['en_US']['BrokenLinksReport']['ReasonDropdownBROKENFILE'] = 'Broken file';
$lang['en_US']['BrokenLinksReport']['ReasonDropdownBROKENLINK'] = 'Broken link';
$lang['en_US']['BrokenLinksReport']['ReasonDropdownRPBROKENLINK'] = 'Redirector page pointing to non-existent page';
$lang['en_US']['BrokenLinksReport']['ReasonDropdownVPBROKENLINK'] = 'Virtual page pointing to non-existent page';
$lang['en_US']['BrokenLinksReport']['RedirectorNonExistent'] = 'redirector page pointing to non-existent page';
$lang['en_US']['BrokenLinksReport']['VirtualPageNonExistent'] = 'virtual page pointing to non-existent page';
$lang['en_US']['CMSBatchActions']['DELETED_DRAFT_PAGES'] = 'Deleted %d pages from the draft site, %d failures';
$lang['en_US']['CMSBatchActions']['DELETED_PAGES'] = 'Deleted %d pages from the published site, %d failures';
$lang['en_US']['CMSBatchActions']['DELETE_DRAFT_PAGES'] = 'Delete from draft site';
$lang['en_US']['CMSBatchActions']['DELETE_PAGES'] = 'Delete from published site'; $lang['en_US']['CMSBatchActions']['DELETE_PAGES'] = 'Delete from published site';
$lang['en_US']['CMSBatchActions']['DELETED_DRAFT_PAGES'] = 'Deleted %d pages from the draft site'; $lang['en_US']['CMSBatchActions']['DELETED_DRAFT_PAGES'] = 'Deleted %d pages from the draft site';
$lang['en_US']['CMSBatchActions']['DELETE_DRAFT_PAGES'] = 'Delete from draft site'; $lang['en_US']['CMSBatchActions']['DELETE_DRAFT_PAGES'] = 'Delete from draft site';
@ -143,6 +171,10 @@ $lang['en_US']['CMSMain_left.ss']['DEL'] = 'deleted';
$lang['en_US']['CMSMain_left.ss']['DELETEDSTILLLIVE'] = 'Deleted from the draft site but still on the live site'; $lang['en_US']['CMSMain_left.ss']['DELETEDSTILLLIVE'] = 'Deleted from the draft site but still on the live site';
$lang['en_US']['CMSMain_left.ss']['EDITEDNOTPUB'] = 'Edited on the draft site and not published yet'; $lang['en_US']['CMSMain_left.ss']['EDITEDNOTPUB'] = 'Edited on the draft site and not published yet';
$lang['en_US']['CMSMain_left.ss']['EDITEDSINCE'] = 'Edited Since'; $lang['en_US']['CMSMain_left.ss']['EDITEDSINCE'] = 'Edited Since';
$lang['en_US']['CMSMain_left.ss']['ENABLEDRAGGING'] = array(
'Allow drag &amp; drop reordering',
PR_HIGH
);
$lang['en_US']['CMSMain_left.ss']['GO'] = 'Go'; $lang['en_US']['CMSMain_left.ss']['GO'] = 'Go';
$lang['en_US']['CMSMain_left.ss']['HIDDEN'] = 'hidden'; $lang['en_US']['CMSMain_left.ss']['HIDDEN'] = 'hidden';
$lang['en_US']['CMSMain_left.ss']['KEY'] = 'Key:'; $lang['en_US']['CMSMain_left.ss']['KEY'] = 'Key:';
@ -152,6 +184,8 @@ $lang['en_US']['CMSMain_left.ss']['PAGEVERSIONH'] = 'Page Version History';
$lang['en_US']['CMSMain_left.ss']['REFRESH'] = 'Refresh'; $lang['en_US']['CMSMain_left.ss']['REFRESH'] = 'Refresh';
$lang['en_US']['CMSMain_left.ss']['SEARCH'] = 'Search'; $lang['en_US']['CMSMain_left.ss']['SEARCH'] = 'Search';
$lang['en_US']['CMSMain_left.ss']['SELECTPAGESACTIONS'] = 'Select the pages that you want to change &amp; then click an action:'; $lang['en_US']['CMSMain_left.ss']['SELECTPAGESACTIONS'] = 'Select the pages that you want to change &amp; then click an action:';
$lang['en_US']['CMSMain_left.ss']['SHOWITEMS'] = 'Show:';
$lang['en_US']['CMSMain_left.ss']['SHOWONLYCHANGED'] = 'Show only changed pages';
$lang['en_US']['CMSMain_left.ss']['SHOWUNPUB'] = 'Show unpublished versions'; $lang['en_US']['CMSMain_left.ss']['SHOWUNPUB'] = 'Show unpublished versions';
$lang['en_US']['CMSMain_left.ss']['SITECONTENT TITLE'] = array( $lang['en_US']['CMSMain_left.ss']['SITECONTENT TITLE'] = array(
'Page Tree', 'Page Tree',
@ -163,9 +197,10 @@ $lang['en_US']['CMSMain_versions.ss']['NOTPUB'] = 'Not published';
$lang['en_US']['CMSMain_versions.ss']['PUBR'] = 'Publisher'; $lang['en_US']['CMSMain_versions.ss']['PUBR'] = 'Publisher';
$lang['en_US']['CMSMain_versions.ss']['UNKNOWN'] = 'Unknown'; $lang['en_US']['CMSMain_versions.ss']['UNKNOWN'] = 'Unknown';
$lang['en_US']['CMSMain_versions.ss']['WHEN'] = 'When'; $lang['en_US']['CMSMain_versions.ss']['WHEN'] = 'When';
$lang['en_US']['CMSSiteTreeFilter_ChangedPages']['Title'] = 'Changed pages'; $lang['en_US']['CMSSiteTreeFilter']['ALL'] = 'All items';
$lang['en_US']['CMSSiteTreeFilter_DeletedPages']['Title'] = 'Deleted pages'; $lang['en_US']['CMSSiteTreeFilter']['CHANGEDPAGES'] = 'Changed pages';
$lang['en_US']['CMSSiteTreeFilter_Search']['Title'] = 'All pages'; $lang['en_US']['CMSSiteTreeFilter']['DELETEDPAGES'] = 'All pages, including deleted';
$lang['en_US']['CMSSiteTreeFilter']['SEARCH'] = 'Search';
$lang['en_US']['CommentAdmin']['ACCEPT'] = 'Accept'; $lang['en_US']['CommentAdmin']['ACCEPT'] = 'Accept';
$lang['en_US']['CommentAdmin']['APPROVED'] = 'Accepted %s comments.'; $lang['en_US']['CommentAdmin']['APPROVED'] = 'Accepted %s comments.';
$lang['en_US']['CommentAdmin']['APPROVEDCOMMENTS'] = 'Approved Comments'; $lang['en_US']['CommentAdmin']['APPROVEDCOMMENTS'] = 'Approved Comments';
@ -406,7 +441,6 @@ $lang['en_US']['PageComment']['SINGULARNAME'] = array(
'Singular name of the object, used in dropdowns and to generally identify a single object in the interface' 'Singular name of the object, used in dropdowns and to generally identify a single object in the interface'
); );
$lang['en_US']['PageCommentInterface']['COMMENTERURL'] = 'Your website URL'; $lang['en_US']['PageCommentInterface']['COMMENTERURL'] = 'Your website URL';
$lang['en_US']['PageCommentInterface']['DELETEALLCOMMENTS'] = 'Delete all comments on this page';
$lang['en_US']['PageCommentInterface']['POST'] = 'Post'; $lang['en_US']['PageCommentInterface']['POST'] = 'Post';
$lang['en_US']['PageCommentInterface']['SPAMQUESTION'] = 'Spam protection question: %s'; $lang['en_US']['PageCommentInterface']['SPAMQUESTION'] = 'Spam protection question: %s';
$lang['en_US']['PageCommentInterface']['YOURCOMMENT'] = 'Comments'; $lang['en_US']['PageCommentInterface']['YOURCOMMENT'] = 'Comments';
@ -444,6 +478,7 @@ $lang['en_US']['ReportAdmin']['MENUTITLE'] = array(
100, 100,
'Menu title' 'Menu title'
); );
$lang['en_US']['ReportAdminForm']['FILTERBY'] = 'Filter by';
$lang['en_US']['ReportAdmin_SiteTree.ss']['REPORTS'] = 'Reports'; $lang['en_US']['ReportAdmin_SiteTree.ss']['REPORTS'] = 'Reports';
$lang['en_US']['ReportAdmin_left.ss']['REPORTS'] = 'Reports'; $lang['en_US']['ReportAdmin_left.ss']['REPORTS'] = 'Reports';
$lang['en_US']['ReportAdmin_right.ss']['WELCOME1'] = array( $lang['en_US']['ReportAdmin_right.ss']['WELCOME1'] = array(

View File

@ -24,7 +24,7 @@
<tr class="notfound"> <tr class="notfound">
<td></td> <td></td>
<% if Markable %><th width="18">&nbsp;</th><% end_if %> <% if Markable %><th width="18">&nbsp;</th><% end_if %>
<td colspan="$Headings.Count"><i><% _t('NOITEMSFOUND','No items found') %></i></td> <td colspan="$Headings.Count"><i><% sprintf(_t('AssetTableField.NODATAFOUND', 'No %s found'),$NamePlural) %></i></td>
<% if Can(delete) %><td width="18">&nbsp;</td><% end_if %> <% if Can(delete) %><td width="18">&nbsp;</td><% end_if %>
</tr> </tr>
<% end_if %> <% end_if %>

View File

@ -12,7 +12,7 @@
<!-- Filters --> <!-- Filters -->
<% if FieldMap.Filters.Children %> <% if FieldMap.Filters.Children %>
<div style="border-bottom: 1px #AAA solid"><b>Filter by</b></div> <div style="border-bottom: 1px #AAA solid"><b><% _t('ReportAdminForm.FILTERBY', 'Filter by') %></b></div>
<% control FieldMap.Filters %> <% control FieldMap.Filters %>
<% control Children %> <% control Children %>