Merge pull request #3268 from craigballinger/2.4

Convert remaining hardcoded strings in the manage notifications form.
This commit is contained in:
James Brooks 2018-10-09 11:07:33 +01:00 committed by GitHub
commit 48769d7e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 11 deletions

View File

@ -23,6 +23,8 @@ return [
'group' => [
'other' => 'Other Components',
],
'select_all' => 'Select All',
'deselect_all' => 'Deselect All',
],
// Incidents
@ -80,9 +82,12 @@ return [
'button' => 'Subscribe',
'manage_subscription' => 'Manage subscription',
'manage' => [
'no_subscriptions' => 'You\'re currently subscribed to all updates.',
'my_subscriptions' => 'You\'re currently subscribed to the following updates.',
'manage_at_link' => 'Manage your subscriptions at :link',
'notifications' => 'Notifications',
'notifications_for' => 'Manage notifications for',
'no_subscriptions' => 'You\'re currently subscribed to all updates.',
'update_subscription' => 'Update Subscription',
'my_subscriptions' => 'You\'re currently subscribed to the following updates.',
'manage_at_link' => 'Manage your subscriptions at :link',
],
'email' => [
'subscribe' => 'Subscribe to email updates.',

View File

@ -23,6 +23,8 @@ return [
'group' => [
'other' => 'Other Components',
],
'select_all' => 'Select All',
'deselect_all' => 'Deselect All',
],
// Incidents
@ -80,9 +82,12 @@ return [
'button' => 'Subscribe',
'manage_subscription' => 'Manage subscription',
'manage' => [
'no_subscriptions' => 'You\'re currently subscribed to all updates.',
'my_subscriptions' => 'You\'re currently subscribed to the following updates.',
'manage_at_link' => 'Manage your subscriptions at :link',
'notifications' => 'Notifications',
'notifications_for' => 'Manage notifications for',
'no_subscriptions' => 'You\'re currently subscribed to all updates.',
'update_subscription' => 'Update Subscription',
'my_subscriptions' => 'You\'re currently subscribed to the following updates.',
'manage_at_link' => 'Manage your subscriptions at :link',
],
'email' => [
'subscribe' => 'Subscribe to email updates.',

View File

@ -13,8 +13,8 @@
<div class="row">
<div class="col-xs-12 col-lg-offset-2 col-lg-8">
<div class="text-center margin-bottom">
<h1>{{ $appName }} Notifications</h1>
<p>Manage notifications for <strong>{{ $subscriber->email }}</strong></p>
<h1>{{ $appName }} {{ trans('cachet.subscriber.manage.notifications') }}</h1>
<p>{{ trans('cachet.subscriber.manage.notifications_for') }} <strong>{{ $subscriber->email }}</strong></p>
</div>
<form action="{{ cachet_route('subscribe.manage', [$subscriber->verify_code], 'post') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
@ -26,9 +26,9 @@
<i class="{{ $componentGroup->collapse_class_with_subscriptions($subscriptions) }} group-toggle"></i>
<strong>{{ $componentGroup->name }}</strong>
<div class="pull-right text-muted small">
<a href="javascript: void(0);" class="select-group" id="select-all-{{$componentGroup->id}}">Select All</a>
<a href="javascript: void(0);" class="select-group" id="select-all-{{$componentGroup->id}}">{{ trans('cachet.components.select_all') }}</a>
&nbsp;|&nbsp;
<a href="javascript: void(0);" class="deselect-group" id="deselect-all-{{$componentGroup->id}}">Deselect All</a>
<a href="javascript: void(0);" class="deselect-group" id="deselect-all-{{$componentGroup->id}}">{{ trans('cachet.components.deselect_all') }}</a>
</div>
</div>
@foreach($componentGroup->enabled_components()->orderBy('order')->get() as $component)
@ -53,7 +53,7 @@
@endif
<div class="text-right">
<button type="submit" class="btn btn-success">Update Subscription</button>
<button type="submit" class="btn btn-success">{{ trans('cachet.subscriber.manage.update_subscription') }}</button>
</div>
</form>
</div>