mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
Update translations
This commit is contained in:
parent
f2b4c7b7a2
commit
a35241cd10
@ -55,14 +55,14 @@ class BrokenExternalLink extends DataObject {
|
|||||||
$code = $this->HTTPCode;
|
$code = $this->HTTPCode;
|
||||||
if(empty($code)) {
|
if(empty($code)) {
|
||||||
// Assume that $code = 0 means there was no response
|
// Assume that $code = 0 means there was no response
|
||||||
$description = _t(__CLASS__.'.NOTAVAILABLE', 'Server Not Available');
|
$description = _t('BrokenExternalLink.NOTAVAILABLE', 'Server Not Available');
|
||||||
} elseif(
|
} elseif(
|
||||||
($descriptions = Config::inst()->get('SS_HTTPResponse', 'status_codes'))
|
($descriptions = Config::inst()->get('SS_HTTPResponse', 'status_codes'))
|
||||||
&& isset($descriptions[$code])
|
&& isset($descriptions[$code])
|
||||||
) {
|
) {
|
||||||
$description = $descriptions[$code];
|
$description = $descriptions[$code];
|
||||||
} else {
|
} else {
|
||||||
$description = _t(__CLASS__.'.UNKNOWNRESPONSE', 'Unknown Response Code');
|
$description = _t('BrokenExternalLink.UNKNOWNRESPONSE', 'Unknown Response Code');
|
||||||
}
|
}
|
||||||
return sprintf("%d (%s)", $code, $description);
|
return sprintf("%d (%s)", $code, $description);
|
||||||
}
|
}
|
||||||
|
0
lang/_manifest_exclude
Normal file
0
lang/_manifest_exclude
Normal file
17
lang/en.yml
Normal file
17
lang/en.yml
Normal file
@ -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'
|
Loading…
Reference in New Issue
Block a user