Ensure the browser toolbar buttons work in languages other than English. Fixes #3798

This commit is contained in:
Akshay Joshi
2018-12-06 09:25:15 +00:00
committed by Dave Page
parent 1141930178
commit 431516ad61
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -19,3 +19,4 @@ Bug fixes
| `Bug #3599 <https://redmine.postgresql.org/issues/3599>`_ - Run Postfix in the container build so passwords can be reset etc.
| `Bug #3619 <https://redmine.postgresql.org/issues/3619>`_ - Add titles to the code areas of the Query Tool and Debugger to ensure that panels can be re-docked within them.
| `Bug #3711 <https://redmine.postgresql.org/issues/3711>`_ - Fix an encoding issue in the query tool.
| `Bug #3798 <https://redmine.postgresql.org/issues/3798>`_ - Ensure the browser toolbar buttons work in languages other than English.
+3 -3
View File
@@ -74,11 +74,11 @@ export function initializeToolbar(panel, wcDocker) {
// Listen on button click event.
panel.on(wcDocker.EVENT.BUTTON, function(data) {
if ('name' in data && data.name === 'Query Tool')
if ('name' in data && data.name === gettext('Query Tool'))
pgAdmin.DataGrid.show_query_tool('', pgAdmin.Browser.tree.selected());
else if ('name' in data && data.name === 'View Data')
else if ('name' in data && data.name === gettext('View Data'))
pgAdmin.DataGrid.show_data_grid({mnuid: 3}, pgAdmin.Browser.tree.selected());
else if ('name' in data && data.name === 'Filtered Rows')
else if ('name' in data && data.name === gettext('Filtered Rows'))
pgAdmin.DataGrid.show_filtered_row({mnuid: 4}, pgAdmin.Browser.tree.selected());
});
}