mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure size stats are prettified on the statistics tab when the UI language != English. Fixes #3096
This commit is contained in:
@@ -628,7 +628,7 @@ define('pgadmin.node.exclusion_constraint', [
|
||||
canDropCascade: true,
|
||||
hasDepends: true,
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Index size'],
|
||||
statsPrettifyFields: [gettext('Index size')],
|
||||
Init: function() {
|
||||
/* Avoid multiple registration of menus */
|
||||
if (this.initialized)
|
||||
|
||||
@@ -25,7 +25,7 @@ define('pgadmin.node.primary_key', [
|
||||
hasSQL: true,
|
||||
hasDepends: true,
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Index size'],
|
||||
statsPrettifyFields: [gettext('Index size')],
|
||||
parent_type: ['table','partition'],
|
||||
canDrop: true,
|
||||
canDropCascade: true,
|
||||
|
||||
@@ -25,7 +25,7 @@ define('pgadmin.node.unique_constraint', [
|
||||
hasSQL: true,
|
||||
hasDepends: true,
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Index size'],
|
||||
statsPrettifyFields: [gettext('Index size')],
|
||||
parent_type: ['table','partition'],
|
||||
canDrop: true,
|
||||
canDropCascade: true,
|
||||
|
||||
@@ -29,7 +29,7 @@ define('pgadmin.node.index', [
|
||||
dialogHelp: url_for('help.static', {'filename': 'index_dialog.html'}),
|
||||
columns: ['name', 'description'],
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Size', 'Index size'],
|
||||
statsPrettifyFields: [gettext('Size'), gettext('Index size')],
|
||||
canDrop: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
||||
canDropCascade: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
||||
});
|
||||
@@ -232,7 +232,7 @@ define('pgadmin.node.index', [
|
||||
hasSQL: true,
|
||||
hasDepends: true,
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Size', 'Index size'],
|
||||
statsPrettifyFields: [gettext('Size'), gettext('Index size')],
|
||||
Init: function() {
|
||||
/* Avoid mulitple registration of menus */
|
||||
if (this.initialized)
|
||||
|
||||
@@ -42,9 +42,9 @@ function(
|
||||
hasSQL: true,
|
||||
hasDepends: true,
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Size', 'Indexes size', 'Table size',
|
||||
'Toast table size', 'Tuple length',
|
||||
'Dead tuple length', 'Free space'],
|
||||
statsPrettifyFields: [gettext('Size'), gettext('Indexes size'), gettext('Table size'),
|
||||
gettext('Toast table size'), gettext('Tuple length'),
|
||||
gettext('Dead tuple length'), gettext('Free space')],
|
||||
sqlAlterHelp: 'sql-altertable.html',
|
||||
sqlCreateHelp: 'sql-createtable.html',
|
||||
dialogHelp: url_for('help.static', {'filename': 'table_dialog.html'}),
|
||||
|
||||
@@ -30,9 +30,9 @@ define('pgadmin.node.table', [
|
||||
type: 'coll-table',
|
||||
columns: ['name', 'relowner', 'is_partitioned', 'description'],
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Size', 'Indexes size', 'Table size',
|
||||
'Toast table size', 'Tuple length',
|
||||
'Dead tuple length', 'Free space'],
|
||||
statsPrettifyFields: [gettext('Size'), gettext('Indexes size'), gettext('Table size'),
|
||||
gettext('Toast table size'), gettext('Tuple length'),
|
||||
gettext('Dead tuple length'), gettext('Free space')],
|
||||
canDrop: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
||||
canDropCascade: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
||||
});
|
||||
@@ -46,9 +46,9 @@ define('pgadmin.node.table', [
|
||||
hasSQL: true,
|
||||
hasDepends: true,
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Size', 'Indexes size', 'Table size',
|
||||
'Toast table size', 'Tuple length',
|
||||
'Dead tuple length', 'Free space'],
|
||||
statsPrettifyFields: [gettext('Size'), gettext('Indexes size'), gettext('Table size'),
|
||||
gettext('Toast table size'), gettext('Tuple length'),
|
||||
gettext('Dead tuple length'), gettext('Free space')],
|
||||
sqlAlterHelp: 'sql-altertable.html',
|
||||
sqlCreateHelp: 'sql-createtable.html',
|
||||
dialogHelp: url_for('help.static', {'filename': 'table_dialog.html'}),
|
||||
|
||||
@@ -24,7 +24,7 @@ define('pgadmin.node.database', [
|
||||
hasStatistics: true,
|
||||
canDrop: true,
|
||||
canDropCascade: false,
|
||||
statsPrettifyFields: ['Size', 'Size of temporary files'],
|
||||
statsPrettifyFields: [gettext('Size'), gettext('Size of temporary files')],
|
||||
});
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ define('pgadmin.node.database', [
|
||||
hasSQL: true,
|
||||
hasDepends: true,
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Size', 'Size of temporary files'],
|
||||
statsPrettifyFields: [gettext('Size'), gettext('Size of temporary files')],
|
||||
canDrop: function(node) {
|
||||
return node.canDrop;
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@ define('pgadmin.node.tablespace', [
|
||||
type: 'coll-tablespace',
|
||||
columns: ['name', 'spcuser', 'description'],
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Size'],
|
||||
statsPrettifyFields: [gettext('Size')],
|
||||
canDrop: true,
|
||||
canDropCascade: false,
|
||||
});
|
||||
@@ -42,7 +42,7 @@ define('pgadmin.node.tablespace', [
|
||||
canDrop: true,
|
||||
hasDepends: true,
|
||||
hasStatistics: true,
|
||||
statsPrettifyFields: ['Size'],
|
||||
statsPrettifyFields: [gettext('Size')],
|
||||
Init: function() {
|
||||
/* Avoid mulitple registration of menus */
|
||||
if (this.initialized)
|
||||
|
||||
Reference in New Issue
Block a user