Hi,
I hope this is helpful to the team. I noticed that in the Parameter tab of
the Create Table dialog that VACUUM was misspelled. Hey, it's not easy to
remember if it's one "C" or two :-) So, I searched the codebase for all the
misspellings of that particular word and corrected them in this patch.
It looks like Sublime Text also removed a couple of spaces at the end of
lines; hope that's OK.
This is my first time submitting a patch to pgAdmin; thanks for considering.
Anthony DeBarros
diff --git
a/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js
b/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js
index c73b4ab..5c73022 100644
---
a/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js
+++
b/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js
@@ -6,7 +6,7 @@ define(
function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
- // VaccumSettings Collection to display all settings parameters as Grid
+ // VacuumSettings Collection to display all settings parameters as Grid
var VacuumCollectionControl = Backform.VacuumCollectionControl =
Backform.Control.extend({
@@ -198,7 +198,7 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
}),
deps: ['autovacuum_enabled']
},{
- id: 'toast_autovacuum', label: '{{ _("Custom auto-vaccum?") }}',
+ id: 'toast_autovacuum', label: '{{ _("Custom auto-vacuum?") }}',
group: '{{ _("Toast Table") }}', mode: ['edit', 'create'],
type: 'switch',
disabled: function(m) {
diff --git
a/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/vacuum_settings/vacuum_fields.json
b/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/vacuum_settings/vacuum_fields.json
index 83571f4..2860705 100644
---
a/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/vacuum_settings/vacuum_fields.json
+++
b/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/vacuum_settings/vacuum_fields.json
@@ -16,24 +16,24 @@
{
"table":
{
- "autovacuum_vacuum_threshold": ["autovacuum_vacuum_threshold", "VACCUM
base threshold", "integer"],
+ "autovacuum_vacuum_threshold": ["autovacuum_vacuum_threshold", "VACUUM
base threshold", "integer"],
"autovacuum_analyze_threshold": ["autovacuum_analyze_threshold", "ANALYZE
base threshold", "integer"],
- "autovacuum_vacuum_scale_factor": ["autovacuum_vacuum_scale_factor",
"VACCUM scale factor", "number"],
+ "autovacuum_vacuum_scale_factor": ["autovacuum_vacuum_scale_factor",
"VACUUM scale factor", "number"],
"autovacuum_analyze_scale_factor": ["autovacuum_analyze_scale_factor",
"ANALYZE scale factor", "number"],
- "autovacuum_vacuum_cost_delay": ["autovacuum_vacuum_cost_delay", "VACCUM
cost delay", "integer"],
- "autovacuum_vacuum_cost_limit": ["autovacuum_vacuum_cost_limit", "VACCUM
cost limit", "integer"],
+ "autovacuum_vacuum_cost_delay": ["autovacuum_vacuum_cost_delay", "VACUUM
cost delay", "integer"],
+ "autovacuum_vacuum_cost_limit": ["autovacuum_vacuum_cost_limit", "VACUUM
cost limit", "integer"],
"autovacuum_freeze_max_age": ["autovacuum_freeze_max_age", "FREEZE maximum
age", "integer"],
"vacuum_freeze_min_age": ["autovacuum_freeze_min_age", "FREEZE minimum
age", "integer"],
"vacuum_freeze_table_age": ["autovacuum_freeze_table_age", "FREEZE table
age", "integer"]
},
"toast":
{
- "autovacuum_vacuum_threshold": ["autovacuum_vacuum_threshold", "VACCUM
base threshold", "integer"],
- "autovacuum_vacuum_scale_factor": ["autovacuum_vacuum_scale_factor",
"VACCUM scale factor", "number"],
- "autovacuum_vacuum_cost_delay": ["autovacuum_vacuum_cost_delay", "VACCUM
cost delay", "integer"],
- "autovacuum_vacuum_cost_limit": ["autovacuum_vacuum_cost_limit", "VACCUM
cost limit", "integer"],
+ "autovacuum_vacuum_threshold": ["autovacuum_vacuum_threshold", "VACUUM
base threshold", "integer"],
+ "autovacuum_vacuum_scale_factor": ["autovacuum_vacuum_scale_factor",
"VACUUM scale factor", "number"],
+ "autovacuum_vacuum_cost_delay": ["autovacuum_vacuum_cost_delay", "VACUUM
cost delay", "integer"],
+ "autovacuum_vacuum_cost_limit": ["autovacuum_vacuum_cost_limit", "VACUUM
cost limit", "integer"],
"autovacuum_freeze_max_age": ["autovacuum_freeze_max_age", "FREEZE maximum
age", "integer"],
"vacuum_freeze_min_age": ["autovacuum_freeze_min_age", "FREEZE minimum
age", "integer"],
"vacuum_freeze_table_age": ["autovacuum_freeze_table_age", "FREEZE table
age", "integer"]
}
-}
\ No newline at end of file
+}
diff --git
a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/pg/9.3_plus/sql/update.sql
b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/pg/9.3_plus/sql/update.sql
index ee19660..89d8e7e 100644
---
a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/pg/9.3_plus/sql/update.sql
+++
b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/pg/9.3_plus/sql/update.sql
@@ -165,7 +165,7 @@ RESET(
{% endfor %}
);
{% endif %}
-{% endif %}{# ===== End check for custom autovaccum ===== #}
+{% endif %}{# ===== End check for custom autovacuum ===== #}
{% endif %}{# ===== End block for check data definition ===== #}
{% set old_comment = o_data.comment|default('', true) %}
{% if (data.comment is defined and (data.comment != old_comment)) %}
diff --git
a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/pg/9.4_plus/sql/update.sql
b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/pg/9.4_plus/sql/update.sql
index ee19660..89d8e7e 100644
---
a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/pg/9.4_plus/sql/update.sql
+++
b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/pg/9.4_plus/sql/update.sql
@@ -165,7 +165,7 @@ RESET(
{% endfor %}
);
{% endif %}
-{% endif %}{# ===== End check for custom autovaccum ===== #}
+{% endif %}{# ===== End check for custom autovacuum ===== #}
{% endif %}{# ===== End block for check data definition ===== #}
{% set old_comment = o_data.comment|default('', true) %}
{% if (data.comment is defined and (data.comment != old_comment)) %}
diff --git
a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/ppas/9.3_plus/sql/update.sql
b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/ppas/9.3_plus/sql/update.sql
index ee19660..89d8e7e 100644
---
a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/ppas/9.3_plus/sql/update.sql
+++
b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/templates/mview/ppas/9.3_plus/sql/update.sql
@@ -165,7 +165,7 @@ RESET(
{% endfor %}
);
{% endif %}
-{% endif %}{# ===== End check for custom autovaccum ===== #}
+{% endif %}{# ===== End check for custom autovacuum ===== #}
{% endif %}{# ===== End block for check data definition ===== #}
{% set old_comment = o_data.comment|default('', true) %}
{% if (data.comment is defined and (data.comment != old_comment)) %}
diff --git a/web/pgadmin/messages.pot b/web/pgadmin/messages.pot
index 2a0f3c4..8c714b9 100644
--- a/web/pgadmin/messages.pot
+++ b/web/pgadmin/messages.pot
@@ -4005,7 +4005,7 @@ msgid "Default value"
msgstr ""
#:
pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js:201
-msgid "Custom auto-vaccum?"
+msgid "Custom auto-vacuum?"
msgstr ""
#:
pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js:202
diff --git a/web/pgadmin/translations/fr/LC_MESSAGES/messages.po
b/web/pgadmin/translations/fr/LC_MESSAGES/messages.po
index 432cf4d..7d858a6 100644
--- a/web/pgadmin/translations/fr/LC_MESSAGES/messages.po
+++ b/web/pgadmin/translations/fr/LC_MESSAGES/messages.po
@@ -3449,7 +3449,7 @@ msgid "Default value"
msgstr ""
#:
pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js:201
-msgid "Custom auto-vaccum?"
+msgid "Custom auto-vacuum?"
msgstr ""
#:
pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js:202
diff --git a/web/pgadmin/translations/zh/LC_MESSAGES/messages.po
b/web/pgadmin/translations/zh/LC_MESSAGES/messages.po
index 87359d4..5dd08da 100644
--- a/web/pgadmin/translations/zh/LC_MESSAGES/messages.po
+++ b/web/pgadmin/translations/zh/LC_MESSAGES/messages.po
@@ -4007,8 +4007,8 @@ msgid "Default value"
msgstr "默认值"
#:
pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js:201
-msgid "Custom auto-vaccum?"
-msgstr "自定义 AUTO VACUUM"
+msgid "Custom auto-vacuum?"
+msgstr "自定义 AUTO VACUUM"
#:
pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js:202
#:
pgadmin/browser/server_groups/servers/databases/schemas/templates/schema/js/schema.js:218
@@ -6283,7 +6283,7 @@ msgid ""
"Please click <a class=\"alert-link\" href=\"{0}\" "
"target=\"_new\">here</a> for more\n"
" information."
-msgstr "请点击 <a class=\"alert-link\" href=\"{0}\" target=\"_new\">这里</a>
查看更多信息"
+msgstr "请点击 <a class=\"alert-link\" href=\"{0}\" target=\"_new\">这里</a> 查看更多信息"
#: pgadmin/browser/templates/browser/js/browser.js:110
msgid "Properties"
@@ -6673,7 +6673,7 @@ msgid ""
"administrators alike."
msgstr ""
"pgAdmin是一个开源的PostgreSQL数据库管理工具。"
-"这些工具包括图形管理界面,SQL查询工具,存储过程代码调试器等等。"
+"这些工具包括图形管理界面,SQL查询工具,存储过程代码调试器等等。"
"该工具旨在满足开发人员,DBA和系统管理员的需求。"
#: pgadmin/dashboard/templates/dashboard/welcome_dashboard.html:19
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers