(De)Capitalized strings to fit the common/usual format, corrected spelling, removed unnecessary characters.

This commit is contained in:
Jonas Thelemann 2017-04-05 13:50:49 +01:00 committed by Dave Page
parent 65f21a8cd7
commit 37120bf199
22 changed files with 44 additions and 44 deletions

View File

@ -425,7 +425,7 @@ class CollationView(PGChildNodeView):
status=410, status=410,
success=0, success=0,
errormsg=gettext( errormsg=gettext(
"Incomplete definition. Please provide Locale OR Copy Collation OR LC_TYPE/LC_COLLATE" "Incomplete definition. Please provide locale OR copy collation OR LC_TYPE/LC_COLLATE!"
) )
) )

View File

@ -163,7 +163,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
copy_coll_flag = true; copy_coll_flag = true;
} }
if (locale_flag && (lc_coll_flag || lc_coll_flag) && copy_coll_flag) { if (locale_flag && (lc_coll_flag || lc_coll_flag) && copy_coll_flag) {
msg = '{{ _('Incomplete definition, Please provide Locale OR Copy collation OR LC_TYPE/LC_COLLATE!') }}'; msg = '{{ _('Incomplete definition. Please provide locale OR copy collation OR LC_TYPE/LC_COLLATE!') }}';
err['locale'] = msg err['locale'] = msg
} }
return null; return null;

View File

@ -415,7 +415,7 @@ class FtsConfigurationView(PGChildNodeView):
status=410, status=410,
success=0, success=0,
errormsg=_( errormsg=_(
"provide atleast copy config or parser" "Provide at least copy config or parser."
) )
) )

View File

