diff options
Diffstat (limited to 'ui/jsLoader.php')
-rw-r--r-- | ui/jsLoader.php | 71 |
1 files changed, 18 insertions, 53 deletions
diff --git a/ui/jsLoader.php b/ui/jsLoader.php index 2adaa6a783b..49d5c21e422 100644 --- a/ui/jsLoader.php +++ b/ui/jsLoader.php @@ -36,20 +36,10 @@ $available_js = [ 'class.dashboard.js' => '', 'class.dashboard.page.js' => '', 'class.dashboard.widget.placeholder.js' => '', - 'class.widget.js' => 'widgets/', - 'class.widget.iterator.js' => 'widgets/', - 'class.widget.clock.js' => 'widgets/', - 'class.widget.geomap.js' => 'widgets/', - 'class.widget.graph.js' => 'widgets/', - 'class.widget.graph-prototype.js' => 'widgets/', - 'class.widget.item.js' => 'widgets/', - 'class.widget.map.js' => 'widgets/', - 'class.widget.navtree.js' => 'widgets/', - 'class.widget.paste-placeholder.js' => 'widgets/', - 'class.widget.problems.js' => 'widgets/', - 'class.widget.problemsbysv.js' => 'widgets/', - 'class.widget.svggraph.js' => 'widgets/', - 'class.widget.trigerover.js' => 'widgets/', + 'class.widget.js' => '', + 'class.widget.inaccessible.js' => '', + 'class.widget.iterator.js' => '', + 'class.widget.paste-placeholder.js' => '', 'hostinterfacemanager.js' => '', 'hostmacrosmanager.js' => '', 'menupopup.js' => '', @@ -136,6 +126,8 @@ $translate_strings = [ 'Actions' => _('Actions'), 'Cannot add dashboard page: maximum number of %1$d dashboard pages has been added.' => _('Cannot add dashboard page: maximum number of %1$d dashboard pages has been added.'), 'Cannot add widget: not enough free space on the dashboard.' => _('Cannot add widget: not enough free space on the dashboard.'), + 'Cannot add widget: no widgets available.' => _('Cannot add widget: no widgets available.'), + 'Cannot paste inaccessible widget.' => _('Cannot paste inaccessible widget.'), 'Copy' => _('Copy'), 'Delete' => _('Delete'), 'Failed to paste dashboard page.' => _('Failed to paste dashboard page.'), @@ -143,12 +135,17 @@ $translate_strings = [ 'Failed to update dashboard page properties.' => _('Failed to update dashboard page properties.'), 'Failed to update dashboard properties.' => _('Failed to update dashboard properties.'), 'Failed to update widget properties.' => _('Failed to update widget properties.'), + 'Inaccessible widgets were not copied.' => _('Inaccessible widgets were not copied.'), + 'Inaccessible widgets were not pasted.' => _('Inaccessible widgets were not pasted.'), 'Page %1$d' => _('Page %1$d'), 'Paste widget' => _('Paste widget'), 'Properties' => _('Properties'), 'Start slideshow' => _('Start slideshow'), 'Stop slideshow' => _('Stop slideshow') ], + 'class.dashboard.page.js' => [ + 'Inaccessible widget' => _('Inaccessible widget') + ], 'class.dashboard.widget.placeholder.js' => [ 'Add a new widget' => _('Add a new widget'), 'Click and drag to desired size.' => _('Click and drag to desired size.'), @@ -172,26 +169,11 @@ $translate_strings = [ 'Paste' => _s('Paste'), 'Refresh interval' => _s('Refresh interval') ], - 'class.widget.geomap.js' => [ - 'Actions' => _('Actions'), - 'Set this view as default' => _('Set this view as default'), - 'Reset to initial view' => _('Reset to initial view'), - 'No problems' => _('No problems'), - 'Not classified' => _('Not classified'), - 'Information' => _('Information'), - 'Warning' => _('Warning'), - 'Average' => _('Average'), - 'High' => _('High'), - 'Disaster' => _('Disaster'), - 'Host' => _('Host'), - 'D' => _x('D', 'abbreviation of severity level'), - 'H' => _x('H', 'abbreviation of severity level'), - 'A' => _x('A', 'abbreviation of severity level'), - 'W' => _x('W', 'abbreviation of severity level'), - 'I' => _x('I', 'abbreviation of severity level'), - 'N' => _x('N', 'abbreviation of severity level'), - 'Navigate to default view' => _('Navigate to default view'), - 'Navigate to initial view' => _('Navigate to initial view') + 'class.widget.inaccessible.js' => [ + 'Actions' => _s('Actions'), + 'Copy' => _s('Copy'), + 'Inaccessible widget' => _('Inaccessible widget'), + 'Refresh interval' => _s('Refresh interval') ], 'class.widget.iterator.js' => [ 'Next page' => _s('Next page'), @@ -199,24 +181,6 @@ $translate_strings = [ 'Widget is too small for the specified number of columns and rows.' => _s('Widget is too small for the specified number of columns and rows.') ], - 'class.widget.graph.js' => [ - 'Actions' => _s('Actions'), - 'Download image' => _s('Download image') - ], - 'class.widget.navtree.js' => [ - 'Add' => _s('Add'), - 'Add child element' => _s('Add child element'), - 'Add multiple maps' => _s('Add multiple maps'), - 'Apply' => _s('Apply'), - 'Cancel' => _s('Cancel'), - 'Edit' => _s('Edit'), - 'Edit tree element' => _s('Edit tree element'), - 'Remove' => _s('Remove') - ], - 'class.widget.svggraph.js' => [ - 'Actions' => _s('Actions'), - 'Download image' => _s('Download image') - ], 'functions.js' => [ 'Cancel' => _('Cancel'), 'S_CLOSE' => _('Close'), @@ -420,7 +384,8 @@ $translate_strings = [ ], 'common.js' => [ 'Cancel' => _('Cancel'), - 'Ok' => _('Ok') + 'Ok' => _('Ok'), + 'Unexpected server error.' => _('Unexpected server error.') ], 'component.z-select.js' => [ 'All' => _('All') |