Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
Added a few translation strings
Browse files Browse the repository at this point in the history
  • Loading branch information
joakimbo committed Mar 9, 2018
1 parent 5fe60a3 commit a230555
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion controllers/permissions/_list_toolbar.htm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div data-control="toolbar">
<a href="<?= Backend::url('jbonnydev/userpermissions/permissions/create') ?>"
class="btn btn-primary oc-icon-plus">New Permission</a>
class="btn btn-primary oc-icon-plus"><?= e(trans('jbonnydev.userpermissions::lang.permissions.create_permission')) ?></a>
</div>
6 changes: 3 additions & 3 deletions controllers/permissions/form_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# Form Behavior Config
# ===================================

name: Permission
name: jbonnydev.userpermissions::lang.permissions.menu_label
form: $/jbonnydev/userpermissions/models/permission/fields.yaml
modelClass: JBonnyDev\UserPermissions\Models\Permission

create:
title: New Permission
title: jbonnydev.userpermissions::lang.permissions.create_permission
redirect: jbonnydev/userpermissions/permissions/update/:id
redirectClose: jbonnydev/userpermissions/permissions

update:
title: Edit Permission
title: jbonnydev.userpermissions::lang.permissions.update_permission
redirect: jbonnydev/userpermissions/permissions/update/:id
redirectClose: jbonnydev/userpermissions/permissions

Expand Down
2 changes: 1 addition & 1 deletion controllers/permissions/update.htm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class="oc-icon-trash-o btn-icon danger pull-right"
data-request="onDelete"
data-load-indicator="Deleting Permission..."
data-request-confirm="Do you really want to delete this permission?">
data-request-confirm="<?= e(trans('jbonnydev.userpermissions::lang.permissions.delete_confirm')) ?>">
</button>
<span class="btn-text">
or <a href="<?= Backend::url('jbonnydev/userpermissions/permissions') ?>">Cancel</a>
Expand Down
4 changes: 3 additions & 1 deletion lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
'permissions' => [
'menu_label' => 'Permissions',
'menu_desc' => 'Choose the permissions',
'create_permission' => 'Create Permission',
'create_permission' => 'New Permission',
'update_permission' => 'Update Permission',
'delete_permission' => 'Delete Permission',
'delete_confirm' => 'Do you really want to delete this permission?',
],
'permission' => [
'model_id' => 'ID',
Expand Down

0 comments on commit a230555

Please sign in to comment.