@ -60,7 +60,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
dialogHelp: '{{ url_for('help.static', filename='fts_dictionary_dialog.html') }}', dialogHelp: '{{ url_for('help.static', filename='fts_dictionary_dialog.html') }}',
canDrop: true, canDrop: true,
canDropCascade: true, canDropCascade: true,
label: '{{ _('FTS dictionary') }}', label: '{{ _('FTS Dictionary') }}',
hasSQL: true, hasSQL: true,
hasDepends: true, hasDepends: true,
Init: function() { Init: function() {

View File

@ -458,7 +458,7 @@ class FtsTemplateView(PGChildNodeView):
return make_json_response( return make_json_response(
success=1, success=1,
info=gettext("FTS template dropped"), info=gettext("FTS Template dropped"),
data={ data={
'id': tid, 'id': tid,
'sid': sid, 'sid': sid,
@ -650,7 +650,7 @@ class FtsTemplateView(PGChildNodeView):
if not status: if not status:
return internal_server_error( return internal_server_error(
gettext( gettext(
"Could not generate reversed engineered query for the FTS template.\n{0}").format( "Could not generate reversed engineered query for the FTS Template.\n{0}").format(
res res
) )
) )
@ -658,7 +658,7 @@ class FtsTemplateView(PGChildNodeView):
if res is None: if res is None:
return gone( return gone(
gettext( gettext(
"Could not generate reversed engineered query for FTS template node.") "Could not generate reversed engineered query for FTS Template node.")
) )
return ajax_response(response=res) return ajax_response(response=res)

View File

@ -357,7 +357,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
} }
if (_.isUndefined(this.get('prorettypename')) || String(this.get('prorettypename')).replace(/^\s+|\s+$/g, '') == '') { if (_.isUndefined(this.get('prorettypename')) || String(this.get('prorettypename')).replace(/^\s+|\s+$/g, '') == '') {
err['prorettypename'] = '{{ _('Return Type cannot be empty.') }}'; err['prorettypename'] = '{{ _('Return type cannot be empty.') }}';
errmsg = errmsg || err['prorettypename']; errmsg = errmsg || err['prorettypename'];
} }

View File

@ -278,7 +278,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
} }
if (_.isUndefined(this.get('prorettypename')) || String(this.get('prorettypename')).replace(/^\s+|\s+$/g, '') == '') { if (_.isUndefined(this.get('prorettypename')) || String(this.get('prorettypename')).replace(/^\s+|\s+$/g, '') == '') {
err['prorettypename'] = '{{ _('Return Type cannot be empty.') }}'; err['prorettypename'] = '{{ _('Return type cannot be empty.') }}';
errmsg = errmsg || err['prorettypename']; errmsg = errmsg || err['prorettypename'];
} }

View File

@ -611,7 +611,7 @@ class CheckConstraintView(PGChildNodeView):
return make_json_response( return make_json_response(
success=1, success=1,
info=_("Check Constraint dropped"), info=_("Check Constraint dropped."),
data={ data={
'id': tid, 'id': tid,
'scid': scid, 'scid': scid,

View File

@ -932,7 +932,7 @@ class TypeView(PGChildNodeView, DataTypeReader):
status=410, status=410,
success=0, success=0,
errormsg=gettext( errormsg=gettext(
'External types require both Input and Output conversion functions.' 'External types require both input and output conversion functions.'
) )
) )

View File

@ -407,7 +407,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backgrid) {
return m.get('typtype') === 'r'; return m.get('typtype') === 'r';
}, deps: ['typtype'], label: '', }, deps: ['typtype'], label: '',
schema:[{ schema:[{
id: 'typname', label:'{{ _('Sub-type') }}', cell: 'string', id: 'typname', label:'{{ _('Subtype') }}', cell: 'string',
control: 'node-ajax-options', control: 'node-ajax-options',
select2: { allowClear: true, placeholder: "", width: "100%" }, select2: { allowClear: true, placeholder: "", width: "100%" },
url: 'get_stypes', type: 'text', mode: ['properties', 'create', 'edit'], url: 'get_stypes', type: 'text', mode: ['properties', 'create', 'edit'],
@ -417,7 +417,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backgrid) {
return d; return d;
} }
},{ },{
id: 'opcname', label:'{{ _('Sub-type operator class') }}', cell: 'string', id: 'opcname', label:'{{ _('Subtype operator class') }}', cell: 'string',
mode: ['properties', 'create', 'edit'], group: '{{ _('Range Type') }}', mode: ['properties', 'create', 'edit'], group: '{{ _('Range Type') }}',
disabled: 'inSchemaWithModelCheck', deps: ['typname'], disabled: 'inSchemaWithModelCheck', deps: ['typname'],
control: 'select', options: function() { control: 'select', options: function() {
@ -517,7 +517,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backgrid) {
return result; return result;
} }
},{ },{
id: 'rngsubdiff', label:'{{ _('Sub-type diff function') }}', cell: 'string', id: 'rngsubdiff', label:'{{ _('Subtype diff function') }}', cell: 'string',
type: 'text', mode: ['properties', 'create', 'edit'], type: 'text', mode: ['properties', 'create', 'edit'],
group: '{{ _('Range Type') }}', group: '{{ _('Range Type') }}',
disabled: 'inSchemaWithModelCheck', deps: ['opcname'], disabled: 'inSchemaWithModelCheck', deps: ['opcname'],

View File

@ -504,7 +504,7 @@ SELECT EXISTS(
return internal_server_error(errormsg=res) return internal_server_error(errormsg=res)
return success_return( return success_return(
message=_("Updated the next-runtime to now!") message=_("Updated the next runtime to now.")
) )
@check_precondition @check_precondition

View File

@ -71,7 +71,7 @@ function($, _, S, pgAdmin, moment, pgBrowser, Alertify, Backform) {
render: function() { render: function() {
this.$el.empty(); this.$el.empty();
var model = this.model; var model = this.model;
this.$el.text(this.formatter.fromRaw(model.get(this.column.get("name")), model) || '{{ _('<Any>') }}'); this.$el.text(this.formatter.fromRaw(model.get(this.column.get("name")), model) || '{{ _('<any>') }}');
this.delegateEvents(); this.delegateEvents();
return this; return this;

View File

@ -161,7 +161,7 @@ class RoleView(PGChildNodeView):
if u'rolmembership' in data: if u'rolmembership' in data:
if u'rid' not in kwargs or kwargs['rid'] == -1: if u'rid' not in kwargs or kwargs['rid'] == -1:
msg = _(""" msg = _("""
Role membership information must be passed as an array of JSON object in the Role membership information must be passed as an array of JSON objects in the
following format: following format:
rolmembership:[{ rolmembership:[{
@ -186,8 +186,8 @@ rolmembership:[{
data[u'members'].append(r[u'role']) data[u'members'].append(r[u'role'])
else: else:
msg = _(""" msg = _("""
Role membership information must be passed a string representing an array of Role membership information must be passed as a string representing an array of
JSON object in the following format: JSON objects in the following format:
rolmembership:{ rolmembership:{
'added': [{ 'added': [{
role: [rolename], role: [rolename],
@ -264,7 +264,7 @@ rolmembership:{
if u'seclabels' in data: if u'seclabels' in data:
if u'rid' not in kwargs or kwargs['rid'] == -1: if u'rid' not in kwargs or kwargs['rid'] == -1:
msg = _(""" msg = _("""
Security Label must be passed as an array of JSON object in the following Security Label must be passed as an array of JSON objects in the following
format: format:
seclabels:[{ seclabels:[{
provider: <provider>, provider: <provider>,
@ -281,7 +281,7 @@ seclabels:[{
return precondition_required(msg) return precondition_required(msg)
else: else:
msg = _(""" msg = _("""
Security Label must be passed as an array of JSON object in the following Security Label must be passed as an array of JSON objects in the following
format: format:
seclabels:{ seclabels:{
'added': [{ 'added': [{
@ -342,8 +342,8 @@ seclabels:{
if u'variables' in data: if u'variables' in data:
if u'rid' not in kwargs or kwargs['rid'] == -1: if u'rid' not in kwargs or kwargs['rid'] == -1:
msg = _(""" msg = _("""
Configuration parameters/variables must be passed as an array of JSON object in Configuration parameters/variables must be passed as an array of JSON objects in
the following format (create mode): the following format in create mode:
variables:[{ variables:[{
database: <database> or null, database: <database> or null,
name: <configuration>, name: <configuration>,
@ -361,8 +361,8 @@ variables:[{
return precondition_required(msg) return precondition_required(msg)
else: else:
msg = _(""" msg = _("""
Configuration parameters/variables must be passed as an array of JSON object in Configuration parameters/variables must be passed as an array of JSON objects in
the following format (update mode): the following format in update mode:
rolmembership:{ rolmembership:{
'added': [{ 'added': [{
database: <database> or null, database: <database> or null,
@ -699,14 +699,14 @@ rolmembership:{
if not status: if not status:
return internal_server_error( return internal_server_error(
_("Could not generate reversed engineered Query for the role.\n{0}").format( _("Could not generate reversed engineered query for the role.\n{0}").format(
res res
) )
) )
if res is None: if res is None:
return gone( return gone(
_("Could not generate reversed engineered Query for the role.") _("Could not generate reversed engineered query for the role.")
) )
return ajax_response(response=res.strip('\n')) return ajax_response(response=res.strip('\n'))

View File

@ -663,7 +663,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
id: 'db', label:'{{ _('Maintenance database') }}', type: 'text', group: "{{ 'Connection' }}", id: 'db', label:'{{ _('Maintenance database') }}', type: 'text', group: "{{ 'Connection' }}",
mode: ['properties', 'edit', 'create'], disabled: 'isConnected' mode: ['properties', 'edit', 'create'], disabled: 'isConnected'
},{ },{
id: 'username', label:'{{ _('User name') }}', type: 'text', group: "{{ 'Connection' }}", id: 'username', label:'{{ _('Username') }}', type: 'text', group: "{{ 'Connection' }}",
mode: ['properties', 'edit', 'create'], disabled: 'isConnected' mode: ['properties', 'edit', 'create'], disabled: 'isConnected'
},{ },{
id: 'password', label:'{{ _('Password') }}', type: 'password', id: 'password', label:'{{ _('Password') }}', type: 'password',

View File

@ -450,7 +450,7 @@ function(require, $, _, S, Bootstrap, pgAdmin, Alertify, CodeMirror) {
console.log(err); console.log(err);
obj.report_error( obj.report_error(
'{{ _('Error Initializing script - ') }}' + s.path, err); '{{ _('Error initializing script - ') }}' + s.path, err);
} }
} }
}, function() { }, function() {

View File

@ -119,7 +119,7 @@ class BackupMessage(IProcessDesc):
self.database self.database
) )
if self.backup_type == BACKUP.GLOBALS: if self.backup_type == BACKUP.GLOBALS:
return _("Backing up the global objects on the server - '{0}'...").format( return _("Backing up the global objects on the server '{0}'...").format(
"{0} ({1}:{2})".format(s.name, s.host, s.port) "{0} ({1}:{2})".format(s.name, s.host, s.port)
) )
elif self.backup_type == BACKUP.SERVER: elif self.backup_type == BACKUP.SERVER:
@ -146,11 +146,11 @@ class BackupMessage(IProcessDesc):
self.database self.database
) )
elif self.backup_type == BACKUP.GLOBALS: elif self.backup_type == BACKUP.GLOBALS:
res += _("Backing up the global objects on the server '{0}'").format( res += _("Backing up the global objects on the server '{0}'...").format(
"{0} ({1}:{2})".format(s.name, s.host, s.port) "{0} ({1}:{2})".format(s.name, s.host, s.port)
) )
elif self.backup_type == BACKUP.SERVER: elif self.backup_type == BACKUP.SERVER:
res += _("Backing up the server '{0}'").format( res += _("Backing up the server '{0}'...").format(
"{0} ({1}:{2})".format(s.name, s.host, s.port) "{0} ({1}:{2})".format(s.name, s.host, s.port)
) )
else: else:

View File

@ -221,7 +221,7 @@ def initialize_query_tool(sid, did=None):
else: else:
internal_server_error( internal_server_error(
errormsg=gettext( errormsg=gettext(
'Server disconnected, Please connect and try again' 'Server disconnected. Please connect and try again.'
) )
) )

View File

@ -63,7 +63,7 @@ class DebuggerModule(PgAdminModule):
def register_preferences(self): def register_preferences(self):
self.open_in_new_tab = self.preference.register( self.open_in_new_tab = self.preference.register(
'display', 'debugger_new_browser_tab', 'display', 'debugger_new_browser_tab',
gettext("Open in New Browser Tab"), 'boolean', False, gettext("Open in new browser tab"), 'boolean', False,
category_label=gettext('Display'), category_label=gettext('Display'),
help_str=gettext('If set to True, the Debugger ' help_str=gettext('If set to True, the Debugger '
'will be opened in a new browser tab.') 'will be opened in a new browser tab.')
@ -566,7 +566,7 @@ def restart_debugging(trans_id):
if str(trans_id) not in debugger_data: if str(trans_id) not in debugger_data:
return make_json_response( return make_json_response(
data={'status': False, data={'status': False,
'result': gettext('Not connected to server Or connection with the server has been closed.')} 'result': gettext('Not connected to server or connection with the server has been closed.')}
) )
obj = debugger_data[str(trans_id)] obj = debugger_data[str(trans_id)]
@ -603,7 +603,7 @@ def restart_debugging(trans_id):
return make_json_response(data={'status': True, 'restart_debug': True, 'result': function_data}) return make_json_response(data={'status': True, 'restart_debug': True, 'result': function_data})
else: else:
status = False status = False
result = gettext('Not connected to server Or connection with the server has been closed.') result = gettext('Not connected to server or connection with the server has been closed.')
return make_json_response(data={'status': status}) return make_json_response(data={'status': status})
@ -625,7 +625,7 @@ def start_debugger_listener(trans_id):
if str(trans_id) not in debugger_data: if str(trans_id) not in debugger_data:
return make_json_response( return make_json_response(
data={'status': False, data={'status': False,
'result': gettext('Not connected to server Or connection with the server has been closed.')} 'result': gettext('Not connected to server or connection with the server has been closed.')}
) )
obj = debugger_data[str(trans_id)] obj = debugger_data[str(trans_id)]

View File

@ -107,7 +107,7 @@ class IEMessage(IProcessDesc):
).first() ).first()
return _( return _(
"Copying table data - '{0}.{1}' on database '{2}' and server ({3}{4})..." "Copying table data '{0}.{1}' on database '{2}' and server ({3}:{4})..."
).format( ).format(
self.schema, self.table, self.database, s.host, s.port self.schema, self.table, self.database, s.host, s.port
) )
@ -120,7 +120,7 @@ class IEMessage(IProcessDesc):
res = '<div class="h5">' res = '<div class="h5">'
res += _( res += _(
"Copying table data '{0}.{1}' on database '{2}' for the server - '{3}'" "Copying table data '{0}.{1}' on database '{2}' for the server '{3}'..."
).format( ).format(
self.schema, self.table, self.database, self.schema, self.table, self.database,
"{0} ({1}:{2})".format(s.name, s.host, s.port) "{0} ({1}:{2})".format(s.name, s.host, s.port)

View File

@ -174,7 +174,7 @@ define(
placeholder: '{{ _('Not null columns...') }}' placeholder: '{{ _('Not null columns...') }}'
}, },
helpMessage: helpMessage:
'{{ _('Do not match the specified columns values against the null string. In the default case where the null string is empty, this means that empty values will be read as zero-length strings rather than nulls, even when they are not quoted. This option is allowed only in import, and only when using CSV format.') }}' '{{ _('Do not match the specified column values against the null string. In the default case where the null string is empty, this means that empty values will be read as zero-length strings rather than nulls, even when they are not quoted. This option is allowed only in import, and only when using CSV format.') }}'
}, { }, {
type: 'nested', control: 'fieldset', label: '{{ _('Miscellaneous') }}', type: 'nested', control: 'fieldset', label: '{{ _('Miscellaneous') }}',
group: '{{ _('Options') }}', group: '{{ _('Options') }}',

View File

@ -101,7 +101,7 @@ class RestoreMessage(IProcessDesc):
res += html.safe_str( res += html.safe_str(
_( _(
"Restoring the backup on the server '{0}'..." "Restoring backup on the server '{0}'..."
).format( ).format(
"{0} ({1}:{2})".format(s.name, s.host, s.port) "{0} ({1}:{2})".format(s.name, s.host, s.port)
) )

View File

@ -86,7 +86,7 @@ class SqlEditorModule(PgAdminModule):
self.open_in_new_tab = self.preference.register( self.open_in_new_tab = self.preference.register(
'display', 'new_browser_tab', 'display', 'new_browser_tab',
gettext("Open in New Browser Tab"), 'boolean', False, gettext("Open in new browser tab"), 'boolean', False,
category_label=gettext('Display'), category_label=gettext('Display'),
help_str=gettext('If set to True, the Query Tool ' help_str=gettext('If set to True, the Query Tool '
'will be opened in a new browser tab.') 'will be opened in a new browser tab.')
@ -363,7 +363,7 @@ def start_query_tool(trans_id):
else: else:
status = False status = False
result = gettext('Either Transaction object or Session object not found.') result = gettext('Either transaction object or session object not found.')
return make_json_response( return make_json_response(
data={ data={
@ -892,7 +892,7 @@ def cancel_transaction(trans_id):
result = gettext('Not connected to server or connection with the server has been closed.') result = gettext('Not connected to server or connection with the server has been closed.')
else: else:
status = False status = False
result = gettext('Either Transaction object or Session object not found.') result = gettext('Either transaction object or session object not found.')
return make_json_response( return make_json_response(
data={ data={