From a35241cd105661f2ad52d079528082d632948633 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Wed, 19 Nov 2014 09:54:06 +1300 Subject: [PATCH] Update translations --- code/model/BrokenExternalLink.php | 4 ++-- lang/_manifest_exclude | 0 lang/en.yml | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 lang/_manifest_exclude create mode 100644 lang/en.yml diff --git a/code/model/BrokenExternalLink.php b/code/model/BrokenExternalLink.php index 78ed49c..18c484f 100644 --- a/code/model/BrokenExternalLink.php +++ b/code/model/BrokenExternalLink.php @@ -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); } diff --git a/lang/_manifest_exclude b/lang/_manifest_exclude new file mode 100644 index 0000000..e69de29 diff --git a/lang/en.yml b/lang/en.yml new file mode 100644 index 0000000..27c4b0c --- /dev/null +++ b/lang/en.yml @@ -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'