Skip to content

Commit 71b2cd1

Browse files
committed
Add translation key for No group
1 parent 3467690 commit 71b2cd1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/sprinkles/admin/locale/en_US/messages.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
'MANAGE' => 'Manage group',
6060
'NAME' => 'Group name',
6161
'NAME_EXPLAIN' => 'Please enter a name for the group',
62+
'NONE' => 'No group',
6263
'NOT_EMPTY' => "You can't do that because there are still users associated with the group <strong>{{name}}</strong>.",
6364
'PAGE_DESCRIPTION' => 'A listing of the groups for your site. Provides management tools for editing and deleting groups.',
6465
'SUMMARY' => 'Group Summary',

app/sprinkles/admin/templates/forms/user.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
<input type="text" class="form-control" name="theme" value="{{user.group.name}}" disabled>
2626
{% else %}
2727
<select id="input-group" class="form-control js-select2" name="group_id">
28-
<option value="0">No group</option>
28+
<option value="0">{{translate('GROUP.NONE')}}</option>
29+
<option disabled="disabled">-----</option>
2930
{% for group in groups %}
3031
<option value="{{group.id}}" {% if (group.id == user.group_id) %}selected{% endif %}>{{group.name}}</option>
3132
{% endfor %}

0 commit comments

Comments
 (0)