mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
modify translate user settings
This commit is contained in:
parent
0ff0f25aaf
commit
4f7d98aace
@ -27,7 +27,7 @@ RED.projects.userSettings = (function() {
|
|||||||
var title = $('<h3></h3>').text(RED._("editor:sidebar.project.userSettings.committerDetail")).appendTo(pane);
|
var title = $('<h3></h3>').text(RED._("editor:sidebar.project.userSettings.committerDetail")).appendTo(pane);
|
||||||
|
|
||||||
var gitconfigContainer = $('<div class="user-settings-section"></div>').appendTo(pane);
|
var gitconfigContainer = $('<div class="user-settings-section"></div>').appendTo(pane);
|
||||||
$('<div style="color:#aaa;"></div>').appendTo(gitconfigContainer).text(RED._("editor:sidebar.project.userSettings.committer-tip"));
|
$('<div style="color:#aaa;"></div>').appendTo(gitconfigContainer).text(RED._("editor:sidebar.project.userSettings.committerTip"));
|
||||||
|
|
||||||
var row = $('<div class="user-settings-row"></div>').appendTo(gitconfigContainer);
|
var row = $('<div class="user-settings-row"></div>').appendTo(gitconfigContainer);
|
||||||
$('<label for=""></label>').text(RED._("editor:sidebar.project.userSettings.userName")).appendTo(row);
|
$('<label for=""></label>').text(RED._("editor:sidebar.project.userSettings.userName")).appendTo(row);
|
||||||
@ -45,7 +45,7 @@ RED.projects.userSettings = (function() {
|
|||||||
var container = $('<div class="user-settings-section"></div>').appendTo(pane);
|
var container = $('<div class="user-settings-section"></div>').appendTo(pane);
|
||||||
var popover;
|
var popover;
|
||||||
var title = $('<h3></h3>').text(RED._("editor:sidebar.project.userSettings.sshKeys")).appendTo(container);
|
var title = $('<h3></h3>').text(RED._("editor:sidebar.project.userSettings.sshKeys")).appendTo(container);
|
||||||
var subtitle = $('<div style="color:#aaa;"></div>').appendTo(container).text(RED._("editor:sidebar.project.userSettings.sshKeys-tip"));
|
var subtitle = $('<div style="color:#aaa;"></div>').appendTo(container).text(RED._("editor:sidebar.project.userSettings.sshKeysTip"));
|
||||||
|
|
||||||
var addKeyButton = $('<button id="user-settings-gitconfig-add-key" class="editor-button editor-button-small" style="float: right; margin-right: 10px;">'+RED._("editor:sidebar.project.userSettings.add")+'</button>')
|
var addKeyButton = $('<button id="user-settings-gitconfig-add-key" class="editor-button editor-button-small" style="float: right; margin-right: 10px;">'+RED._("editor:sidebar.project.userSettings.add")+'</button>')
|
||||||
.appendTo(subtitle)
|
.appendTo(subtitle)
|
||||||
@ -72,7 +72,7 @@ RED.projects.userSettings = (function() {
|
|||||||
var validPassphrase = passphrase.length === 0 || passphrase.length >= 8;
|
var validPassphrase = passphrase.length === 0 || passphrase.length >= 8;
|
||||||
passphraseInput.toggleClass('input-error',!validPassphrase);
|
passphraseInput.toggleClass('input-error',!validPassphrase);
|
||||||
if (!validPassphrase) {
|
if (!validPassphrase) {
|
||||||
passphraseInputSubLabel.text(RED._("editor:sidebar.project.userSettings.passphrase-short"));
|
passphraseInputSubLabel.text(RED._("editor:sidebar.project.userSettings.passphraseShort"));
|
||||||
} else if (passphrase.length === 0) {
|
} else if (passphrase.length === 0) {
|
||||||
passphraseInputSubLabel.text(RED._("editor:sidebar.project.userSettings.optional"));
|
passphraseInputSubLabel.text(RED._("editor:sidebar.project.userSettings.optional"));
|
||||||
} else {
|
} else {
|
||||||
@ -91,11 +91,11 @@ RED.projects.userSettings = (function() {
|
|||||||
|
|
||||||
var row = $('<div class="user-settings-row"></div>').appendTo(container);
|
var row = $('<div class="user-settings-row"></div>').appendTo(container);
|
||||||
var addKeyDialog = $('<div class="projects-dialog-list-dialog"></div>').hide().appendTo(row);
|
var addKeyDialog = $('<div class="projects-dialog-list-dialog"></div>').hide().appendTo(row);
|
||||||
$('<div class="projects-dialog-list-dialog-header">').text(RED._("editor:sidebar.project.userSettings.add-sshKey")).appendTo(addKeyDialog);
|
$('<div class="projects-dialog-list-dialog-header">').text(RED._("editor:sidebar.project.userSettings.addSshKey")).appendTo(addKeyDialog);
|
||||||
var addKeyDialogBody = $('<div>').appendTo(addKeyDialog);
|
var addKeyDialogBody = $('<div>').appendTo(addKeyDialog);
|
||||||
|
|
||||||
row = $('<div class="user-settings-row"></div>').appendTo(addKeyDialogBody);
|
row = $('<div class="user-settings-row"></div>').appendTo(addKeyDialogBody);
|
||||||
$('<div style="color:#aaa;"></div>').appendTo(row).text(RED._("editor:sidebar.project.userSettings.add-sshKey-tip"));
|
$('<div style="color:#aaa;"></div>').appendTo(row).text(RED._("editor:sidebar.project.userSettings.addSshKeyTip"));
|
||||||
// var bg = $('<div></div>',{class:"button-group", style:"text-align: center"}).appendTo(row);
|
// var bg = $('<div></div>',{class:"button-group", style:"text-align: center"}).appendTo(row);
|
||||||
// var addLocalButton = $('<button class="editor-button toggle selected">use local key</button>').appendTo(bg);
|
// var addLocalButton = $('<button class="editor-button toggle selected">use local key</button>').appendTo(bg);
|
||||||
// var uploadButton = $('<button class="editor-button toggle">upload key</button>').appendTo(bg);
|
// var uploadButton = $('<button class="editor-button toggle">upload key</button>').appendTo(bg);
|
||||||
@ -264,7 +264,7 @@ RED.projects.userSettings = (function() {
|
|||||||
utils.sendRequest(options);
|
utils.sendRequest(options);
|
||||||
|
|
||||||
var formButtons = $('<span class="button-row" style="position: relative; float: right; margin: 10px;"></span>').appendTo(row);
|
var formButtons = $('<span class="button-row" style="position: relative; float: right; margin: 10px;"></span>').appendTo(row);
|
||||||
$('<button class="editor-button editor-button-small">'+RED._("editor:sidebar.project.userSettings.copy-publicKey")+'</button>')
|
$('<button class="editor-button editor-button-small">'+RED._("editor:sidebar.project.userSettings.copyPublicKey")+'</button>')
|
||||||
.appendTo(formButtons)
|
.appendTo(formButtons)
|
||||||
.click(function(evt) {
|
.click(function(evt) {
|
||||||
try {
|
try {
|
||||||
@ -289,7 +289,7 @@ RED.projects.userSettings = (function() {
|
|||||||
var container = $('<div class="projects-dialog-list-entry">').appendTo(row);
|
var container = $('<div class="projects-dialog-list-entry">').appendTo(row);
|
||||||
if (entry.empty) {
|
if (entry.empty) {
|
||||||
container.addClass('red-ui-search-empty');
|
container.addClass('red-ui-search-empty');
|
||||||
container.text(RED._("editor:sidebar.project.userSettings.no-sshKeys"));
|
container.text(RED._("editor:sidebar.project.userSettings.noSshKeys"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var topRow = $('<div class="projects-dialog-ssh-key-header">').appendTo(container);
|
var topRow = $('<div class="projects-dialog-ssh-key-header">').appendTo(container);
|
||||||
@ -400,7 +400,7 @@ RED.projects.userSettings = (function() {
|
|||||||
utils = _utils;
|
utils = _utils;
|
||||||
RED.userSettings.add({
|
RED.userSettings.add({
|
||||||
id:'gitconfig',
|
id:'gitconfig',
|
||||||
title: RED._("editor:sidebar.project.userSettings.git-config"), // TODO: nls
|
title: RED._("editor:sidebar.project.userSettings.gitConfig"),
|
||||||
get: createSettingsPane,
|
get: createSettingsPane,
|
||||||
close: function() {
|
close: function() {
|
||||||
var currentGitSettings = RED.settings.get('git') || {};
|
var currentGitSettings = RED.settings.get('git') || {};
|
||||||
|
@ -437,25 +437,25 @@
|
|||||||
"editDependencies": "Edit project dependencies",
|
"editDependencies": "Edit project dependencies",
|
||||||
"userSettings": {
|
"userSettings": {
|
||||||
"committerDetail": "Committer Details",
|
"committerDetail": "Committer Details",
|
||||||
"committer-tip": "Leave blank to use system default",
|
"committerTip": "Leave blank to use system default",
|
||||||
"userName": "Username",
|
"userName": "Username",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"sshKeys": "SSH Keys",
|
"sshKeys": "SSH Keys",
|
||||||
"sshKeys-tip": "Allows you to create secure connections to remote git repositories.",
|
"sshKeysTip": "Allows you to create secure connections to remote git repositories.",
|
||||||
"add": "add key",
|
"add": "add key",
|
||||||
"add-sshKey": "Add SSH Key",
|
"addSshKey": "Add SSH Key",
|
||||||
"add-sshKey-tip": "Generate a new public/private key pair",
|
"addSshKeyTip": "Generate a new public/private key pair",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"nameRule": "Must contain only A-Z 0-9 _ -",
|
"nameRule": "Must contain only A-Z 0-9 _ -",
|
||||||
"passphrase": "Passphrase",
|
"passphrase": "Passphrase",
|
||||||
"passphrase-short": "Passphrase too short",
|
"passphraseShort": "Passphrase too short",
|
||||||
"optional": "Optional",
|
"optional": "Optional",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"generate": "Generate key",
|
"generate": "Generate key",
|
||||||
"no-sshKeys": "No SSH keys",
|
"noSshKeys": "No SSH keys",
|
||||||
"copy-publicKey": "Copy public key to clipboard",
|
"copyPublicKey": "Copy public key to clipboard",
|
||||||
"delete": "Delete key",
|
"delete": "Delete key",
|
||||||
"git-config": "Git config",
|
"gitConfig": "Git config",
|
||||||
"deleteConfirm": "Are you sure you want to delete the SSH key __name__? This cannot be undone."
|
"deleteConfirm": "Are you sure you want to delete the SSH key __name__? This cannot be undone."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -427,25 +427,25 @@
|
|||||||
"editDependencies": "プロジェクトの依存関係を編集",
|
"editDependencies": "プロジェクトの依存関係を編集",
|
||||||
"userSettings": {
|
"userSettings": {
|
||||||
"committerDetail": "コミッター詳細",
|
"committerDetail": "コミッター詳細",
|
||||||
"committer-tip": "システムのデフォルトを使用する場合、空白のままにしてください",
|
"committerTip": "システムのデフォルトを使用する場合、空白のままにしてください",
|
||||||
"userName": "ユーザ名",
|
"userName": "ユーザ名",
|
||||||
"email": "メールアドレス",
|
"email": "メールアドレス",
|
||||||
"sshKeys": "SSH キー",
|
"sshKeys": "SSH キー",
|
||||||
"sshKeys-tip": "gitリポジトリへのセキュアな接続を作成できます。",
|
"sshKeysTip": "gitリポジトリへのセキュアな接続を作成できます。",
|
||||||
"add": "キーを追加",
|
"add": "キーを追加",
|
||||||
"add-sshKey": "SSHキーを追加",
|
"addSshKey": "SSHキーを追加",
|
||||||
"add-sshKey-tip": "新しい公開鍵/秘密鍵ペアを生成します",
|
"addSshKeyTip": "新しい公開鍵/秘密鍵ペアを生成します",
|
||||||
"name": "名前",
|
"name": "名前",
|
||||||
"nameRule": "A-Z 0-9 _ - のみを含む",
|
"nameRule": "A-Z 0-9 _ - のみを含む",
|
||||||
"passphrase": "パスフレーズ",
|
"passphrase": "パスフレーズ",
|
||||||
"passphrase-short": "パスフレーズが短すぎます",
|
"passphraseShort": "パスフレーズが短すぎます",
|
||||||
"optional": "任意",
|
"optional": "任意",
|
||||||
"cancel": "中止",
|
"cancel": "中止",
|
||||||
"generate": "キーを生成",
|
"generate": "キーを生成",
|
||||||
"no-sshKeys": "SSHキーがありません",
|
"noSshKeys": "SSHキーがありません",
|
||||||
"copy-publicKey": "公開鍵をクリップボードにコピー",
|
"copyPublicKey": "公開鍵をクリップボードにコピー",
|
||||||
"delete": "キーを削除",
|
"delete": "キーを削除",
|
||||||
"git-config": "Git設定",
|
"gitConfig": "Git設定",
|
||||||
"deleteConfirm": "SSHキー __name__ を削除してもよいですか? 削除したSSHキーを元に戻すことはできません。"
|
"deleteConfirm": "SSHキー __name__ を削除してもよいですか? 削除したSSHキーを元に戻すことはできません。"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user