Skip to content

Commit

Permalink
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/model/BrokenExternalLink.php
Original file line number Diff line number Diff line change
@@ -55,14 +55,14 @@ public function getHTTPCodeDescription() {
$code = $this->HTTPCode;
if(empty($code)) {
// Assume that $code = 0 means there was no response
$description = _t(__CLASS__.'.NOTAVAILABLE', 'Server Not Available');
$description = _t('BrokenExternalLink.NOTAVAILABLE', 'Server Not Available');
} elseif(
($descriptions = Config::inst()->get('SS_HTTPResponse', 'status_codes'))
&& isset($descriptions[$code])
) {
$description = $descriptions[$code];
} else {
$description = _t(__CLASS__.'.UNKNOWNRESPONSE', 'Unknown Response Code');
$description = _t('BrokenExternalLink.UNKNOWNRESPONSE', 'Unknown Response Code');
}
return sprintf("%d (%s)", $code, $description);
}
Empty file added lang/_manifest_exclude
Empty file.
17 changes: 17 additions & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
en:
BrokenExternalLink:
NOTAVAILABLE: 'Server Not Available'
PLURALNAME: 'Broken External Links'
SINGULARNAME: 'Broken External Link'
UNKNOWNRESPONSE: 'Unknown Response Code'
BrokenExternalPageTrack:
PLURALNAME: 'Broken External Page Tracks'
SINGULARNAME: 'Broken External Page Track'
BrokenExternalPageTrackStatus:
PLURALNAME: 'Broken External Page Track Statuss'
SINGULARNAME: 'Broken External Page Track Status'
CheckExternalLiksJob:
TITLE: 'Checking for external broken links'
ExternalBrokenLinksReport:
EXTERNALBROKENLINKS: 'External broken links report'
RUNREPORT: 'Create new report'

0 comments on commit a35241c

Please sign in to comment.