Skip to content

Commit

Permalink
Merge pull request cachethq#3268 from craigballinger/2.4
Browse files Browse the repository at this point in the history
Convert remaining hardcoded strings in the manage notifications form.
  • Loading branch information
jbrooksuk committed Oct 9, 2018
2 parents de172e5 + 5886122 commit 48769d7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
11 changes: 8 additions & 3 deletions resources/lang/en-US/cachet.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
'group' => [
'other' => 'Other Components',
],
'select_all' => 'Select All',
'deselect_all' => 'Deselect All',
],

// Incidents
Expand Down Expand Up @@ -80,9 +82,12 @@
'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.',
Expand Down
11 changes: 8 additions & 3 deletions resources/lang/en/cachet.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
'group' => [
'other' => 'Other Components',
],
'select_all' => 'Select All',
'deselect_all' => 'Deselect All',
],

// Incidents
Expand Down Expand Up @@ -80,9 +82,12 @@
'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.',
Expand Down
10 changes: 5 additions & 5 deletions resources/views/subscribe/manage.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() }}">
Expand All @@ -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)
Expand All @@ -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>
Expand Down

0 comments on commit 48769d7

Please sign in to comment.