Further missing translation fixes. Stats now:

1481 of 1831 messages (80%) translated in pgadmin/translations/de/LC_MESSAGES/messages.po
1694 of 1831 messages (92%) translated in pgadmin/translations/ja/LC_MESSAGES/messages.po
1748 of 1831 messages (95%) translated in pgadmin/translations/pl/LC_MESSAGES/messages.po
1750 of 1831 messages (95%) translated in pgadmin/translations/ru/LC_MESSAGES/messages.po
1436 of 1831 messages (78%) translated in pgadmin/translations/zh/LC_MESSAGES/messages.po
This commit is contained in:
Alexander Lakhin
2017-11-06 19:49:11 -05:00
committed by Dave Page
parent 2be418706d
commit 187ab22d90
37 changed files with 2676 additions and 508 deletions

View File

@@ -257,7 +257,7 @@ define('pgadmin.node.cast', [
id: 'syscast', label: gettext('System cast?'),
cell: 'switch', type: 'switch', mode: ['properties'], disabled: true,
options: {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'onColor': 'success', 'offColor': 'primary',
'size': 'small'
}

View File

@@ -194,7 +194,7 @@ define('pgadmin.node.extension', [
id: 'relocatable', label: gettext('Relocatable?'), cell: 'switch',
group: gettext('Definition'), type: 'switch', mode: ['properties'],
options: {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'onColor': 'success', 'offColor': 'primary',
'size': 'small'
}

View File

@@ -126,7 +126,7 @@ define('pgadmin.node.language', [
},{
id: 'trusted', label: gettext('Trusted?'), type: 'switch',
options: {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'onColor': 'success', 'offColor': 'primary',
'size': 'small'
},

View File

@@ -167,7 +167,7 @@ define('pgadmin.node.domain', [
id: 'sysdomain', label: gettext('System domain?'), cell: 'boolean',
type: 'switch', mode: ['properties'],
options: {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'onColor': 'success', 'offColor': 'primary',
'size': 'small'
}
@@ -246,7 +246,7 @@ define('pgadmin.node.domain', [
id: 'typnotnull', label: gettext('Not Null?'), cell: 'boolean',
type: 'switch', group: gettext('Definition'),
options: {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'onColor': 'success', 'offColor': 'primary',
'size': 'small'
}

View File

@@ -265,7 +265,7 @@ define('pgadmin.node.function', [
id: 'proisstrict', label: gettext('Strict?'), type: 'switch',
group: gettext('Options'), disabled: 'isDisabled',
options: {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'onColor': 'success', 'offColor': 'primary',
'size': 'small'
}

View File

@@ -203,7 +203,7 @@ define('pgadmin.node.trigger_function', [
id: 'proisstrict', label: gettext('Strict?'), type: 'switch',
disabled: 'isDisabled', group: gettext('Options'),
options: {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'onColor': 'success', 'offColor': 'primary',
'size': 'small'
}

View File

@@ -173,7 +173,7 @@ define('pgadmin.node.sequence', [
id: 'cycled', label: gettext('Cycled'), type: 'switch',
mode: ['properties', 'create', 'edit'], group: gettext('Definition'),
options: {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'onColor': 'success', 'offColor': 'primary',
'size': 'small'
}

View File

@@ -177,7 +177,7 @@ define('pgadmin.node.synonym', [
},{
id: 'is_public_synonym', label: gettext('Public synonym?'),
disabled: true, type: 'switch', mode: ['properties'], cell: 'switch',
options: { onText: 'Yes', offText: 'No', onColor: 'success',
options: { onText: gettext('Yes'), offText: gettext('No'), onColor: 'success',
offColor: 'primary', size: 'mini'}
}
],

View File

@@ -499,7 +499,7 @@ define('pgadmin.node.column', [
id: 'attnotnull', label: gettext('Not NULL?'), cell: 'switch',
type: 'switch', disabled: 'inSchemaWithColumnCheck', cellHeaderClasses:'width_percent_20',
group: gettext('Definition'), editable: 'editable_check_for_table',
options: { onText: 'Yes', offText: 'No', onColor: 'success', offColor: 'primary' }
options: { onText: gettext('Yes'), offText: gettext('No'), onColor: 'success', offColor: 'primary' }
},{
id: 'attstattarget', label: gettext('Statistics'), cell: 'string',
type: 'text', disabled: 'inSchemaWithColumnCheck', mode: ['properties', 'edit'],

View File

@@ -936,13 +936,13 @@ function(gettext, url_for, $, _, S, pgAdmin, pgBrowser, Backform, alertify) {
}
else {
alertify.alert(
'Error fetching tables to be attached', res.data.result
gettext('Error fetching tables to be attached'), res.data.result
);
}
},
error: function(e) {
var errmsg = $.parseJSON(e.responseText);
alertify.alert('Error fetching tables to be attached.', errmsg.errormsg);
alertify.alert(gettext('Error fetching tables to be attached'), errmsg.errormsg);
}
});
}

View File

@@ -242,7 +242,7 @@ function(gettext, $, _, pgBrowser, Backform, Backgrid) {
id: 'oid', label: gettext('OID'), type: 'text'
},{
id: 'is_attach', label:gettext('Operation'), cell: 'switch',
type: 'switch', options: { 'onText': 'Attach', 'offText': 'Create'},
type: 'switch', options: { 'onText': gettext('Attach'), 'offText': gettext('Create')},
cellHeaderClasses: 'width_percent_5',
editable: function(m) {
if (m instanceof Backbone.Model && m.isNew() && !m.top.isNew())

View File

@@ -979,13 +979,13 @@ define('pgadmin.node.table', [
}
else {
alertify.alert(
'Error fetching tables to be attached', res.data.result
gettext('Error fetching tables to be attached'), res.data.result
);
}
},
error: function(e) {
var errmsg = $.parseJSON(e.responseText);
alertify.alert('Error fetching tables to be attached.', errmsg.errormsg);
alertify.alert(gettext('Error fetching tables to be attached'), errmsg.errormsg);
}
});
}

View File

@@ -292,18 +292,18 @@ define('pgadmin.node.mview', [
dataType: "json",
success: function(res) {
if (res.success == 1) {
alertify.success('View refreshed successfully');
alertify.success(gettext('View refreshed successfully'));
}
else {
alertify.alert(
'Error refreshing view',
gettext('Error refreshing view'),
res.data.result
);
}
},
error: function(e) {
var errmsg = $.parseJSON(e.responseText);
alertify.alert('Error refreshing view', errmsg.errormsg);
alertify.alert(gettext('Error refreshing view'), errmsg.errormsg);
}
});

View File

@@ -393,7 +393,7 @@ define('pgadmin.node.database', [
editable: false, type: 'switch', group: gettext('Definition'),
mode: ['properties'], disabled: true,
options: {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'onColor': 'success', 'offColor': 'primary',
'size': 'small'
}

View File

@@ -64,7 +64,7 @@ define('pgadmin.node.role', [
});
var switchOptions = {
'onText': 'Yes', 'offText': 'No',
'onText': gettext('Yes'), 'offText': gettext('No'),
'size': 'mini'
};

View File

@@ -645,7 +645,7 @@ define('pgadmin.node.server', [
},{
id: 'connected', label: gettext('Connected?'), type: 'switch',
mode: ['properties'], group: gettext('Connection'), 'options': {
'onText': 'True', 'offText': 'False', 'onColor': 'success',
'onText': gettext('True'), 'offText': gettext('False'), 'onColor': 'success',
'offColor': 'danger', 'size': 'small'
}
},{
@@ -725,7 +725,7 @@ define('pgadmin.node.server', [
},{
id: 'sslcompression', label: gettext('SSL compression?'), type: 'switch',
mode: ['edit', 'create'], group: gettext('SSL'),
'options': { 'onText': 'True', 'offText': 'False',
'options': { 'onText': gettext('True'), 'offText': gettext('False'),
'onColor': 'success', 'offColor': 'danger', 'size': 'small'},
deps: ['sslmode'], disabled: 'isSSL'
},{
@@ -763,7 +763,7 @@ define('pgadmin.node.server', [
},{
id: 'sslcompression', label: gettext('SSL compression?'), type: 'switch',
mode: ['properties'], group: gettext('SSL'),
'options': { 'onText': 'True', 'offText': 'False',
'options': { 'onText': gettext('True'), 'offText': gettext('False'),
'onColor': 'success', 'offColor': 'danger', 'size': 'small'},
deps: ['sslmode'], visible: function(m) {
var sslmode = m.get('sslmode');

View File

@@ -627,7 +627,7 @@ define(
if (!(_.isFunction(obj.canDropCascade) ?
obj.canDropCascade.apply(obj, [d, i]) : obj.canDropCascade)) {
Alertify.error(
S('The %s "%s" cannot be dropped!')
S( gettext('The %s "%s" cannot be dropped.'))
.sprintf(obj.label, d.label).value(),
10
);
@@ -641,7 +641,7 @@ define(
if (!(_.isFunction(obj.canDrop) ?
obj.canDrop.apply(obj, [d, i]) : obj.canDrop)) {
Alertify.error(
S('The %s "%s" cannot be dropped!')
S( gettext('The %s "%s" cannot be dropped.'))
.sprintf(obj.label, d.label).value(),
10
);