diff --git a/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/__init__.py
index 5b6624d51..d304a9395 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/__init__.py
@@ -325,7 +325,7 @@ class ForeignDataWrapperView(PGChildNodeView):
if len(res['rows']) == 0:
return gone(
- gettext("Couldnot find the foreign data wrapper information.")
+ gettext("Could not find the foreign data wrapper information.")
)
if res['rows'][0]['fdwoptions'] is not None:
@@ -568,7 +568,7 @@ class ForeignDataWrapperView(PGChildNodeView):
if len(res['rows']) == 0:
return gone(
- gettext("Couldnot find the foreign data wrapper information.")
+ gettext("Could not find the foreign data wrapper information.")
)
if res['rows'][0]['fdwoptions'] is not None:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/languages/static/js/language.js b/web/pgadmin/browser/server_groups/servers/databases/languages/static/js/language.js
index b31b712dc..67ed92c9f 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/languages/static/js/language.js
+++ b/web/pgadmin/browser/server_groups/servers/databases/languages/static/js/language.js
@@ -252,7 +252,7 @@ define('pgadmin.node.language', [
var handler_func = this.get('lanproc');
if (_.isUndefined(handler_func) || _.isNull(handler_func) ||
String(handler_func).replace(/^\s+|\s+$/g, '') == '') {
- var msg = gettext('Handler Function cannot be empty');
+ var msg = gettext('Handler Function cannot be empty.');
this.errorModel.set('lanproc', msg);
return msg;
} else {
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/collations/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/collations/__init__.py
index 3f3f80bf2..3e71ebd08 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/collations/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/collations/__init__.py
@@ -430,7 +430,7 @@ class CollationView(PGChildNodeView):
status=410,
success=0,
errormsg=gettext(
- "Definition incomplete. Please provide Locale OR Copy Collation OR LC_TYPE/LC_COLLATE"
+ "Definition incomplete. Please provide Locale OR Copy Collation OR LC_TYPE/LC_COLLATE."
)
)
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/collations/static/js/collation.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/collations/static/js/collation.js
index fb05cbc31..0d75eee66 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/collations/static/js/collation.js
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/collations/static/js/collation.js
@@ -164,8 +164,8 @@ define('pgadmin.node.collation', [
|| String(this.get('copy_collation')).replace(/^\s+|\s+$/g, '') == '')) {
copy_coll_flag = true;
}
- if (locale_flag && (lc_coll_flag || lc_coll_flag) && copy_coll_flag) {
- msg = gettext('Definition incomplete, Please provide Locale OR Copy collation OR LC_TYPE/LC_COLLATE!');
+ if (locale_flag && (lc_coll_flag || lc_type_flag) && copy_coll_flag) {
+ msg = gettext('Definition incomplete. Please provide Locale OR Copy Collation OR LC_TYPE/LC_COLLATE.');
err['locale'] = msg
}
return null;
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_configurations/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_configurations/__init__.py
index 41fe8a27e..9c3d56e3c 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_configurations/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_configurations/__init__.py
@@ -862,7 +862,7 @@ class FtsConfigurationView(PGChildNodeView):
if not status:
return internal_server_error(
_(
- "ERROR: Could not generate reversed engineered query for the FTS Configuration!\n{0}"
+ "Could not generate reversed engineered query for the FTS Configuration.\n{0}"
).format(
res
)
@@ -871,7 +871,7 @@ class FtsConfigurationView(PGChildNodeView):
if res is None:
return gone(
_(
- "ERROR: Could not generate reversed engineered query for FTS Configuration node!")
+ "Could not generate reversed engineered query for FTS Configuration node.")
)
return ajax_response(response=res)
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/__init__.py
index dd677a1d6..e932d58c4 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/__init__.py
@@ -392,7 +392,7 @@ class FunctionView(PGChildNodeView, DataTypeReader):
if fnid is not None:
if len(rset['rows']) == 0:
return gone(
- _("Could not find the specified %s").format(self.node_type)
+ _("Could not find the specified %s.").format(self.node_type)
)
row = rset['rows'][0]
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/__init__.py
index 55beb31af..3f46b9a50 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/__init__.py
@@ -453,7 +453,7 @@ class PackageView(PGChildNodeView):
return make_json_response(
success=1,
- info=_("Packge dropped"),
+ info=_("Package dropped"),
data={
'id': pkgid,
'scid': scid,
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/static/js/sequence.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/static/js/sequence.js
index 75bdc45ae..9eac926df 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/static/js/sequence.js
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/static/js/sequence.js
@@ -188,7 +188,7 @@ define('pgadmin.node.sequence', [
editable: false, type: 'collection', canAdd: true, canDelete: true,
control: 'unique-col-collection',
},{
- id: 'securities', label: gettext('Securitiy Labels'), canAdd: true,
+ id: 'securities', label: gettext('Security Labels'), canAdd: true,
model: pgBrowser.SecLabelModel, editable: false,
type: 'collection', canEdit: false, group: 'security',
mode: ['edit', 'create'], canDelete: true,
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/constraints/check_constraint/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/constraints/check_constraint/__init__.py
index f33c4e0ff..1840d3648 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/constraints/check_constraint/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/constraints/check_constraint/__init__.py
@@ -623,7 +623,7 @@ class CheckConstraintView(PGChildNodeView):
return make_json_response(
success=1,
- info=_("Check Constraint dropped."),
+ info=_("Check constraint dropped."),
data={
'id': tid,
'scid': scid,
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/static/js/partition.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/static/js/partition.js
index 121982212..cab2d8241 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/static/js/partition.js
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/static/js/partition.js
@@ -255,7 +255,7 @@ function(gettext, url_for, $, _, S, pgAdmin, pgBrowser, Backform, alertify) {
alertify.confirm(
gettext('Reset statistics'),
- S(gettext('Are you sure you want to reset the statistics for table %s?')).sprintf(d._label).value(),
+ S(gettext('Are you sure you want to reset the statistics for table "%s"?')).sprintf(d._label).value(),
function (e) {
if (e) {
var data = d;
@@ -733,7 +733,7 @@ function(gettext, url_for, $, _, S, pgAdmin, pgBrowser, Backform, alertify) {
if (!_.isUndefined(tbl_name) &&
tbl_name !== '' && column_collection.length !== 0) {
- var msg = gettext('Changing of type table will clear columns collection');
+ var msg = gettext('Changing of table type will clear columns collection.');
alertify.confirm(msg, function (e) {
if (e) {
// User clicks Ok, lets clear columns collection
@@ -975,9 +975,9 @@ function(gettext, url_for, $, _, S, pgAdmin, pgBrowser, Backform, alertify) {
},{
id: 'partition_note', label: gettext('Partition'),
type: 'note', group: 'partition',
- text: gettext('Above control will be used to Create/Attach/Detach partitions.
' +
+ text: gettext('The control above is used to Create/Attach/Detach partitions.
' +
'
- {{ _('pgAdmin is an open source administration and management tool for the PostgreSQL database. The tools include a graphical administration interface, an SQL query tool, a procedural code debugger and much more. The tool is designed to answer the needs of developers, DBAs and system administrators alike.') }} + {{ _('pgAdmin is an Open Source administration and management tool for the PostgreSQL database. It includes a graphical administration interface, an SQL query tool, a procedural code debugger and much more. The tool is designed to answer the needs of developers, DBAs and system administrators alike.') }}
diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index 0fb8485c9..ffb0ad91e 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -1464,11 +1464,11 @@ }); } else { this.sqlCtrl.clearHistory(); - this.sqlCtrl.setValue('-- ' + gettext('Definition incomplete')); + this.sqlCtrl.setValue('-- ' + gettext('Definition incomplete.')); } } else { this.sqlCtrl.clearHistory(); - this.sqlCtrl.setValue('-- ' + gettext('Nothing changed')); + this.sqlCtrl.setValue('-- ' + gettext('Nothing changed.')); } this.sqlCtrl.refresh.apply(this.sqlCtrl); } diff --git a/web/pgadmin/tools/grant_wizard/static/js/grant_wizard.js b/web/pgadmin/tools/grant_wizard/static/js/grant_wizard.js index b01c81107..9821d66f3 100644 --- a/web/pgadmin/tools/grant_wizard/static/js/grant_wizard.js +++ b/web/pgadmin/tools/grant_wizard/static/js/grant_wizard.js @@ -1000,7 +1000,7 @@ define([ page_title: _('Final (Review Selection) (step 3 of 3)'), show_description: _('The SQL below will be executed on the ' + 'database server to grant the selected privileges. ' + - 'Please click on Finish to complete the process. '), + 'Please click on Finish to complete the process.'), model: newModel, view: new(function() { diff --git a/web/pgadmin/tools/sqleditor/__init__.py b/web/pgadmin/tools/sqleditor/__init__.py index 811196552..6be9e0b4a 100644 --- a/web/pgadmin/tools/sqleditor/__init__.py +++ b/web/pgadmin/tools/sqleditor/__init__.py @@ -121,7 +121,7 @@ class SqlEditorModule(PgAdminModule): 'The length of time to display the query info notifier after ' 'execution has completed. A value of -1 disables the notifier ' 'and a value of 0 displays it until clicked. Values greater ' - 'than 1 display the notifier for the number of seconds ' + 'than 0 display the notifier for the number of seconds ' 'specified.' ) ) diff --git a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js index 177788c5b..2ea9db9ae 100644 --- a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js +++ b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js @@ -2227,12 +2227,12 @@ define('tools.querytool', [ } else { $("#btn-save").prop('disabled', true); } - alertify.success(gettext("Row(s) deleted")); + alertify.success(gettext("Row(s) deleted.")); } else { // There are other data to needs to be updated on server if(is_updated) { alertify.alert(gettext("Operation failed"), - gettext("There are unsaved changes in grid, Please save them first to avoid inconsistency in data") + gettext("There are unsaved changes in the grid. Please save them first to avoid data inconsistencies.") ); return; } @@ -3439,13 +3439,13 @@ define('tools.querytool', [ success: function (res) { if (res.success == undefined || !res.success) { alertify.alert('Explain options error', - gettext("Error occurred while setting verbose option in explain") + gettext("Error occurred while setting verbose option in explain.") ); } }, error: function (e) { alertify.alert('Explain options error', - gettext("Error occurred while setting verbose option in explain") + gettext("Error occurred while setting verbose option in explain.") ); return; } @@ -3477,13 +3477,13 @@ define('tools.querytool', [ success: function (res) { if (res.success == undefined || !res.success) { alertify.alert('Explain options error', - gettext("Error occurred while setting costs option in explain") + gettext("Error occurred while setting costs option in explain.") ); } }, error: function (e) { alertify.alert('Explain options error', - gettext("Error occurred while setting costs option in explain") + gettext("Error occurred while setting costs option in explain.") ); } }); @@ -3514,13 +3514,13 @@ define('tools.querytool', [ success: function (res) { if (res.success == undefined || !res.success) { alertify.alert('Explain options error', - gettext("Error occurred while setting buffers option in explain") + gettext("Error occurred while setting buffers option in explain.") ); } }, error: function (e) { alertify.alert('Explain options error', - gettext("Error occurred while setting buffers option in explain") + gettext("Error occurred while setting buffers option in explain.") ); } }); @@ -3550,13 +3550,13 @@ define('tools.querytool', [ success: function (res) { if (res.success == undefined || !res.success) { alertify.alert('Explain options error', - gettext("Error occurred while setting timing option in explain") + gettext("Error occurred while setting timing option in explain.") ); } }, error: function (e) { alertify.alert('Explain options error', - gettext("Error occurred while setting timing option in explain") + gettext("Error occurred while setting timing option in explain.") ); } }); @@ -3654,7 +3654,7 @@ define('tools.querytool', [ error: function (e) { updateUI(); alertify.alert('Get Preferences error', - gettext("Error occurred while getting query tool options ") + gettext("Error occurred while getting query tool options.") ); } }); diff --git a/web/pgadmin/tools/user_management/__init__.py b/web/pgadmin/tools/user_management/__init__.py index 102e69556..77c1b4e80 100644 --- a/web/pgadmin/tools/user_management/__init__.py +++ b/web/pgadmin/tools/user_management/__init__.py @@ -282,7 +282,7 @@ def delete(uid): return make_json_response( success=1, - info=_("User Deleted."), + info=_("User deleted."), data={} ) except Exception as e: diff --git a/web/pgadmin/utils/preferences.py b/web/pgadmin/utils/preferences.py index 4a6c01b61..474409eaf 100644 --- a/web/pgadmin/utils/preferences.py +++ b/web/pgadmin/utils/preferences.py @@ -547,7 +547,7 @@ class Preferences(object): # Can't find the reference for it in the configuration database, # create on for it. if module is None: - return False, gettext("Could not fine the specified module.") + return False, gettext("Could not find the specified module.") m = cls.modules[module.name]