diff --git a/code/cms/DMSDocumentAdmin.php b/code/cms/DMSDocumentAdmin.php index 5322aa6..5bbb353 100644 --- a/code/cms/DMSDocumentAdmin.php +++ b/code/cms/DMSDocumentAdmin.php @@ -17,8 +17,8 @@ class DMSDocumentAdmin extends ModelAdmin { parent::init(); Requirements::javascript(DMS_DIR . '/javascript/DMSGridField.js'); - Requirements::add_i18n_javascript(DMS_DIR . '/javascript/lang'); } + /** * Remove the default "add" button and replace it with a customised version for DMS * diff --git a/javascript/lang/en.js b/javascript/lang/en.js deleted file mode 100644 index 5f86afa..0000000 --- a/javascript/lang/en.js +++ /dev/null @@ -1,11 +0,0 @@ -// This file was generated by silverstripe/cow from javascript/lang/src/en.js. -// See https://github.com/tractorcow/cow for details -if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') { - if (typeof(console) !== 'undefined') { // eslint-disable-line no-console - console.error('Class ss.i18n not defined'); // eslint-disable-line no-console - } -} else { - ss.i18n.addDictionary('en', { - "TABLEFIELD.DELETECONFIRMMESSAGE": "Are you sure you want to delete this record? The documents will remain on the system.", -}); -}