Skip to content

Commit

Permalink
Translate action labels
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed May 6, 2015
1 parent 788e97a commit 7f0819e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Resources/views/Tree/tree.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,16 @@ file that was distributed with this source code.
}
},
actions: {
'edit': { url: { data: '?sonata_links.edit' }, label: 'Edit', icon: 'fa fa-pencil' },
'delete': { url: { data: '?sonata_links.delete' }, label: 'Delete', icon: 'fa fa-trash-o' }
'edit': {
url: { data: '?sonata_links.edit' },
label: {{ 'create_item'|trans({}, 'SonataDoctrinePhpcrAdminBundle') }},
icon: 'fa fa-pencil'
},
'delete': {
url: { data: '?sonata_links.delete' },
label: {{ 'delete_item'|trans({}, 'SonataDoctrinePhpcrAdminBundle') }},
icon: 'fa fa-trash-o'
}
}
});
});
Expand Down

0 comments on commit 7f0819e

Please sign in to comment.