mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added and fixed gettext usage for better translation coverage. Fixes #5284
1) Fixed usage gettext('') instead of _('') in javascript files.
2) Fixed usage gettext('') instead of `${gettext('')}` in javascript files,
because "pybabel extract" not support extracting from this syntax.
This commit is contained in:
@@ -1047,7 +1047,7 @@ define([
|
||||
|
||||
// Initialize a new Grid instance
|
||||
var stack_grid = this.stack_grid = new Backgrid.Grid({
|
||||
emptyText: 'No data found',
|
||||
emptyText: gettext('No data found'),
|
||||
columns: stackGridCols,
|
||||
row: Backgrid.Row.extend({
|
||||
events: {
|
||||
@@ -1112,7 +1112,7 @@ define([
|
||||
|
||||
// Initialize a new Grid instance
|
||||
var result_grid = this.result_grid = new Backgrid.Grid({
|
||||
emptyText: 'No data found',
|
||||
emptyText: gettext('No data found'),
|
||||
columns: resultGridCols,
|
||||
collection: new ResultsCollection(result),
|
||||
className: 'backgrid table table-bordered table-noouter-border table-bottom-border',
|
||||
@@ -1190,7 +1190,7 @@ define([
|
||||
|
||||
// Initialize a new Grid instance
|
||||
var variable_grid = this.variable_grid = new Backgrid.Grid({
|
||||
emptyText: 'No data found',
|
||||
emptyText: gettext('No data found'),
|
||||
columns: gridCols,
|
||||
collection: new VariablesCollection(my_obj),
|
||||
className: 'backgrid table table-bordered table-noouter-border table-bottom-border',
|
||||
@@ -1276,7 +1276,7 @@ define([
|
||||
|
||||
// Initialize a new Grid instance
|
||||
var param_grid = this.param_grid = new Backgrid.Grid({
|
||||
emptyText: 'No data found',
|
||||
emptyText: gettext('No data found'),
|
||||
columns: paramGridCols,
|
||||
collection: new ParametersCollection(param_obj),
|
||||
className: 'backgrid table table-bordered table-noouter-border table-bottom-border',
|
||||
|
||||
Reference in New Issue
Block a user