Commit 05ccafbd authored by Robert Kasza's avatar Robert Kasza Committed by Róbert Kasza
Browse files

Issue #3001173 by seirerman, JFeltkamp, kaszarobert: Localization support

parent af0920e4
Loading
Loading
Loading
Loading
+38 −1
Original line number Diff line number Diff line
@@ -18,7 +18,44 @@
                    var table = new Handsontable(this, {
                        data: data,
                        stretchH: 'all',
                        contextMenu: ['row_above', 'row_below', "---------", 'col_left', 'col_right', "---------", 'remove_row', 'remove_col']
                        contextMenu: {
                          items: {
                            'row_above': {
                              "name": Drupal.t('Insert row above'),
                            },
                            'row_below': {
                              "name": Drupal.t('Insert row below'),
                            },
                            'hsep1': "---------",
                            'col_left': {
                              "name": Drupal.t('Insert column on the left'),
                            },
                            'col_right': {
                              "name": Drupal.t('Insert column on the right'),
                            },
                            'hsep2': '---------',
                            'remove_row': {
                              "name": Drupal.t('Remove row'),
                            },
                            'remove_col': {
                              "name": Drupal.t('Remove column'),
                            },
                            'hsep3': '---------',
                            'undo': {
                              "name": Drupal.t('Undo'),
                            },
                            'redo': {
                              "name": Drupal.t('Redo'),
                            },
                            'hsep4': "---------",
                            'cut': {
                              "name": Drupal.t('Cut'),
                            },
                            'copy': {
                              "name": Drupal.t('Copy'),
                            },
                          }
                        },
                    });
                    table.updateSettings({
                        afterChange: function (e) {
+37 −11
Original line number Diff line number Diff line
@@ -42,16 +42,42 @@
                        stretchH: 'all',
                        contextMenu: {
                          items: {
                                'row_above': {},
                                'row_below': {},
                            'row_above': {
                              "name": Drupal.t('Insert row above'),
                            },
                            'row_below': {
                              "name": Drupal.t('Insert row below'),
                            },
                            'hsep1': "---------",
                                'col_left': {},
                                'col_right': {},
                            'col_left': {
                              "name": Drupal.t('Insert column on the left'),
                            },
                            'col_right': {
                              "name": Drupal.t('Insert column on the right'),
                            },
                            'hsep2': '---------',
                                'remove_row': {},
                                'remove_col': {}
                            }
                            'remove_row': {
                              "name": Drupal.t('Remove row'),
                            },
                            'remove_col': {
                              "name": Drupal.t('Remove column'),
                            },
                            'hsep3': '---------',
                            'undo': {
                              "name": Drupal.t('Undo'),
                            },
                            'redo': {
                              "name": Drupal.t('Redo'),
                            },
                            'hsep4': "---------",
                            'cut': {
                              "name": Drupal.t('Cut'),
                            },
                            'copy': {
                              "name": Drupal.t('Copy'),
                            },
                          }
                        },
                    });

                    table.updateSettings({