mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix i18n for the docking system.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
[python: **.py]
|
[python: **.py]
|
||||||
[jinja2: **/templates/**.html]
|
[jinja2: **/templates/**.html]
|
||||||
|
[jinja2: **/templates/**.js]
|
||||||
extensions=jinja2.ext.autoescape,jinja2.ext.with_
|
extensions=jinja2.ext.autoescape,jinja2.ext.with_
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ $(window).bind('unload', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Build a regular dock panel
|
// Build a regular dock panel
|
||||||
function buildPanel(docker, name, width, height, showTitle, isCloseable, isPrivate, content) {
|
function buildPanel(docker, name, title, width, height, showTitle, isCloseable, isPrivate, content) {
|
||||||
docker.registerPanelType(name, {
|
docker.registerPanelType(name, {
|
||||||
isPrivate: isPrivate,
|
isPrivate: isPrivate,
|
||||||
onCreate: function(myPanel) {
|
onCreate: function(myPanel) {
|
||||||
@@ -23,6 +23,8 @@ function buildPanel(docker, name, width, height, showTitle, isCloseable, isPriva
|
|||||||
|
|
||||||
if (showTitle == false)
|
if (showTitle == false)
|
||||||
myPanel.title(false);
|
myPanel.title(false);
|
||||||
|
else
|
||||||
|
myPanel.title(title);
|
||||||
|
|
||||||
myPanel.closeable(isCloseable);
|
myPanel.closeable(isCloseable);
|
||||||
|
|
||||||
@@ -32,7 +34,7 @@ function buildPanel(docker, name, width, height, showTitle, isCloseable, isPriva
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Build an iFrame dock panel
|
// Build an iFrame dock panel
|
||||||
function buildIFramePanel(docker, name, width, height, showTitle, isCloseable, isPrivate, url) {
|
function buildIFramePanel(docker, name, title, width, height, showTitle, isCloseable, isPrivate, url) {
|
||||||
docker.registerPanelType(name, {
|
docker.registerPanelType(name, {
|
||||||
isPrivate: isPrivate,
|
isPrivate: isPrivate,
|
||||||
onCreate: function(myPanel) {
|
onCreate: function(myPanel) {
|
||||||
@@ -40,6 +42,8 @@ function buildIFramePanel(docker, name, width, height, showTitle, isCloseable, i
|
|||||||
|
|
||||||
if (showTitle == false)
|
if (showTitle == false)
|
||||||
myPanel.title(false);
|
myPanel.title(false);
|
||||||
|
else
|
||||||
|
myPanel.title(title);
|
||||||
|
|
||||||
myPanel.closeable(isCloseable);
|
myPanel.closeable(isCloseable);
|
||||||
|
|
||||||
@@ -82,27 +86,27 @@ WITH ( \n\
|
|||||||
ALTER TABLE tickets_detail \n\
|
ALTER TABLE tickets_detail \n\
|
||||||
OWNER TO helpdesk;\n';
|
OWNER TO helpdesk;\n';
|
||||||
|
|
||||||
buildPanel(docker, 'SQL', 500, 200, false, false, true,
|
buildPanel(docker, 'sql', '{{ _('SQL') }}', 500, 200, false, false, true,
|
||||||
'<textarea id="sql-textarea" name="sql-textarea">' + demoSql + '</textarea>')
|
'<textarea id="sql-textarea" name="sql-textarea">' + demoSql + '</textarea>')
|
||||||
buildPanel(docker, 'Browser', 300, 600, false, false, true,
|
buildPanel(docker, 'browser', '{{ _('Browser') }}', 300, 600, false, false, true,
|
||||||
'<div id="tree" class="aciTree">')
|
'<div id="tree" class="aciTree">')
|
||||||
buildIFramePanel(docker, 'Dashboard', 500, 600, true, false, true,
|
buildIFramePanel(docker, 'dashboard', '{{ _('Dashboard') }}', 500, 600, true, false, true,
|
||||||
'http://www.pgadmin.org/')
|
'http://www.pgadmin.org/')
|
||||||
buildPanel(docker, 'Properties', 500, 600, true, false, true,
|
buildPanel(docker, 'properties', '{{ _('Properties') }}', 500, 600, true, false, true,
|
||||||
'<p>Properties pane</p>')
|
'<p>Properties pane</p>')
|
||||||
buildPanel(docker, 'Statistics', 500, 600, true, false, true,
|
buildPanel(docker, 'statistics', '{{ _('Statistics') }}', 500, 600, true, false, true,
|
||||||
'<p>Statistics pane</p>')
|
'<p>Statistics pane</p>')
|
||||||
buildPanel(docker, 'Dependencies', 500, 600, true, false, true,
|
buildPanel(docker, 'dependencies', '{{ _('Dependencies') }}', 500, 600, true, false, true,
|
||||||
'<p>Depedencies pane</p>')
|
'<p>Depedencies pane</p>')
|
||||||
buildPanel(docker, 'Dependents', 500, 600, true, false, true,
|
buildPanel(docker, 'dependents', '{{ _('Dependents') }}', 500, 600, true, false, true,
|
||||||
'<p>Dependents pane</p>')
|
'<p>Dependents pane</p>')
|
||||||
|
|
||||||
// Some useful panels
|
// Some useful panels
|
||||||
buildIFramePanel(docker, 'Online Help', 500, 600, true, true, false,
|
buildIFramePanel(docker, 'online_help', '{{ _('Online Help') }}', 500, 600, true, true, false,
|
||||||
'{{ url_for('help.static', filename='index.html') }}')
|
'{{ url_for('help.static', filename='index.html') }}')
|
||||||
buildIFramePanel(docker, 'pgAdmin Website', 500, 600, true, true, false,
|
buildIFramePanel(docker, 'pgadmin_website', '{{ _('pgAdmin Website') }}', 500, 600, true, true, false,
|
||||||
'http://www.pgadmin.org/')
|
'http://www.pgadmin.org/')
|
||||||
buildIFramePanel(docker, 'PostgreSQL Website', 500, 600, true, true, false,
|
buildIFramePanel(docker, 'postgresql_website', '{{ _('PostgreSQL Website') }}', 500, 600, true, true, false,
|
||||||
'http://www.postgresql.org/')
|
'http://www.postgresql.org/')
|
||||||
|
|
||||||
var layout = '{{ layout }}';
|
var layout = '{{ layout }}';
|
||||||
@@ -111,13 +115,13 @@ ALTER TABLE tickets_detail \n\
|
|||||||
if (layout != '') {
|
if (layout != '') {
|
||||||
docker.restore(layout)
|
docker.restore(layout)
|
||||||
} else {
|
} else {
|
||||||
var dashboardPanel = docker.addPanel('Dashboard', wcDocker.DOCK_TOP, propertiesPanel);
|
var dashboardPanel = docker.addPanel('dashboard', wcDocker.DOCK_TOP, propertiesPanel);
|
||||||
var propertiesPanel = docker.addPanel('Properties', wcDocker.DOCK_STACKED, dashboardPanel);
|
var propertiesPanel = docker.addPanel('properties', wcDocker.DOCK_STACKED, dashboardPanel);
|
||||||
var statisticsPanel = docker.addPanel('Statistics', wcDocker.DOCK_STACKED, dashboardPanel);
|
var statisticsPanel = docker.addPanel('statistics', wcDocker.DOCK_STACKED, dashboardPanel);
|
||||||
var dependenciesPanel = docker.addPanel('Dependencies', wcDocker.DOCK_STACKED, dashboardPanel);
|
var dependenciesPanel = docker.addPanel('dependencies', wcDocker.DOCK_STACKED, dashboardPanel);
|
||||||
var dependentsPanel = docker.addPanel('Dependents', wcDocker.DOCK_STACKED, dashboardPanel);
|
var dependentsPanel = docker.addPanel('dependents', wcDocker.DOCK_STACKED, dashboardPanel);
|
||||||
var sqlPanel = docker.addPanel('SQL', wcDocker.DOCK_BOTTOM, sqlPanel);
|
var sqlPanel = docker.addPanel('sql', wcDocker.DOCK_BOTTOM, sqlPanel);
|
||||||
var browserPanel = docker.addPanel('Browser', wcDocker.DOCK_LEFT, browserPanel);
|
var browserPanel = docker.addPanel('browser', wcDocker.DOCK_LEFT, browserPanel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PROJECT VERSION\n"
|
"Project-Id-Version: PROJECT VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||||
"POT-Creation-Date: 2015-02-25 16:30+0000\n"
|
"POT-Creation-Date: 2015-03-03 10:50+0000\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@@ -80,24 +80,28 @@ msgstr ""
|
|||||||
msgid "No server group was specified."
|
msgid "No server group was specified."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:11
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:4
|
||||||
msgid "Dashboard"
|
msgid "Add a server group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:12
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:5
|
||||||
msgid "Properties"
|
msgid "Enter a name for the new server group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:13
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:37
|
||||||
msgid "Statistics"
|
msgid "Delete server group?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:14
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:38
|
||||||
msgid "Dependencies"
|
msgid "Are you sure you wish to delete the server group \"{0}\"?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:15
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:65
|
||||||
msgid "Dependents"
|
msgid "Rename server group"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:66
|
||||||
|
msgid "Enter a new name for the server group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/index.html:8
|
#: pgadmin/browser/templates/browser/index.html:8
|
||||||
@@ -133,6 +137,58 @@ msgstr ""
|
|||||||
msgid "Logout"
|
msgid "Logout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:89
|
||||||
|
msgid "SQL"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:91
|
||||||
|
msgid "Browser"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:93
|
||||||
|
msgid "Dashboard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:95
|
||||||
|
msgid "Properties"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:97
|
||||||
|
msgid "Statistics"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:99
|
||||||
|
msgid "Dependencies"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:101
|
||||||
|
msgid "Dependents"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:105
|
||||||
|
msgid "Online Help"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:107
|
||||||
|
msgid "pgAdmin Website"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:109
|
||||||
|
msgid "PostgreSQL Website"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:173
|
||||||
|
msgid "Error message"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:187
|
||||||
|
msgid "Additional info"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:201
|
||||||
|
msgid "An error has occurred"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/help/hooks.py:21
|
#: pgadmin/help/hooks.py:21
|
||||||
msgid "Contents"
|
msgid "Contents"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -171,10 +227,6 @@ msgstr ""
|
|||||||
msgid "Forgotten your <a href=\"%(url)s\">password</a>?"
|
msgid "Forgotten your <a href=\"%(url)s\">password</a>?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/templates/security/messages.html:6
|
|
||||||
msgid "Close"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: pgadmin/templates/security/reset_password.html:2
|
#: pgadmin/templates/security/reset_password.html:2
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "%(appname)s Password Reset"
|
msgid "%(appname)s Password Reset"
|
||||||
|
|||||||
@@ -606,7 +606,7 @@ wcPanel.prototype = {
|
|||||||
var data = {};
|
var data = {};
|
||||||
data.type = 'wcPanel';
|
data.type = 'wcPanel';
|
||||||
data.panelType = this._type;
|
data.panelType = this._type;
|
||||||
data.title = this._title;
|
// data.title = this._title;
|
||||||
// data.minSize = {
|
// data.minSize = {
|
||||||
// x: this._minSize.x,
|
// x: this._minSize.x,
|
||||||
// y: this._minSize.y,
|
// y: this._minSize.y,
|
||||||
@@ -629,7 +629,7 @@ wcPanel.prototype = {
|
|||||||
|
|
||||||
// Restores a previously saved configuration.
|
// Restores a previously saved configuration.
|
||||||
__restore: function(data, docker) {
|
__restore: function(data, docker) {
|
||||||
this._title = data.title;
|
// this._title = data.title;
|
||||||
// this._minSize.x = data.minSize.x;
|
// this._minSize.x = data.minSize.x;
|
||||||
// this._minSize.y = data.minSize.y;
|
// this._minSize.y = data.minSize.y;
|
||||||
// this._maxSize.x = data.maxSize.x;
|
// this._maxSize.x = data.maxSize.x;
|
||||||
|
|||||||
Binary file not shown.
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PROJECT VERSION\n"
|
"Project-Id-Version: PROJECT VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||||
"POT-Creation-Date: 2015-02-25 16:30+0000\n"
|
"POT-Creation-Date: 2015-03-03 10:50+0000\n"
|
||||||
"PO-Revision-Date: 2015-02-25 17:04+0000\n"
|
"PO-Revision-Date: 2015-02-25 17:04+0000\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: fr <LL@li.org>\n"
|
"Language-Team: fr <LL@li.org>\n"
|
||||||
@@ -81,24 +81,28 @@ msgstr ""
|
|||||||
msgid "No server group was specified."
|
msgid "No server group was specified."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:11
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:4
|
||||||
msgid "Dashboard"
|
msgid "Add a server group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:12
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:5
|
||||||
msgid "Properties"
|
msgid "Enter a name for the new server group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:13
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:37
|
||||||
msgid "Statistics"
|
msgid "Delete server group?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:14
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:38
|
||||||
msgid "Dependencies"
|
msgid "Are you sure you wish to delete the server group \"{0}\"?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/body.html:15
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:65
|
||||||
msgid "Dependents"
|
msgid "Rename server group"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/nodes/server_groups/templates/server_groups/server_groups.js:66
|
||||||
|
msgid "Enter a new name for the server group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/browser/templates/browser/index.html:8
|
#: pgadmin/browser/templates/browser/index.html:8
|
||||||
@@ -134,6 +138,58 @@ msgstr ""
|
|||||||
msgid "Logout"
|
msgid "Logout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:89
|
||||||
|
msgid "SQL"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:91
|
||||||
|
msgid "Browser"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:93
|
||||||
|
msgid "Dashboard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:95
|
||||||
|
msgid "Properties"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:97
|
||||||
|
msgid "Statistics"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:99
|
||||||
|
msgid "Dependencies"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:101
|
||||||
|
msgid "Dependents"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:105
|
||||||
|
msgid "Online Help"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:107
|
||||||
|
msgid "pgAdmin Website"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:109
|
||||||
|
msgid "PostgreSQL Website"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:173
|
||||||
|
msgid "Error message"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:187
|
||||||
|
msgid "Additional info"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pgadmin/browser/templates/browser/js/browser.js:201
|
||||||
|
msgid "An error has occurred"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/help/hooks.py:21
|
#: pgadmin/help/hooks.py:21
|
||||||
msgid "Contents"
|
msgid "Contents"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -172,10 +228,6 @@ msgstr ""
|
|||||||
msgid "Forgotten your <a href=\"%(url)s\">password</a>?"
|
msgid "Forgotten your <a href=\"%(url)s\">password</a>?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pgadmin/templates/security/messages.html:6
|
|
||||||
msgid "Close"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: pgadmin/templates/security/reset_password.html:2
|
#: pgadmin/templates/security/reset_password.html:2
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "%(appname)s Password Reset"
|
msgid "%(appname)s Password Reset"
|
||||||
@@ -209,3 +261,6 @@ msgstr ""
|
|||||||
msgid "Test Notifier"
|
msgid "Test Notifier"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Close"
|
||||||
|
#~ msgstr ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user