Update translations

This commit is contained in:
Damian Mooyman 2014-11-19 09:54:06 +13:00
parent f2b4c7b7a2
commit a35241cd10
3 changed files with 19 additions and 2 deletions

View File

@ -55,14 +55,14 @@ class BrokenExternalLink extends DataObject {
$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);
}

0
lang/_manifest_exclude Normal file
View File

17
lang/en.yml Normal file
View 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'