update 14 July 2016

This commit is contained in:
Kiefer Conrad
2016-07-14 20:58:12 +02:00
parent 3018dff1ff
commit 49b65729db
44 changed files with 199 additions and 199 deletions

View File

@@ -161,21 +161,21 @@ class Pages {
private function getConfirmTitle() {
if($this->isPreview()) {
$title = sprintf(
__("You've subscribed to: %s"),
__("You have subscribed to: %s"),
'demo 1, demo 2'
);
} else if($this->subscriber === false) {
$title = __('Your confirmation link expired, please subscribe again.');
$title = __('Your confirmation link expired, please subscribe again');
} else {
$segment_names = array_map(function($segment) {
return $segment->name;
}, $this->subscriber->segments()->findMany());
if(empty($segment_names)) {
$title = __("You're now subscribed!");
$title = __("You are now subscribed!");
} else {
$title = sprintf(
__("You've subscribed to: %s"),
__("You have subscribed to: %s"),
join(', ', $segment_names)
);
}