Ensure size stats are prettified on the statistics tab when the UI language != English. Fixes #3096

This commit is contained in:
Dave Page 2019-02-20 16:39:38 +00:00
parent a39f43788b
commit e5598038fa
9 changed files with 19 additions and 18 deletions

View File

@ -19,6 +19,7 @@ Features
Bug fixes
*********
| `Bug #3096 <https://redmine.postgresql.org/issues/3096>`_ - Ensure size stats are prettified on the statistics tab when the UI language is not English.
| `Bug #3544 <https://redmine.postgresql.org/issues/3544>`_ - Make the Query Tool tab titles more concise and useful.
| `Bug #3673 <https://redmine.postgresql.org/issues/3673>`_ - Modify the Download as CSV option to use the same connection as the Query Tool its running in so temporary tables etc. can be used.
| `Bug #3873 <https://redmine.postgresql.org/issues/3873>`_ - Fix context sub-menu alignment on Safari.

View File

@ -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)

View File

@ -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,

View File

@ -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,

View File

@ -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)

View File

@ -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'}),

View File

@ -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'}),

View File

@ -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;
},

View File

@ -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)