Fix translation extraction for new client side translations, and update catalogs.

This commit is contained in:
Sarah McAlear 2017-03-28 15:21:49 -04:00 committed by Dave Page
parent 8745417926
commit 1d27341e21
17 changed files with 834 additions and 526 deletions

View File

@ -30,12 +30,12 @@ Jinja:
.. code-block:: javascript
define(['sources/translate', ...], function(t, ...){
define(['sources/gettext', ...], function(gettext, ...){
...
var alert = alertify.prompt(
t('Password Change'),
t('New password for %(userName)s', {userName: 'jsmith' }),
gettext('Password Change'),
gettext('New password for %(userName)s', {userName: 'jsmith' }),
...
)
})

View File

@ -1,5 +1,9 @@
[python: **.py]
[jinja2: **/templates/**.html]
[jinja2: **/templates/**.js]
[jinja2: **/templates/**.sql]
extensions=jinja2.ext.autoescape,jinja2.ext.with_
[ignore: **/vendor/**.js]
[javascript: **/static/**.js]
[javascript: **/templates/about/**.js]
[javascript: **/templates/dashboard/**.js]
[jinja2: **/templates/**.js]
extensions=jinja2.ext.autoescape,jinja2.ext.with_

View File

@ -1,6 +1,6 @@
define(
['jquery', 'alertify', 'pgadmin', 'sources/translate'],
function($, alertify, pgAdmin, t) {
['jquery', 'alertify', 'pgadmin', 'sources/gettext'],
function($, alertify, pgAdmin, gettext) {
pgAdmin = pgAdmin || window.pgAdmin || {};
/* Return back, this has been called more than once */
@ -18,7 +18,7 @@ define(
},
setup: function() {
return {
buttons:[{ text: t("OK"), key: 27, className: "btn btn-primary" }],
buttons:[{ text: gettext("OK"), key: 27, className: "btn btn-primary" }],
options: {
modal: false,
resizable: true,
@ -41,7 +41,7 @@ define(
var content = '';
$.get("{{ url_for('about.index') }}",
function(data) {
alertify.aboutDialog(t("About %(appname)s", {appname: "{{ config.APP_NAME }}"}), data).resizeTo(800, 450);
alertify.aboutDialog(gettext("About %(appname)s", {appname: "{{ config.APP_NAME }}"}), data).resizeTo(800, 450);
});
}
};

View File

@ -1,8 +1,8 @@
define([
'require', 'jquery', 'pgadmin', 'underscore', 'backbone', 'sources/translate', 'flotr2', 'wcdocker',
'require', 'jquery', 'pgadmin', 'underscore', 'backbone', 'sources/gettext', 'flotr2', 'wcdocker',
'pgadmin.browser', 'bootstrap'
],
function(r, $, pgAdmin, _, Backbone, t) {
function(r, $, pgAdmin, _, Backbone, gettext) {
var wcDocker = window.wcDocker,
pgBrowser = pgAdmin.Browser;
@ -41,7 +41,7 @@ function(r, $, pgAdmin, _, Backbone, t) {
},
error: function (xhr, status) {
$(div).html(
'<div class="alert alert-danger pg-panel-message" role="alert">' + t('An error occurred whilst loading the dashboard.') + '</div>'
'<div class="alert alert-danger pg-panel-message" role="alert">' + gettext('An error occurred whilst loading the dashboard.') + '</div>'
);
}
});
@ -101,7 +101,7 @@ function(r, $, pgAdmin, _, Backbone, t) {
},
error: function (xhr, status) {
$(div).html(
'<div class="alert alert-danger pg-panel-message" role="alert">' + t('An error occurred whilst loading the dashboard.') + '</div>'
'<div class="alert alert-danger pg-panel-message" role="alert">' + gettext('An error occurred whilst loading the dashboard.') + '</div>'
);
}
});
@ -209,11 +209,11 @@ function(r, $, pgAdmin, _, Backbone, t) {
// If we get a 428, it means the server isn't connected
if (xhr.status == 428) {
if (_.isUndefined(msg) || _.isNull(msg)) {
msg = t('Please connect to the selected server to view the graph.');
msg = gettext('Please connect to the selected server to view the graph.');
}
cls = 'info';
} else {
msg = t('An error occurred whilst rendering the graph.');
msg = gettext('An error occurred whilst rendering the graph.');
cls = 'danger';
}
@ -331,11 +331,11 @@ function(r, $, pgAdmin, _, Backbone, t) {
// If we get a 428, it means the server isn't connected
if (xhr.status == 428) {
if (_.isUndefined(msg) || _.isNull(msg)) {
msg = t('Please connect to the selected server to view the table.');
msg = gettext('Please connect to the selected server to view the table.');
}
cls = 'info';
} else {
msg = t('An error occurred whilst rendering the table.');
msg = gettext('An error occurred whilst rendering the table.');
cls = 'danger';
}
@ -400,37 +400,37 @@ function(r, $, pgAdmin, _, Backbone, t) {
var server_activity_columns = [{
name: "pid",
label: t('PID'),
label: gettext('PID'),
editable: false,
cell: "string"
}, {
name: "datname",
label: t('Database'),
label: gettext('Database'),
editable: false,
cell: "string"
}, {
name: "usename",
label: t('User'),
label: gettext('User'),
editable: false,
cell: "string"
}, {
name: "application_name",
label: t('Application'),
label: gettext('Application'),
editable: false,
cell: "string"
}, {
name: "client_addr",
label: t('Client'),
label: gettext('Client'),
editable: false,
cell: "string"
}, {
name: "backend_start",
label: t('Backend start'),
label: gettext('Backend start'),
editable: false,
cell: "string"
}, {
name: "state",
label: t('State'),
label: gettext('State'),
editable: false,
cell: "string"
}];
@ -439,7 +439,7 @@ function(r, $, pgAdmin, _, Backbone, t) {
server_activity_columns = server_activity_columns.concat(
[{
name: "waiting",
label: t('Waiting?'),
label: gettext('Waiting?'),
editable: false,
cell: "string"
}]);
@ -447,12 +447,12 @@ function(r, $, pgAdmin, _, Backbone, t) {
server_activity_columns = server_activity_columns.concat(
[{
name: "wait_event",
label: t('Wait Event'),
label: gettext('Wait Event'),
editable: false,
cell: "string"
},{
name: "blocking_pids",
label: t('Blocking PIDs'),
label: gettext('Blocking PIDs'),
editable: false,
cell: "string"
}]);
@ -460,121 +460,121 @@ function(r, $, pgAdmin, _, Backbone, t) {
var server_locks_columns = [{
name: "pid",
label: t('PID'),
label: gettext('PID'),
editable: false,
cell: "string"
}, {
name: "datname",
label: t('Database'),
label: gettext('Database'),
editable: false,
cell: "string"
}, {
name: "locktype",
label: t('Lock type'),
label: gettext('Lock type'),
editable: false,
cell: "string"
}, {
name: "relation",
label: t('Target relation'),
label: gettext('Target relation'),
editable: false,
cell: "string"
}, {
name: "page",
label: t('Page'),
label: gettext('Page'),
editable: false,
cell: "string"
}, {
name: "tuple",
label: t('Tuple'),
label: gettext('Tuple'),
editable: false,
cell: "string"
}, {
name: "virtualxid",
label: t('vXID (target)'),
label: gettext('vXID (target)'),
editable: false,
cell: "string"
}, {
name: "transactionid",
label: t('XID (target)'),
label: gettext('XID (target)'),
editable: false,
cell: "string"
},{
name: "classid",
label: t('Class'),
label: gettext('Class'),
editable: false,
cell: "string"
},{
name: "objid",
label: t('Object ID'),
label: gettext('Object ID'),
editable: false,
cell: "string"
},{
name: "virtualtransaction",
label: t('vXID (owner)'),
label: gettext('vXID (owner)'),
editable: false,
cell: "string"
},{
name: "mode",
label: t('Mode'),
label: gettext('Mode'),
editable: false,
cell: "string"
},{
name: "granted",
label: t('Granted?'),
label: gettext('Granted?'),
editable: false,
cell: "string"
}];
var server_prepared_columns = [{
name: "git",
label: t('Name'),
label: gettext('Name'),
editable: false,
cell: "string"
}, {
name: "database",
label: t('Database'),
label: gettext('Database'),
editable: false,
cell: "string"
}, {
name: "Owner",
label: t('Owner'),
label: gettext('Owner'),
editable: false,
cell: "string"
}, {
name: "transaction",
label: t('XID'),
label: gettext('XID'),
editable: false,
cell: "string"
}, {
name: "prepared",
label: t('Prepared at'),
label: gettext('Prepared at'),
editable: false,
cell: "string"
}];
var server_config_columns = [{
name: "name",
label: t('Name'),
label: gettext('Name'),
editable: false,
cell: "string"
}, {
name: "category",
label: t('Category'),
label: gettext('Category'),
editable: false,
cell: "string"
}, {
name: "setting",
label: t('Setting'),
label: gettext('Setting'),
editable: false,
cell: "string"
}, {
name: "unit",
label: t('Unit'),
label: gettext('Unit'),
editable: false,
cell: "string"
}, {
name: "short_desc",
label: t('Description'),
label: gettext('Description'),
editable: false,
cell: "string"
}];
@ -677,32 +677,32 @@ function(r, $, pgAdmin, _, Backbone, t) {
var database_activity_columns = [{
name: "pid",
label: t('PID'),
label: gettext('PID'),
editable: false,
cell: "string"
}, {
name: "usename",
label: t('User'),
label: gettext('User'),
editable: false,
cell: "string"
}, {
name: "application_name",
label: t('Application'),
label: gettext('Application'),
editable: false,
cell: "string"
}, {
name: "client_addr",
label: t('Client'),
label: gettext('Client'),
editable: false,
cell: "string"
}, {
name: "backend_start",
label: t('Backend start'),
label: gettext('Backend start'),
editable: false,
cell: "string"
}, {
name: "state",
label: t('State'),
label: gettext('State'),
editable: false,
cell: "string"
}];
@ -711,7 +711,7 @@ function(r, $, pgAdmin, _, Backbone, t) {
database_activity_columns = database_activity_columns.concat(
[{
name: "waiting",
label: t('Waiting?'),
label: gettext('Waiting?'),
editable: false,
cell: "string"
}]);
@ -719,12 +719,12 @@ function(r, $, pgAdmin, _, Backbone, t) {
database_activity_columns = database_activity_columns.concat(
[{
name: "wait_event",
label: t('Wait Event'),
label: gettext('Wait Event'),
editable: false,
cell: "string"
},{
name: "blocking_pids",
label: t('Blocking PIDs'),
label: gettext('Blocking PIDs'),
editable: false,
cell: "string"
}]);
@ -732,84 +732,84 @@ function(r, $, pgAdmin, _, Backbone, t) {
var database_locks_columns = [{
name: "pid",
label: t('PID'),
label: gettext('PID'),
editable: false,
cell: "string"
}, {
name: "locktype",
label: t('Lock type'),
label: gettext('Lock type'),
editable: false,
cell: "string"
}, {
name: "relation",
label: t('Target relation'),
label: gettext('Target relation'),
editable: false,
cell: "string"
}, {
name: "page",
label: t('Page'),
label: gettext('Page'),
editable: false,
cell: "string"
}, {
name: "tuple",
label: t('Tuple'),
label: gettext('Tuple'),
editable: false,
cell: "string"
}, {
name: "virtualxid",
label: t('vXID (target)'),
label: gettext('vXID (target)'),
editable: false,
cell: "string"
}, {
name: "transactionid",
label: t('XID (target)'),
label: gettext('XID (target)'),
editable: false,
cell: "string"
},{
name: "classid",
label: t('Class'),
label: gettext('Class'),
editable: false,
cell: "string"
},{
name: "objid",
label: t('Object ID'),
label: gettext('Object ID'),
editable: false,
cell: "string"
},{
name: "virtualtransaction",
label: t('vXID (owner)'),
label: gettext('vXID (owner)'),
editable: false,
cell: "string"
},{
name: "mode",
label: t('Mode'),
label: gettext('Mode'),
editable: false,
cell: "string"
},{
name: "granted",
label: t('Granted?'),
label: gettext('Granted?'),
editable: false,
cell: "string"
}];
var database_prepared_columns = [{
name: "git",
label: t('Name'),
label: gettext('Name'),
editable: false,
cell: "string"
}, {
name: "Owner",
label: t('Owner'),
label: gettext('Owner'),
editable: false,
cell: "string"
}, {
name: "transaction",
label: t('XID'),
label: gettext('XID'),
editable: false,
cell: "string"
}, {
name: "prepared",
label: t('Prepared at'),
label: gettext('Prepared at'),
editable: false,
cell: "string"
}];

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,7 @@ class MiscModule(PgAdminModule):
}, {
'name': 'snap.svg',
'path': url_for(
'misc.static', filename='explain/js/' + (
'misc.static', filename='explain/vendor/snap.svg/' + (
'snap.svg' if config.DEBUG else 'snap.svg-min'
)),
'preloaded': False

View File

@ -1,9 +1,9 @@
define(
['jquery', 'alertify', 'pgadmin', 'underscore', 'backform', 'pgadmin.browser',
'sources/translate', 'pgadmin.backform'],
'sources/gettext', 'pgadmin.backform'],
// This defines the Preference/Options Dialog for pgAdmin IV.
function($, alertify, pgAdmin, _, Backform, pgBrowser, t) {
function($, alertify, pgAdmin, _, Backform, pgBrowser, gettext) {
pgAdmin = pgAdmin || window.pgAdmin || {};
/*
@ -191,8 +191,8 @@ define(
return 'input';
case 'boolean':
p.options = {
onText: t('True'),
offText: t('False'),
onText: gettext('True'),
offText: gettext('False'),
onColor: 'success',
offColor: 'default',
size: 'mini'
@ -200,8 +200,8 @@ define(
return 'switch';
case 'node':
p.options = {
onText: t('Show'),
offText: t('Hide'),
onText: gettext('Show'),
offText: gettext('Hide'),
onColor: 'success',
offColor: 'default',
size: 'mini'
@ -333,7 +333,7 @@ define(
"<div class='pg-el-xs-3 preferences_tree aciTree'></div>"
).append(
"<div class='pg-el-xs-9 preferences_content'>" +
t('Category is not selected.') +
gettext('Category is not selected.') +
"</div>"
);
@ -359,16 +359,16 @@ define(
attrs:{name:'dialog_help', type:'button', label: '{{ _('Preferences') }}',
url: '{{ url_for('help.static', filename='preferences.html') }}'}
},{
text: t('OK'), key: 13, className: "btn btn-primary fa fa-lg fa-save pg-alertify-button"
text: gettext('OK'), key: 13, className: "btn btn-primary fa fa-lg fa-save pg-alertify-button"
},{
text: t('Cancel'), className: "btn btn-danger fa fa-lg fa-times pg-alertify-button"
text: gettext('Cancel'), className: "btn btn-danger fa fa-lg fa-times pg-alertify-button"
}
],
focus: { element: 0 },
options: {
padding: !1,
overflow: !1,
title: t('Preferences'),
title: gettext('Preferences'),
closableByDimmer: false,
modal:false,
pinnable: false
@ -383,7 +383,7 @@ define(
return;
}
if (e.button.text == t('OK')){
if (e.button.text == gettext('OK')){
preferences.updateAll();
}
},

View File

@ -1,8 +1,8 @@
define(
['jquery', 'alertify', 'pgadmin', 'underscore', 'backform', 'sources/translate', 'pgadmin.backform'],
['jquery', 'alertify', 'pgadmin', 'underscore', 'backform', 'sources/gettext', 'pgadmin.backform'],
// This defines the Preference/Options Dialog for pgAdmin IV.
function($, alertify, pgAdmin, _, Backform, t) {
function($, alertify, pgAdmin, _, Backform, gettext) {
pgAdmin = pgAdmin || window.pgAdmin || {};
/*
@ -23,8 +23,8 @@ define(
// and reload the window
show: function() {
var obj = this;
alertify.confirm(t('Reset layout'),
t('Are you sure you want to reset the current layout? This will cause the application to reload and any un-saved data will be lost.'),
alertify.confirm(gettext('Reset layout'),
gettext('Are you sure you want to reset the current layout? This will cause the application to reload and any un-saved data will be lost.'),
function() {
var reloadingIndicator = $('<div id="reloading-indicator"></div>');
$('body').append(reloadingIndicator);

View File

@ -9,7 +9,7 @@ define(["translations"], function (translations) {
* @param {String} text
* @param {Object} substitutions
*/
return function translate(text, substitutions) {
return function gettext(text, substitutions) {
var rawTranslation = translations[text] ? translations[text] : text;

View File

@ -1,4 +1,4 @@
define(['sources/translate', 'alertify'], function (t, alertify) {
define(['sources/gettext', 'alertify'], function (gettext, alertify) {
var clipboard = {
copyTextToClipboard: function (text) {
var textArea = document.createElement("textarea");
@ -50,8 +50,8 @@ define(['sources/translate', 'alertify'], function (t, alertify) {
document.execCommand('copy');
} catch (err) {
alertify.alert(
t('Error'),
t('Oops, unable to copy to clipboard'));
gettext('Error'),
gettext('Oops, unable to copy to clipboard'));
}
document.body.removeChild(textArea);

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2017-03-27 02:06+0200\n"
"POT-Creation-Date: 2017-03-28 15:16-0400\n"
"PO-Revision-Date: 2017-03-09 18:02+0200\n"
"Last-Translator: grzegorz <begina.felicysym@wp.eu>\n"
"Language-Team: begina.felicysym@wp.eu\n"
@ -23,7 +23,7 @@ msgstr ""
msgid "Auto-detected %s installation with the data directory at %s"
msgstr "Wykryto automatycznie instalację %s z folderem danych %s"
#: pgadmin/about/__init__.py:36
#: pgadmin/about/__init__.py:36 pgadmin/about/templates/about/about.js:44
#, python-format
msgid "About %(appname)s"
msgstr "O aplikacji %(appname)s"
@ -37,6 +37,19 @@ msgstr "Serwer"
msgid "Desktop"
msgstr "Desktop"
#: pgadmin/about/templates/about/about.js:21
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:179
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:258
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:896
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:922
#: pgadmin/tools/datagrid/templates/datagrid/js/datagrid.js:265
#: pgadmin/tools/import_export/templates/import_export/js/import_export.js:376
#: pgadmin/tools/import_export/templates/import_export/js/import_export.js:396
#: pgadmin/tools/maintenance/templates/maintenance/js/maintenance.js:272
#: pgadmin/tools/maintenance/templates/maintenance/js/maintenance.js:292
msgid "OK"
msgstr "OK"
#: pgadmin/about/templates/about/index.html:3
#: pgadmin/browser/server_groups/servers/databases/extensions/templates/extensions/js/extensions.js:202
#: pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/templates/foreign_servers/js/foreign_servers.js:140
@ -335,31 +348,31 @@ msgstr "Należy połączyć z serwerem!"
msgid "EDB Advanced Server"
msgstr "Zaawansowany Serwer EDB"
#: pgadmin/browser/server_groups/servers/types.py:51
#: pgadmin/browser/server_groups/servers/types.py:48
#: pgadmin/help/__init__.py:84
msgid "Paths"
msgstr "Ścieżki"
#: pgadmin/browser/server_groups/servers/types.py:59
#: pgadmin/browser/server_groups/servers/types.py:56
msgid "{0} Binary Path"
msgstr "Ścieżka Binarna {0}"
#: pgadmin/browser/server_groups/servers/types.py:60
#: pgadmin/browser/server_groups/servers/types.py:57
msgid "Binary paths"
msgstr "Ścieżki binarne"
#: pgadmin/browser/server_groups/servers/types.py:63
#: pgadmin/browser/server_groups/servers/types.py:60
msgid ""
"Path to the directory containing the {0} utility programs (pg_dump, "
"pg_restore etc)."
msgstr "Ścieżka zawierająca programy narzędziowe {0} (pg_dump, pg_restore itd)."
#: pgadmin/browser/server_groups/servers/types.py:115
#: pgadmin/browser/server_groups/servers/types.py:111
#, python-format
msgid "Could not find the utility for the operation '%s'"
msgstr "Nie można odnaleźć narzędzia dla operacji '%s'"
#: pgadmin/browser/server_groups/servers/types.py:129
#: pgadmin/browser/server_groups/servers/types.py:125
msgid "PostgreSQL"
msgstr "PostgreSQL"
@ -535,6 +548,9 @@ msgstr "Rzutowanie..."
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/sql/default/stats.sql:5
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:628
#: pgadmin/browser/server_groups/templates/server_groups/server_groups.js:38
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:530
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:557
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:797
msgid "Name"
msgstr "Nazwa"
@ -725,6 +741,8 @@ msgstr "Wyzwalacz Zdarzeniowy..."
#: pgadmin/browser/server_groups/servers/databases/schemas/views/templates/view/js/view.js:109
#: pgadmin/browser/server_groups/servers/databases/templates/databases/js/databases.js:308
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:340
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:540
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:802
#: pgadmin/tools/backup/templates/backup/js/backup.js:201
#: pgadmin/tools/restore/templates/restore/js/restore.js:159
msgid "Owner"
@ -1196,6 +1214,8 @@ msgstr "Mapowanie Użytkownika..."
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:29
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:3
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:28
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:413
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:685
msgid "User"
msgstr "Użytkownik"
@ -2129,6 +2149,8 @@ msgid "Trigger Functions"
msgstr "Funkcje Wyzwalaczy"
#: pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js:44
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:518
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:785
msgid "Mode"
msgstr "Tryb"
@ -4294,6 +4316,9 @@ msgstr "Kaskadowe"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:30
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:4
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:29
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:408
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:468
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:535
msgid "Database"
msgstr "Baza danych"
@ -5858,18 +5883,6 @@ msgstr "Przenieś obiekty do innej przestrzeni tabel"
msgid "Users"
msgstr "Użytkownicy"
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:179
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:258
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:896
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:922
#: pgadmin/tools/datagrid/templates/datagrid/js/datagrid.js:265
#: pgadmin/tools/import_export/templates/import_export/js/import_export.js:376
#: pgadmin/tools/import_export/templates/import_export/js/import_export.js:396
#: pgadmin/tools/maintenance/templates/maintenance/js/maintenance.js:272
#: pgadmin/tools/maintenance/templates/maintenance/js/maintenance.js:292
msgid "OK"
msgstr "OK"
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:181
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:416
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:899
@ -6069,6 +6082,8 @@ msgstr "Połącz z Serwerem"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:31
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:5
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:30
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:428
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:700
msgid "Backend start"
msgstr "Start procesu w tle"
@ -6078,6 +6093,8 @@ msgstr "Start procesu w tle"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:41
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:15
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:40
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:423
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:695
msgid "Client"
msgstr "Klient"
@ -6087,6 +6104,8 @@ msgstr "Klient"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:42
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:16
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:41
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:418
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:690
msgid "Application"
msgstr "Aplikacja"
@ -6094,6 +6113,8 @@ msgstr "Aplikacja"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.2_plus/stats.sql:42
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:17
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:42
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:442
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:714
msgid "Waiting?"
msgstr "Oczekiwanie?"
@ -6508,10 +6529,12 @@ msgid "Block I/O statistics refresh rate"
msgstr "Częstotliwość odświeżania statystyk We/Wy bloków"
#: pgadmin/dashboard/__init__.py:140
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:334
msgid "Please connect to the selected server to view the table."
msgstr "Należy połączyć się do wybranego serwera by zobaczyć tabelę."
#: pgadmin/dashboard/__init__.py:145
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:212
msgid "Please connect to the selected server to view the graph."
msgstr "Należy połączyć się do wybranego serwera by zobaczyć wykres."
@ -6651,6 +6674,132 @@ msgstr ""
msgid "Community Support"
msgstr "Wsparcie Społeczności"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:44
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:104
msgid "An error occurred whilst loading the dashboard."
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:216
msgid "An error occurred whilst rendering the graph."
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:338
#, fuzzy
msgid "An error occurred whilst rendering the table."
msgstr "Wystąpił błąd podczas odczytu opcji narzędzia zapytania"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:403
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:463
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:680
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:735
#, fuzzy
msgid "PID"
msgstr "Oid"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:433
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:705
#, fuzzy
msgid "State"
msgstr "Uruchomione"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:450
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:722
#, fuzzy
msgid "Wait Event"
msgstr "Typ zdarzenia oczekiwania"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:455
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:727
msgid "Blocking PIDs"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:473
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:740
#, fuzzy
msgid "Lock type"
msgstr "Typ Źródłowy"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:478
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:745
#, fuzzy
msgid "Target relation"
msgstr "Współzależność"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:483
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:750
msgid "Page"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:488
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:755
#, fuzzy
msgid "Tuple"
msgstr "reguła"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:493
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:760
msgid "vXID (target)"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:498
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:765
msgid "XID (target)"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:503
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:770
#, fuzzy
msgid "Class"
msgstr "Klasa zadania"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:508
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:775
#, fuzzy
msgid "Object ID"
msgstr "Plik obiektu"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:513
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:780
msgid "vXID (owner)"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:523
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:790
#, fuzzy
msgid "Granted?"
msgstr "Utworzono"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:545
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:807
#, fuzzy
msgid "XID"
msgstr "Oid"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:550
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:812
#, fuzzy
msgid "Prepared at"
msgstr "Przygotowane Transakcje"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:562
#, fuzzy
msgid "Category"
msgstr "Typ kategorii"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:567
#, fuzzy
msgid "Setting"
msgstr "Ustawienia przechowywania"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:572
msgid "Unit"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:577
#, fuzzy
msgid "Description"
msgstr "Sekcje"
#: pgadmin/dashboard/templates/dashboard/sql/default/activity.sql:9
msgid "yes"
msgstr "tak"
@ -6922,6 +7071,15 @@ msgstr "Wyczyść Układ"
msgid "This URL can not be called directly."
msgstr "Ten URL nie może być wywołany bezpośrednio."
#: pgadmin/static/js/selection/clipboard.js:53
#, fuzzy
msgid "Error"
msgstr "Przy błedzie"
#: pgadmin/static/js/selection/clipboard.js:54
msgid "Oops, unable to copy to clipboard"
msgstr ""
#: pgadmin/templates/security/change_password.html:2
#, python-format
msgid "%(appname)s Password Change"
@ -8449,19 +8607,19 @@ msgstr "Niepoprawna wartość dla opcji daty i czasu."
msgid "Invalid value for an options option."
msgstr "Niepoprawna wartość dla opcji z opcjami."
#: pgadmin/utils/preferences.py:513
#: pgadmin/utils/preferences.py:514
msgid "Could not fine the specified module."
msgstr "Nie udało się znaleźć wskazanego modułu"
#: pgadmin/utils/preferences.py:518
#: pgadmin/utils/preferences.py:519
msgid "Module '{0}' is no longer in use."
msgstr "Moduł '{0}' nie jest już używany."
#: pgadmin/utils/preferences.py:531
#: pgadmin/utils/preferences.py:532
msgid "Module '{0}' does not have category with id '{1}'"
msgstr "Moduł '{0}' nie ma kategorii o id '{1}'"
#: pgadmin/utils/preferences.py:545
#: pgadmin/utils/preferences.py:546
msgid "Could not find the specified preference."
msgstr "Nie udało się znaleźć wskazanej preferencji."

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2017-03-27 02:06+0200\n"
"POT-Creation-Date: 2017-03-28 15:16-0400\n"
"PO-Revision-Date: 2017-11-14 23:55+0800\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: zh_Hans_CN <LL@li.org>\n"
@ -22,7 +22,7 @@ msgstr ""
msgid "Auto-detected %s installation with the data directory at %s"
msgstr "自动检测到%s的安装,数据目录在%s "
#: pgadmin/about/__init__.py:36
#: pgadmin/about/__init__.py:36 pgadmin/about/templates/about/about.js:44
#, python-format
msgid "About %(appname)s"
msgstr "About %(appname)s"
@ -36,6 +36,19 @@ msgstr "服务器"
msgid "Desktop"
msgstr "桌面"
#: pgadmin/about/templates/about/about.js:21
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:179
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:258
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:896
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:922
#: pgadmin/tools/datagrid/templates/datagrid/js/datagrid.js:265
#: pgadmin/tools/import_export/templates/import_export/js/import_export.js:376
#: pgadmin/tools/import_export/templates/import_export/js/import_export.js:396
#: pgadmin/tools/maintenance/templates/maintenance/js/maintenance.js:272
#: pgadmin/tools/maintenance/templates/maintenance/js/maintenance.js:292
msgid "OK"
msgstr "好"
#: pgadmin/about/templates/about/index.html:3
#: pgadmin/browser/server_groups/servers/databases/extensions/templates/extensions/js/extensions.js:202
#: pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/templates/foreign_servers/js/foreign_servers.js:140
@ -335,31 +348,31 @@ msgstr "请连接服务器"
msgid "EDB Advanced Server"
msgstr "EDB Advanced Server"
#: pgadmin/browser/server_groups/servers/types.py:51
#: pgadmin/browser/server_groups/servers/types.py:48
#: pgadmin/help/__init__.py:84
msgid "Paths"
msgstr "路径"
#: pgadmin/browser/server_groups/servers/types.py:59
#: pgadmin/browser/server_groups/servers/types.py:56
msgid "{0} Binary Path"
msgstr "{0} 二进制文件路径"
#: pgadmin/browser/server_groups/servers/types.py:60
#: pgadmin/browser/server_groups/servers/types.py:57
msgid "Binary paths"
msgstr "二进制路径"
#: pgadmin/browser/server_groups/servers/types.py:63
#: pgadmin/browser/server_groups/servers/types.py:60
msgid ""
"Path to the directory containing the {0} utility programs (pg_dump, "
"pg_restore etc)."
msgstr "包含{0} 实用程序pg_dumppg_restore等的目录的路径。"
#: pgadmin/browser/server_groups/servers/types.py:115
#: pgadmin/browser/server_groups/servers/types.py:111
#, python-format
msgid "Could not find the utility for the operation '%s'"
msgstr "找不到的该程序的操作 %s"
#: pgadmin/browser/server_groups/servers/types.py:129
#: pgadmin/browser/server_groups/servers/types.py:125
msgid "PostgreSQL"
msgstr "PostgreSQL"
@ -535,6 +548,9 @@ msgstr "转换中..."
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/sql/default/stats.sql:5
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:628
#: pgadmin/browser/server_groups/templates/server_groups/server_groups.js:38
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:530
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:557
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:797
msgid "Name"
msgstr "名称"
@ -726,6 +742,8 @@ msgstr "事件触发器..."
#: pgadmin/browser/server_groups/servers/databases/schemas/views/templates/view/js/view.js:109
#: pgadmin/browser/server_groups/servers/databases/templates/databases/js/databases.js:308
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:340
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:540
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:802
#: pgadmin/tools/backup/templates/backup/js/backup.js:201
#: pgadmin/tools/restore/templates/restore/js/restore.js:159
msgid "Owner"
@ -1200,6 +1218,8 @@ msgstr "用户映射..."
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:29
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:3
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:28
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:413
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:685
msgid "User"
msgstr "用户"
@ -2114,6 +2134,8 @@ msgid "Trigger Functions"
msgstr "触发器函数"
#: pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js:44
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:518
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:785
msgid "Mode"
msgstr "模式"
@ -4294,6 +4316,9 @@ msgstr "级联"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:30
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:4
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:29
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:408
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:468
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:535
msgid "Database"
msgstr "数据库"
@ -5809,18 +5834,6 @@ msgstr "移动对象到另一个表空间"
msgid "Users"
msgstr "用户"
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:179
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:258
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:896
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:922
#: pgadmin/tools/datagrid/templates/datagrid/js/datagrid.js:265
#: pgadmin/tools/import_export/templates/import_export/js/import_export.js:376
#: pgadmin/tools/import_export/templates/import_export/js/import_export.js:396
#: pgadmin/tools/maintenance/templates/maintenance/js/maintenance.js:272
#: pgadmin/tools/maintenance/templates/maintenance/js/maintenance.js:292
msgid "OK"
msgstr "好"
#: pgadmin/browser/server_groups/servers/tablespaces/templates/tablespaces/js/tablespaces.js:181
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:416
#: pgadmin/browser/server_groups/servers/templates/servers/servers.js:899
@ -6020,6 +6033,8 @@ msgstr "连接到服务器"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:31
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:5
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:30
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:428
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:700
msgid "Backend start"
msgstr "Backend start"
@ -6029,6 +6044,8 @@ msgstr "Backend start"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:41
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:15
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:40
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:423
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:695
msgid "Client"
msgstr "Client"
@ -6038,6 +6055,8 @@ msgstr "Client"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.6_plus/stats.sql:42
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:16
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:41
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:418
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:690
msgid "Application"
msgstr "Application"
@ -6045,6 +6064,8 @@ msgstr "Application"
#: pgadmin/browser/server_groups/servers/templates/servers/sql/9.2_plus/stats.sql:42
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:17
#: pgadmin/browser/server_groups/servers/templates/servers/sql/default/stats.sql:42
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:442
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:714
msgid "Waiting?"
msgstr "Waiting?"
@ -6456,10 +6477,12 @@ msgid "Block I/O statistics refresh rate"
msgstr "数据块 I/O 统计刷新率"
#: pgadmin/dashboard/__init__.py:140
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:334
msgid "Please connect to the selected server to view the table."
msgstr "请连接到所选的服务器,以便查看表"
#: pgadmin/dashboard/__init__.py:145
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:212
msgid "Please connect to the selected server to view the graph."
msgstr "请连接到所选的服务器,以便查看图表"
@ -6596,6 +6619,133 @@ msgstr ""
msgid "Community Support"
msgstr "社区支持"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:44
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:104
msgid "An error occurred whilst loading the dashboard."
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:216
msgid "An error occurred whilst rendering the graph."
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:338
#, fuzzy
msgid "An error occurred whilst rendering the table."
msgstr "获取查询工具选项时发生错误"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:403
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:463
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:680
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:735
#, fuzzy
msgid "PID"
msgstr "Oid"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:433
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:705
#, fuzzy
msgid "State"
msgstr "已启动"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:450
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:722
#, fuzzy
msgid "Wait Event"
msgstr "Wait event type"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:455
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:727
msgid "Blocking PIDs"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:473
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:740
#, fuzzy
msgid "Lock type"
msgstr "源类型"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:478
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:745
#, fuzzy
msgid "Target relation"
msgstr "相关性"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:483
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:750
msgid "Page"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:488
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:755
#, fuzzy
msgid "Tuple"
msgstr "规则"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:493
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:760
msgid "vXID (target)"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:498
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:765
msgid "XID (target)"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:503
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:770
#, fuzzy
msgid "Class"
msgstr "任务类"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:508
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:775
#, fuzzy
msgid "Object ID"
msgstr "对象文件"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:513
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:780
msgid "vXID (owner)"
msgstr ""
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:523
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:790
#, fuzzy
msgid "Granted?"
msgstr "创建"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:545
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:807
#, fuzzy
msgid "XID"
msgstr "Oid"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:550
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:812
#, fuzzy
msgid "Prepared at"
msgstr "准备事务"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:562
#, fuzzy
msgid "Category"
msgstr "类别类型"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:567
#, fuzzy
msgid "Setting"
msgstr "存储设置"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:572
#, fuzzy
msgid "Unit"
msgstr "没有标题"
#: pgadmin/dashboard/templates/dashboard/js/dashboard.js:577
#, fuzzy
msgid "Description"
msgstr "节数"
#: pgadmin/dashboard/templates/dashboard/sql/default/activity.sql:9
msgid "yes"
msgstr ""
@ -6863,6 +7013,15 @@ msgstr "重置布局"
msgid "This URL can not be called directly."
msgstr "此 URL 可以不能直接被调用"
#: pgadmin/static/js/selection/clipboard.js:53
#, fuzzy
msgid "Error"
msgstr "出现错误"
#: pgadmin/static/js/selection/clipboard.js:54
msgid "Oops, unable to copy to clipboard"
msgstr ""
#: pgadmin/templates/security/change_password.html:2
#, python-format
msgid "%(appname)s Password Change"
@ -8353,19 +8512,19 @@ msgstr "datetime 选项的无效值"
msgid "Invalid value for an options option."
msgstr "选项配置的无效"
#: pgadmin/utils/preferences.py:513
#: pgadmin/utils/preferences.py:514
msgid "Could not fine the specified module."
msgstr "找不到指定的模块"
#: pgadmin/utils/preferences.py:518
#: pgadmin/utils/preferences.py:519
msgid "Module '{0}' is no longer in use."
msgstr "模块'{0}'不再使用"
#: pgadmin/utils/preferences.py:531
#: pgadmin/utils/preferences.py:532
msgid "Module '{0}' does not have category with id '{1}'"
msgstr "模块'{0}'没有 id 为'{1}'类别"
#: pgadmin/utils/preferences.py:545
#: pgadmin/utils/preferences.py:546
msgid "Could not find the specified preference."
msgstr "找不到指定的首选项"

View File

@ -7,20 +7,20 @@
//
//////////////////////////////////////////////////////////////////////////
define(["sources/translate", "translations"], function (translate, translations) {
define(["sources/gettext", "translations"], function (gettext, translations) {
describe("translate", function () {
describe("when there is no translation", function () {
it("returns the original string", function () {
expect(translate("something to be translated")).toEqual("something to be translated");
expect(gettext("something to be translated")).toEqual("something to be translated");
});
describe("when there are substitutions", function () {
it("interpolates a substitution", function () {
expect(translate("translate text for %(person)s", {"person": "Sarah"})).toEqual("translate text for Sarah")
expect(gettext("translate text for %(person)s", {"person": "Sarah"})).toEqual("translate text for Sarah")
});
it("interpolates multiple substitutions", function () {
expect(translate("translate '%(text)s' for %(person)s",
expect(gettext("translate '%(text)s' for %(person)s",
{
"text": "constitution",
"person": "Sarah"
@ -38,12 +38,12 @@ define(["sources/translate", "translations"], function (translate, translations)
});
it("returns the translation", function () {
expect(translate("something to be translated")).toEqual("etwas zum uebersetzen");
expect(gettext("something to be translated")).toEqual("etwas zum uebersetzen");
});
describe("when there is a substitution", function () {
it("interpolates the substitution", function () {
expect(translate("another translation for %(person)s", {"person": "Sarah"}))
expect(gettext("another translation for %(person)s", {"person": "Sarah"}))
.toEqual("eine weitere Uebersetzung fuer Sarah");
});
});