kitchen-site icon indicating copy to clipboard operation
kitchen-site copied to clipboard

Text in dataview delete buttons

Open xauxatz opened this issue 9 years ago • 2 comments

Hi - I'm pretty sure there's no way to override the text that is displayed in the delete button associated with a dataview: "Delete? Are you sure?" Any suggestions for a workaround?

xauxatz avatar Apr 21 '16 12:04 xauxatz

Not a really nice solution, but you could overwrite the components in your meteor kitchen install home. But if you update or reinstall meteorkitchen your changes may be lost: look at for example: templates/blaze/ui/bootstrap3/components/data_view_table_items.js after regeneration your app, the changes are visible.

Second chance - not realy beautifuler - generate your app, copy the corresponding js. file (like myapp/client/views/admin/organisations.js), edit it, and use the "copy_files" directive from meteor-kitchen to overwrite the generated file with your version.

Third - write only the event for the delete-button in a new js file, copy this to the destination with "copy_files" with a different filename wich is loaded after the original one and remove the first (autogenerated) event handler

adnoh avatar Apr 24 '16 22:04 adnoh

@xauxatz I started adding i18n support, that will enable you to change every string that appears in the UI. Until then, see @adnoh 's solution

perak avatar Apr 24 '16 22:04 perak