Skip to content

Commit f665753

Browse files
authored
Merge pull request #16766 from CloCkWeRX/fix-placeholder-translations
Fixed: Admin > General Settings - Some placeholders not translatable
2 parents f67548c + 82d93b6 commit f665753

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

resources/lang/en-US/admin/settings/general.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
'dashboard_message_help' => 'This text will appear on the dashboard for anyone with permission to view the dashboard.',
5151
'default_currency' => 'Default Currency',
5252
'default_eula_text' => 'Default EULA',
53+
'default_eula_text_placeholder' => 'Add your default EULA text',
5354
'default_language' => 'Default Language',
5455
'default_eula_help_text' => 'You can also associate custom EULAs to specific asset categories.',
5556
'acceptance_note' => 'Add a note for your decision (Optional)',

resources/views/settings/general.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
<x-input.textarea
229229
name="default_eula_text"
230230
:value="old('default_eula_text', $setting->default_eula_text)"
231-
placeholder="Add your default EULA text"
231+
placeholder="{{ trans('admin/settings/general.default_eula_text_placeholder') }}"
232232
/>
233233
{!! $errors->first('default_eula_text', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
234234
<p class="help-block">{{ trans('admin/settings/general.default_eula_help_text') }}</p>
@@ -304,7 +304,7 @@
304304
<div class="col-md-9">
305305
@if (config('app.lock_passwords'))
306306

307-
<textarea class="form-control disabled" name="login_note" placeholder="If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you." rows="2" aria-label="dashboard_message" readonly>{{ old('dashboard_message', $setting->login_note) }}</textarea>
307+
<textarea class="form-control disabled" name="login_note" placeholder="{{ trans('admin/settings/general.login_note_placeholder') }}" rows="2" aria-label="dashboard_message" readonly>{{ old('dashboard_message', $setting->login_note) }}</textarea>
308308
{!! $errors->first('dashboard_message', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
309309
<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
310310
@else

0 commit comments

Comments
 (0)