diff --git a/core/control/ContentController.php b/core/control/ContentController.php index ac3d181c8..9f80cf1ca 100644 --- a/core/control/ContentController.php +++ b/core/control/ContentController.php @@ -224,7 +224,7 @@ JS if($this->dataRecord){ $thisPage = $this->dataRecord->Link(); $cmsLink = 'admin/show/' . $this->dataRecord->ID; - $cmsLink = "CMS"; + $cmsLink = "". _t('ContentController.CMS', 'CMS') .""; } else { /** * HGS: If this variable is missing a notice is raised. Subclasses of ContentController @@ -241,30 +241,30 @@ JS $dateObj = Object::create('Datetime', $date, null); // $dateObj->setVal($date); - $archiveLink = "Archived Site"; - $liveLink = "Published Site"; - $stageLink = "Draft Site"; - $message = "
Archived site from
" . $dateObj->Nice() . "
"; + $archiveLink = "". _t('ContentController.ARCHIVEDSITE', 'Archived Site') .""; + $liveLink = "". _t('ContentController.PUBLISHEDSITE', 'Published Site') .""; + $stageLink = "". _t('ContentController.DRAFTSITE', 'Draft Site') .""; + $message = "
". _t('ContentController.ARCHIVEDSITEFROM', 'Archived site from') ."
" . $dateObj->Nice() . "
"; } else if(Versioned::current_stage() == 'Stage') { - $stageLink = "Draft Site"; - $liveLink = "Published Site"; - $message = "
DRAFT SITE
"; + $stageLink = "". _t('ContentController.DRAFTSITE', 'Draft Site') .""; + $liveLink = "". _t('ContentController.PUBLISHEDSITE', 'Published Site') .""; + $message = "
". _t('ContentController.DRAFTSITE', 'Draft Site') ."
"; } else { - $liveLink = "Published Site"; - $stageLink = "Draft Site"; - $message = "
PUBLISHED SITE
"; + $liveLink = "". _t('ContentController.PUBLISHEDSITE', 'Published Site') .""; + $stageLink = "". _t('ContentController.DRAFTSITE', 'Draft Site') .""; + $message = "
". _t('ContentController.PUBLISHEDSITE', 'Published Site') ."
"; } if($member) { $firstname = Convert::raw2xml($member->FirstName); $surname = Convert::raw2xml($member->Surame); - $logInMessage = "Logged in as {$firstname} {$surname} - log out"; + $logInMessage = _t('ContentController.LOGGEDINAS', 'Logged in as') ." {$firstname} {$surname} - ". _t('ContentController.LOGOUT', 'Log out'). ""; } else { - $logInMessage = "Not logged in - log in"; + $logInMessage = _t('ContentController.NOTLOGGEDIN', 'Not logged in') ." - ". _t('ContentController.LOGIN', 'Login') .""; } - + $viewPageIn = _t('ContentController.VIEWPAGEIN', 'View Page in:'); /** * HGS: cmsLink is now only set if there is a dataRecord. You can't view the page in the * CMS if there is no dataRecord @@ -277,7 +277,7 @@ JS
-
View page in:
+
$viewPageIn :
$cmsLink $stageLink
@@ -295,7 +295,7 @@ HTML; Requirements::css(SAPPHIRE_DIR . '/css/SilverStripeNavigator.css'); $dateObj = Object::create('Datetime', $date, null); // $dateObj->setVal($date); - return "
Archived site from
" . $dateObj->Nice() . "
"; + return "
". _t('ContentController.ARCHIVEDSITEFROM') ."
" . $dateObj->Nice() . "
"; } } }