internationalising english labels in session time ACP block, #6883

v1.18.x
Julian Lam 6 years ago
parent 58b088c054
commit 5ccdc1c017

@ -27,6 +27,10 @@
"lockout-duration": "Account Lockout Duration (minutes)",
"login-days": "Days to remember user login sessions",
"password-expiry-days": "Force password reset after a set number of days",
"session-time": "Session Time",
"session-time-days": "Days",
"session-time-seconds": "Seconds",
"session-time-help": "These values are used to govern how long a user stays logged in when they check &quot;Remember Me&quot; on login. Note that only one of these values will be used. If there is no <i>seconds</i> value we fall back to <i>days</i>. If there is no <i>days</i> value we default to <i>14 days</i>.",
"online-cutoff": "Minutes after user is considered inactive",
"online-cutoff-help": "If user performs no actions for this duration, they are considered inactive and they do not receive realtime updates.",
"registration": "User Registration",

@ -133,27 +133,26 @@
<div class="row">
<div class="col-sm-2 col-xs-12 settings-header">
Session time
[[admin/settings/user:session-time]]
</div>
<div class="col-sm-10 col-xs-12">
<form>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label>Days</label>
<input type="text" class="form-control" data-field="loginDays" placeholder="Days" />
<label>[[admin/settings/user:session-time-days]]</label>
<input type="text" class="form-control" data-field="loginDays" placeholder="[[admin/settings/user:session-time-days]]" />
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label>Seconds</label>
<input type="text" class="form-control" data-field="loginSeconds" placeholder="Seconds" />
<label>[[admin/settings/user:session-time-seconds]]</label>
<input type="text" class="form-control" data-field="loginSeconds" placeholder="[[admin/settings/user:session-time-seconds]]" />
</div>
</div>
<div class="col-xs-12">
<p class="help-block">
Note that only one of these values will be used. If there is no <i>seconds</i> value we fall back to <i>days</i>. If
there is no <i>days</i> value we default to <i>14 days</i>.
[[admin/settings/user:session-time-help]]
</p>
</div>
</div>

Loading…
Cancel
Save